Skip to Content
0
Former Member
Aug 27, 2014 at 02:49 PM

Multiple level leave approval using POWL

103 Views

Dear All,

We are trying to create a custom workflow for leave with multiple level approvals. We are using the task TS21500003 just like in the standard and this is called in a loop for the various levels of approval.

The task has been registered in xml and SWFVISU to point to POWL. Below is the code in xml for the task.

Now the problem we are facing is that, when the first approver receives the work item and he clicks on the same and opens the POWL. He checks the leave and click on approve. Once he does this, the document status is changed from SENT to APPROVED. The workflow now proceeds to the next level approver but when he tries to approve, there is no document to approve.

What are we doing wrong here? How can we ensure that the document status changes only after the final level of approval is done and the workflow exists the loop.

Please let me know your inputs.

<ItemType name="uwl.task.webflow.TS21500003.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">

<ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType="TS21500003" connector="WebFlowConnector"/>

<Actions>

<Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproABAPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">

<Properties>

<Property name="display_order_priority" value="5"/>

<Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>

<Property name="WebDynproApplication" value="HRESS_A_PTARQ_LEAVREQ_APPL"/>

<Property name="WebDynproNamespace" value="SAP"/>

<Property name="openInNewWindow" value="yes"/>

<Property name="System" value="SAP_ECC_HumanResources"/>

<Property name="WebDynproConfiguration" value="HRESS_AC_PTARQ_LEAVREQ"/>

<Property name="DynamicParameter" value="LRF_ARQ_MODE=A&amp;LRF_WITEM_ID=${item.externalId}"/>

</Properties>

<Descriptions default=""/>

</Action>

</Actions>

</ItemType>