Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

Getting Decision step WorkItem number in the work flow run time

$
0
0

Hi,

 

I am executing the FM - 'SAP_WAPI_CREATE_EVENT'  to start the workflow. After this Workflow is processing decision step .

 

As user will be submitting his decision from custom tcode  I am using FM - 'SAP_WAPI_WORKITEM_COMPLETE' to pass the user decision.

 

Question: How to get the Work item Id to pass it to FM ( same user might have multiple work items for the same object number )

 

Steps I did:

In the decision step in the METHODS TAB  I have created  - Method before Work Item Execution and provided my Z Object type and Method information. And in the method I am getting the work item and updating it in my table. ( i am using  swc_get_element container )

 

But this is triggering after work item is created and if I manually open the work item from the in box.

 

How to get the work item number immediately after generating the work item step.  So that when user clicks on the custom buttons (approve/reject) I can get this from my custom table and pass the WI Number to the FM.

 

 

Please let me know how to solve this.

 

Thank You .

Regards,

Mohan.


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>