cancel
Showing results for 
Search instead for 
Did you mean: 

compare shopping cart value to purchase order value

Former Member
0 Kudos

Hi folks,

I have been looking for some FM or a BADI for my situation..but so far nothing.Throw in some pointers,if you can.

I need to compare the total value of a shopping cart with the total value of a purchase order(the purchase order is not related to the shopping cart). The purchase order has already been created in system and the shopping cart is at the ordering stage.The PO number is mentioned in the shopping cart header.

We have n-step BADI implemented.

Can i use the bbp_check_badi first to compare the total shopping cart value and the PO value or can i enter the logic in the n-step BADI to achieve the above?

thnx

Trey

Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

You can call PD function Modules.

BBP_PD_PO_GETDETAIL

BBP_PD_SC_GETDETAIL

Regards,

Masa

Former Member
0 Kudos

Thank you,Masa.Just a couple of follow-up questions:

We are in ECS scenario.

Can i use the FM's in the check_BADI to compare the values of both SC and PO?

If so, can i also put in a logic--

if SC value>PO value--throw error message; and if SC value<PO value, continue processing the shopping cart.

Also,is there any way i can default the account assignment information and the ship-to data from the PO to the SC?Any FM that i can use?In what BADI?

Many,many thanks!

Points on the way to you.

Trey

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Yes. You can implement the logic in the CHECK BADI.

Regards,

Masa

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

> Also,is there any way i can default the account assignment information and the ship-to data from the PO to the SC?Any FM that i can use?In what BADI?

You can use DOC CHANGE BADI for SC and read the PO information via BBP_PD_PO_GETDETAIL and update the SC side.

Regards,

Masa

Answers (0)