cancel
Showing results for 
Search instead for 
Did you mean: 

BADI for Shopping cart total amout condition?

Former Member
0 Kudos

Hi all,

I have to write a condition in BADI for P-card shopping cart, the shopping cart total value should not exceed specified amount.

can any one tell me what is the correct BADI for this condition and what is the field for shopping cart total amount?

I found BBP_SC_VALUE_GET is this correct one?

Thanks for ur time.

Kiran.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kiran,

you must use BADI BBP_DOC_CHECK_BADI, with filter on BUS2121.

In this BADI, you will find the SC doc GUID as inbound parameter: IV_DOC_GUID.

With this SC GUID, read SC details with function BBP_PD_SC_GETDETAIL.

You will find SC header total value in export structure E_HEADER-TOTAL_VALUE.

Table E_ITEM contains SC item data, including price.

Rgds

Christophe

PS: please reward points for helpfull answers

Former Member
0 Kudos

Hi Christophe,

thanks for ur answer,

we need to pass this GUID information to the BBP_PD_SC_GETDETAIL function in the import parameter - I_GUID and it will give the total shopping cart amount in the export parameter E_HEADER-TOTAL_VALUE, so once we get this value then we need to validate the amount and pass the message in the export ET_MESSAGES in BADI?

is that correct?

Thanks

Kiran.

Former Member
0 Kudos

You've got it !!

PS: please reward points for helpfull answers

Former Member
0 Kudos

Hi christophe

thanks.

Answers (0)