‎2015 Aug 26 5:29 AM
Hello,
Pl. let us know what is the difference between the workflow statuses COMMITTED and COMPLETED because I'm trying to complete the status programmatically of a work item by calling FM SAP_WAPI_WORKITEM_COMPLETE, also tried with SAP_WAPI_SET_WORKITEM_STATUS but when I checked the SWI1 tx am seeing changed status as COMMITTED, but we are expected it as COMPLETED
Thank you
‎2015 Aug 26 5:56 AM
‎2015 Aug 26 10:36 PM
Hi,
In a workflow, when the checkbox 'Confirm end of processing' is set, then the status of workitem first gets set to COMMITTED. And only when the decision is confirmed, it gets set to COMPLETED.
So, please check in your workflow, if the checkbox 'Confirm end of processing' is checked or not.
If it is checked, then after calling the function module you mentioned, please try calling FM 'SAP_WAPI_WORKITEM_CONFIRM' to confirm it.
Hope this helps.
Regards,
Richa