Skip to Content
0
Oct 11, 2017 at 03:50 PM

FM Approve Shopping Carts

266 Views Last edit Oct 11, 2017 at 04:02 PM 3 rev

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