Hello workflow gurus,
I have a little problem with my workflow. In first task i start an abap class which calls my abap program. This program starts a webserivce which is validating some data of the workflow container. After using the program i want to go to the next task/workitem. In the moment the workitem is still incomplete after finishing my program. So i have to trigger an event which completes the actual workitem an triggers the next one. I thought of using 'SAP_WAPI_WORKITEM_COMPLETE'. Is this right?
Here is the code of the FM.
CALL FUNCTION 'SAP_WAPI_WORKITEM_COMPLETE'
ACTUAL_AGENT = SY-UNAME
LANGUAGE = SY-LANGU.
SET_OBSOLET = ' '
DO_COMMIT = 'X'
DO_CALLBACK_IN_BACKGROUND = 'X'
Which of the parameters i have to fill and what data i have to use for? What shall i set for the workitem_ID?
Please help me.