Skip to Content
Jul 30, 2018 at 09:29 AM

Workflow item route to next level

92 Views Last edit Jul 30, 2018 at 07:26 AM 2 rev

Hi Gurus,

I have an issue to continue with the next approval level. The background is that once a leave request is submitted in ESS, it will trigger the workflow automatically (as a custom workflow template is tied in SPRO configuration). However, we want to continue with the next level of approval level (e.g. 2 levels of approval, we want to make it flow to the 2nd level of approval without approving in the 1st level apporoval) as per our existing workflow template. We tried several methods to continue with the next level of approval level but still cannot. Please help to enlighten.

Some methods tried:

1. Complete the workitem of the current approval using FM SAP_WAPI_WORKITEM_COMPLETE (<-- cannot work as it complete the workitem and does not continue with the next level of approval, it is equivalent to completing the workflow)

2. Tried using SWIA to complete the workitem, but it does not flow to the next level.

3. Tried to use SAP_WAPI_START_WORKFLOW (<--- it seems cannot too, because there is no input parameter to control the workflow level that we need to continue or the agent name)

For your information, our approver (agents name) determination logic is integrated in the workflow business object methods. Once currrent approver approves the leave, it will determine the next approver to send out to ESS inbox.