cancel
Showing results for 
Search instead for 
Did you mean: 

Shopping cart Approval Preview details in DOC_CHECK_BADI

0 Kudos

Hi all,

We are on SRM 5.0.

Our requirement is that in the shopping cart BBPSC01, after the approver adds his approver details in the shopping cart, and if he clicks on check button, we should validate the approver details in the DOC_CHECK_BADI.

The FM BBP_SC_GET_DETAIL doesn't give the current shopping cart approver details that are present in the approval preview of the shopping cart.

Is there any other FM or tables, where we can retrieve this information. The Workflow function modules do not work int his case, since the shopping cart is not created yet.

Any pointers will be helpful.

Thanks,

Ramya.

Accepted Solutions (0)

Answers (3)

Answers (3)

yeushengteo
Advisor
Advisor
0 Kudos

Hi,

Please try out the FM BBP_PDH_WFL_APPROVAL_SIMULATE.

Regards.

0 Kudos

Hi Disha,

Thanks for your inputs.

The workflow function modules that you have mentioned will not work, since there is not associated workflow before the shopping cart is created.

We have a custom function module, which will determine the default approver based on the user attributes, SC total value while creating the shopping cart. In case the approver turns out to be invalid, it will return exception handler. So, the approval preview will have exception handler as the approver. The user will not know why it went to exception handler.

So what we are trying to do is that if the approval preview has exception handler in it, give a message to the user as in why it failed.

Iam trying to figure out how to get the approver values from the approval preview, but iam stuck. None of the FM's that i have tried work, even BBP_SC_GETDETAIL.

Former Member
0 Kudos

Hi,

What do you mean by validating the Approver???Also the FM BBP_PD_SC_GETDETAILgives runtime values,so you should get the Approver names in that.Also you can try the FM's "BBP_PDH_WFL_APPROVER_GET" and "BBP_PDH_WFL_APPROVAL_SIMULATE".

If you are unable to get the runtime values then while populating the Approver list you can do that with the valid Users so that you need to not check in the next stpe through the BADi.

HTH.

BR,

Disha.

Pls reward points for useful answers.