on 10-10-2014 5:12 AM
Hi experts,
I am working on leave approve/ reject Workflow ID: WS21500001 to be implemented on mobile and facing issues. Steps that i have followed:
1. I have configured decision step 38 of the standard workflow 21500001.
2. The Enhancement Spot for getting Business Context data /IWWRK/ES_WF_CUST_EXT_IB (method MODIFY_WORKITEM) is applied with the following logic:
The finction module to get work item id for a manger is SAP_WAPI_CREATE_WORKLIST.
From this function module read the internal table WORKLIST, get the WI_CHCKWI.
Pass the WI_CHCKWI to WORKITEM_ID filed of table PTREQ_HEADER and get the ITEM_LIST_ID.
Pass ITEM_LIST_ID to ITEM_LIST_ID field of table PTREQ_ITEMS and get ITEM_INS.
pass ITEM_INS to ITEM_ID field of table PTREQ_ATTABSDATA.
to get PERNR begda. endda.
However, the details are not seen in xml and the break point on badi is not getting triggered
3. for decision making - The Enhancement Spot used /IWWRK/ES_WF_WI_BEFORE_UPD_IB.
need guidance,
Thanks,
Ritu M
Ritu,
Why are you not using standard app in fiori : Approve leave requests
Regards,
Tejas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ritu,
You can work with Approve request application, and enhance badi as per the workflow.
BADI : /IWWRK/ES_WF_WI_BEFORE_UPD_IB
METHOD : /IWWRK/IF_WF_WI_BEFORE_UPD_IB~BEFORE_UPDATE
Then call standard FMs :
For accessing workflow data :
CALL FUNCTION 'SAP_WAPI_GET_OBJECTS'
Read the workflow container :
CALL FUNCTION 'SAP_WAPI_READ_CONTAINER'
Then you call :
CALL FUNCTION 'SAP_WAPI_WORKITEM_COMPLETE'
EXPORTING
WORKITEM_ID = is_wi_details-wi_id.
"This task requires a confirm to be fully completed "and start the next step in the workflow
CALL FUNCTION 'SAP_WAPI_WORKITEM_CONFIRM'
EXPORTING
WORKITEM_ID = is_wi_details-wi_id.
Regards,
Tejas
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.