cancel
Showing results for 
Search instead for 
Did you mean: 

How to validating total value in shopping cart

JayR
Participant
0 Kudos

Hi Experts,

How should i validate the total value in shopping cart. Scenario is

If the shooping cart value is > $10,000, Based on the total value, user-defined fields has to be enabled for input and the workflow has to trigerred to get the approval.

Any inputs will be rewarded

Jai

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI Jai,

Disha is correct. You can use the UI control badi to control the fields in the shopping cart based on the dynpro no.

For your workflow, use a start condition with the total shopping cart value...

Let me know if you need more details..

Regards

Rakesh

Ps. Please close the thread if your question is answered..

Former Member
0 Kudos

Hi,

You can use the BADI "BBP_UI_CONTROL_BADI" for this.In the BADI,first read the SC details using the FM "BBP_PD_SC_GETDETAIL" where you will pass the SC GUID from the BADi.Get the Total value of the SC from the table E_HEADER(fiele is TOTAL_VALUE) and accordingly set the BADi parameters "CV_INPUT_READY" for the User defined/custom fields.

For sample code for the BADI,refer the foll thread:

HTH.

BR,

Disha.

<b>Pls reward points for useful answers.</b>

yann_bouillut
Active Contributor
0 Kudos

Hi Disha,

Are you sure we can control CUF display/input through BBP_UI_CONTROL_BADI ?

Kind regards,

Yann

Former Member
0 Kudos

Hi Yann,

I have used this BADI succesfullly for Bid invitation and Quotation screens.

BR,

Disha.