Skip to Content

FM Approve Shopping Carts

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 11, 2017 at 08:21 PM

    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

    Add comment
    10|10000 characters needed characters exceeded