Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

RFC to update/ reject work flow

Hi Experts,


Is there any RFC/ FM to approve or reject the work flow?

I am using SAP_WAPI_DECISION_COMPLETE, with following inputs:


WORKITEM_ID <000000665113>

LANGUAGE = EN

USER  = <user id>

DECISION_Key  = 0001

DO_COMMIT= X

It gives:

return code = 2

message line: M = E, line =     Work item 000000665113 is not a user decision

Message structure

MSGID                M            MSG        MSGV1

SWR                  E                 205           000000665113

Where am I going wrong? Need help.

It shows  ready status after execution at SWIA.

Is there an alternative?

Thanks,

Ritu

Former Member
replied

Hi Ritu

the workitem you are trying to end is not of type USER DECISION. It may be a workitem of type dialog. See how it actually ends in the workflow...by way of terminating events? or the users just open it and close and then it completes?

You can try using SAP_WAPI_WORKITEM_COMPLETE ... but after knowing fully how the WI is handled in the actual WF.

regards,

Modak

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question