Skip to Content
0

FM Approve Shopping Carts

Oct 11, 2017 at 03:50 PM

57

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Ricardo Cavedini
Oct 11, 2017 at 08:21 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded