cancel
Showing results for 
Search instead for 
Did you mean: 

FM Approve Shopping Carts

oliver_am
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

ricardo_cavedini
Active Contributor
0 Kudos

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

Answers (0)