on 06-02-2006 3:09 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.