Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8695

Re: Error after second level approval in ESS leave request

$
0
0

Hi All

Thanks for your reply.

I checked why it was giving a dump.

This execute_approver_update subroutine takes approval data from table ptreq_approver .

I filled this with resp actor id after request is approved and status is changed to sent.

For every emp its unique actor id is saved in ptreq_actor table agaist his pernr.

 

   SELECT SINGLE actor_id FROM PTREQ_ACTOR INTO actor_id WHERE objid = nextApprover_pernr.

    wa_appr-mandt = sy-mandt.
    wa_appr-request_id = Request_ID. "Req.requestID ( from Workflow )
    wa_appr-version_no = version_no. "Req.Version ( from Workflow )
    wa_appr-seqnr = seqnr. "Same as version no but in char
    wa_appr-approver_ins = actor_id. "Employee actor id from ptreq_actor
    wa_appr-status = 'T'. "Manual
    append wa_appr to it_appr.

    INSERT PTREQ_APPROVER FROM TABLE it_appr .
    commit work and wait.

 

This resolved my issue.

Thanks


Viewing all articles
Browse latest Browse all 8695

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>