Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Difference between COMMITTED and COMPLETED?

former_member194142
Participant
0 Likes
1,922

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

2 REPLIES 2
Read only

Former Member
0 Likes
1,183

Hello,

Apparently you have to execute the FM twice for it to change from COMMITTED to COMPLETED.


Please try calling the SAP_WAPI_WORKITEM_COMPLETE function module again.


You can use the example in the thread below:

Hope it helps!

Best regards,

Fernando

Read only

Richa_Gupta
Contributor
0 Likes
1,183

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