cancel
Showing results for 
Search instead for 
Did you mean: 

Error Message - Shopping Cart having a Zero Value item in EBP/SRM V4.0

Former Member
0 Kudos

Hi,

Could anybody of you tell me about how to activate an Error message in case the User has created a Shopping basket by selecting Search by Description(means Text Order) and by mistake he has not provided the price of the Item which he has selected.

In case of above,the system should throw an Error message indicating that the Shopping Cart is having a Zero Value item and you must review it before saving the Shopping Cart.

Awaiting for your response in this regard asap.

Regards.

Pranab

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Which SRM version are you using ?

<b>We have implemented the same scenario, several times.</b>

<u>Please go through the links for more details -></u>

Do let me know.

Regards

- Atul

Former Member
0 Kudos

1. Implement the BBP_DOC_CHECK_BADI for type BUS2121, method BBP_DOC_CHECK.

2. With the IV_DOC_GUID you can retrieve your shopping cartdetails using a function module, probably BBP_PD_SC_GETDETAIL.

3. Import the table it_item into an internal table.

4. Loop over that table and check the price.

5. When it's zero write an error mesage in exporting structure ET_MESSAGES.