Skip to Content
0
Former Member
Sep 13, 2011 at 12:28 PM

How to use SAP_WAPI_WORKITEM_COMPLETE

992 Views

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'

EXPORTING

workitem_id =

  • ACTUAL_AGENT = SY-UNAME

  • LANGUAGE = SY-LANGU.

  • SET_OBSOLET = ' '

  • DO_COMMIT = 'X'

  • DO_CALLBACK_IN_BACKGROUND = 'X'

  • IFS_XML_CONTAINER =

IMPORTING

  • RETURN_CODE =

  • NEW_STATUS =

  • TABLES

  • SIMPLE_CONTAINER =

  • MESSAGE_LINES =

  • MESSAGE_STRUCT =

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.

Many greeting

Sebastian