cancel
Showing results for 
Search instead for 
Did you mean: 

regarding exposure of ws21500001

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182874
Active Contributor
0 Kudos

Ritu,

Why are you not using standard app in fiori : Approve leave requests

Regards,

Tejas

Former Member
0 Kudos

Hi Tajeas,

Thant is not our clients requirement..

Thanks for your input.

regards,

Ritu M

former_member182874
Active Contributor
0 Kudos

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