on ‎2017 Apr 25 6:16 AM
Hi ,
I want to approve or reject the workitem using UI5. The backend process is already set it has workflow for the same.
The workflow looks exactly like this : https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=68644
The Worlflow consultant have used the Form for approve or reject. Now I want achieve this using the FM : SAP_WAPI_DECISION_COMPLETE
But the issue is when I pass the workitem ID to this FM it say that it don't have decision key.
Kindly suggest a way where I can Approve or Reject using Function Module.
Thanks
Vishal
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hi,
To use the function module SAP_WAPI_DECISION_COMPLETE two things are very important to understand
CALL FUNCTION 'SAP_WAPI_DECISION_COMPLETE'
EXPORTING
workitem_id = i_wiid
language = l_langu
user = l_uname
decision_key = <PASS the ID it can be either 001 or 002>
do_commit = 'X'
IMPORTING
return_code = l_subrc
TABLES
message_lines = lt_message_lines
message_struct = lt_message_struct.Form step of the workflow does not use the decision step task it is generated dynamically each time you create a new form step. So this function module does not work.
Thanks, Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.