Skip to Content
0

Approve Leave Request Programatically

Feb 28, 2017 at 09:18 AM

96

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Susan Keohan
Mar 02, 2017 at 06:44 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Lakshmi Prasad Mar 16, 2017 at 05:54 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded