on 10-11-2017 4:50 PM
Hi, all
We have a program to copy SC and we need to approve the new SC created.
We are using FM BBP_PD_SC_CREATE to create the SC with iv_save = X and iv_park = space. Don't know if we need to change this.
The SC is created awaitint approval.
To approve the SC I've tried with FM BBP_PD_SC_STATUS_CHANGE_WF with status = 1.
And works fine, the status is changed, but the workflow is not finished.
Do you know how to finish the WF ?
Is there any other FM to approve and finish the WF at the same time?
Thanks in advance.
EDIT: I've tried with FM SAP_WAPI_DECISION_COMPLETE but i'm getting an error;
Work item XXX is not a user decision
Hello,
You can try the following approach:
- Run FM /SAPSRM/FU_WF_RFC_DECISION with following parameters:
IV_HEADER_GUID =
IV_MODE = APPROVAL
IV_BOTYPE =
IV_WIID = Workitem ID of Approval task
IV_DECISION = APPROVED or REJECTED
This uses to work for PC workflow.
Regards,
Ricardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.