Skip to Content

Approve Leave Request Programatically

HI Friends,

I got the work item ids of leave requests which are created, through SWI1 Report in the program.

Please let me know, how to approve the work items with background job program.

Thanks,

Prasad.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 02, 2017 at 06:44 PM

    Hi Lakshmi,

    We'd need more information than you have provided to answer that question... such as 'What does your approval task do and look like?' - it probably is some kind of dialog task that the end user is supposed to execute. As a workflow administrator, I can approve multiple dialog tasks (in Dev or QA only, of course!) using transaction SWIA. But I am also curious why you'd want to approve work items with a background program... is this just a one-time thing, or something you're planning on using in Production? If so, perhaps there is a better solution - such as - if the Leave Approval task is not approved within 3 days, then automatically complete it? This would involve using Deadline Monitoring, which you can easily search for.

    Hope this helps,
    Sue

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 16, 2017 at 05:54 AM

    Hi Susan,

    Thanks for your reply, I have used FM 'PT_ARQ_REQUEST_EXECUTE' to approve the leave request in the Background Program.

    Regards,

    Prasad.

    Add comment
    10|10000 characters needed characters exceeded