Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error after second level approval in ESS leave request

Hi Experts

I am using custom workflow for Ess Leave request process which is copied from WS21500001.

I have added custom class methods to change status from approved to sent.

Then another method i have set next appovaer.

The problem i m facing is that I am getting an error on portal after second approval approves the request.

i.e Field syomol has not been assigned yet.

from st22 i found its generating from

Include LPT_ARQ_REQUEST_UIAF06  - Form   execute_approver_update

By debugging i found that Its not getting next approval with status T as there is only first approval with status 'A'

This results in unassigned field symbol. and then error.

Please help me resolve this issue.

Please confirm why next approver is not found in method.

Tags:
Former Member
Former Member replied

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

1 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question