Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sales Document Pricing Condition

hsynylmz32
Explorer
0 Kudos

Hello Everyone ... I want to put a check to prevent the price condition (z*) from being deleted in a sales order I want to give an error message if someone tries to delete it.

How can I do that?".

5 REPLIES 5

DominikTylczyn
Active Contributor
0 Kudos

Hello hsynylmz32

Make the price condition obligatory in pricing procedure configuration - transaction V/08, for instance:

Best regards

Dominik Tylczynski

0 Kudos

Hello Dominik Tylczynski... Thank you very much for your answer. Yes, I know this, but actually performing this user-based control, for example, user A can delete, but user B cannot.

thilakan_t
Participant
0 Kudos

Hope you can add the logic in BADI BADI_SD_BILLING_ITEM (method HEADER_PRICING_COM or ITEM_PRICING_COM)

0 Kudos

Hello Thilakan T...

Thank you for your answer, but I need this control in the direct sales order. For example;

I want to allow only certain users to add, change or delete a particular pricing term..

0 Kudos

Try BADI BADI_SD_SALES_ITEM method ITEM_PRICING_COM_H and ITEM_PRICING_COM_I.

This methods getting called in conditions tab. You can add the logic here to validate the actions based on SY-UNAME.

You can also use USEREXIT_PRICING_PREPARE_TKOMK, USEREXIT_PRICING_PREPARE_TKOMP in include MV45AFZZ.

check for Internal table - XKOMV, TKOMK, TKOMP for conditions data.