cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve Approvers list before ordering a shopping cart

Former Member
0 Kudos

Hi Experts,

My requirement is to check if the approver(first/second/any level) is not assined to a shopping cart. If yes, then i have to throw an error message. I want to put my logic in the BBP_DOC_CHECK_BADI.

To get the approvers list of a shopping cart, the function module BBP_PDH_WFL_APPROVAL_SIMULATE can be used. But before ordering a shopping cart, the workflow will not be triggered. So I cannot use this function module. Is there any other way to retrieve the aprover's list in the BP_DOC_CHECK_BADI before the SC is created.

Thanks and Regards,

Asha

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

See this thread which addresses the same query;

BR,

Disha.

Do reward points for useful answers.

imthiaz_ahmed
Active Contributor
0 Kudos

It should work, it is used for the simulation purpose.

Regards, IA

Former Member
0 Kudos

Hi Imthiaz,

Could you please tell me what all parameters need to be passed to the function module BBP_PDH_WFL_APPROVAL_SIMULATE to get the adhoc agents (approvers) coz I have given the object id, object type and the starting task but no result.

imthiaz_ahmed
Active Contributor
0 Kudos

Sorry, I'm wrong this time. You need a Object id and it is not optional and I don't think you will have the SC number before it is saved.