cancel
Showing results for 
Search instead for 
Did you mean: 

Discount for a set of items

Former Member
0 Kudos

Hi All,

We have a requirement where we need to offer a 10% discount only when, for eg: 2 PC of A and 2 PC of B are bought together. The discount should be applied on both A and B. However, the discount should not be applied, in cases where 1 PC of A and 3 PC of B are bought, even if the total is 4 PC.

Due to some operational reasons, BOMs would not be created for these items and are standalone SKUs and are sold as they are in the market. So, we had decided to go ahead use pricing routines to calculate the discount with custom logic. To do this, the first step would be to check if both  A and B  are bought in the prerequisite quantities. To do this, we will need one place where we can see all the items ordered with individual quantities. For eg; Save Document Prepare can help in such cases, but the problem is the pricing routines will not be called at that point to apply the discount.

To sum it up, we are not finding a place where both the pricing routines are called and as well as we have visibility of all the items and quantities of the order.

Any help would be appreciated.

Thanks & Regards,

Vidya Sagar

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Everybody! Well, we did look at the option of using the requirement routines by using a Z table but the challenge of reading all the items and quantities still exist and that has not gone off and hence had to give up on this.

However, we have taken an alternative approach. Our front end is SAP Portal and the backend SAP. So, the plan is to do all the calculations in the Webdynpro component and then pass the discount per item in the sales order create BAPI as if like a manual condition. The users do not have access to any of the backend screens and hence there is no scope for changing the order using VA02. We use the Sales Order Change BAPI for scenario wherein we redetermine the discount again in the webdynpro component and pass it into the BAPI.

Thanks & Regards,

Vidya

former_member187652
Contributor
0 Kudos

Hi Vidya, not sure if this will work but here are my two cents,

create a customized table ZXXX with 4 fields, material A, QTY a, material B, QTY B

create your discount condition type and record of 10%. in VOFM develop a requirement routine that checks against table ZXXX, where both material exist in table and qty is large than the qty maintained in this table.

former_member182378
Active Contributor
0 Kudos

Schichang Ma,

I think yours is a good idea!

Vidya,

Any progress in finding the solution?

Lakshmipathi
Active Contributor
0 Kudos

Try with USEREXIT_PRICING_PREPARE_TKOMP in the program MV45AFZZ

G. Lakshmipathi

Former Member
0 Kudos

Thanks Lakshmipathi! We tried but the problem is that though we can get the material and quantities for each item, we do not have access to XKOMV to calculate the discount and apply it.

Jelena
Active Contributor
0 Kudos

Have you read the documentation on the pricing user exit? These user exits are not used to calculate discounts per se, they are used to feed the data to the standard pricing process. E.g. if you have material A with quantity 2 but want to apply a discount based on quantity 4 (because there is also material B) then just change the quantity to 4 in the user exit.

I'm ot sure though how you'd maintain the scenarion when discount is only applied for 2+2 but not 3+1... Also changing/deleting items is where it usually gets much more complicated.

But overall there are lots of information available in Google on the pricing user exits.