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: 

Update New Pricing conditions while saving Sales Order

0 Kudos
1,706

Hello,

We need to insert new pricing conditions when click on save button in sales order (VA01 T code)

Please let me know how i can achieve this ? are here any user exits/Enhancement/BADIs available ?

Thank you,

Gaurav

3 REPLIES 3

MateuszAdamus
Active Contributor
0 Kudos
478

Hi gawani

Please have a look at program MV45AFZZ. There is a procedure called USEREXIT_SAVE_DOCUMENT_PREPARE. This is what you're looking for, probably.

There are others too:

  • USEREXIT_SAVE_DOCUMENT
  • USEREXIT_PRICING_PREPARE_TKOMK
  • USEREXIT_PRICING_PREPARE_TKOMP

regards,

Mateusz

      VeselinaPeykova
      Active Contributor
      478

      Why does it have to be on order save?

      Can't you just determine the condition in the usual way - via the condition technique?

      What is the business process? It might be that there are more efficient ways to achieve what you need.

      former_member197916
      Active Participant
      0 Kudos
      478

      hi,

      You can use the standard for the same and updating on save the user will not know the actual price before saving .Are you sure of this?

      As suggested by mateuszadamus you can use USEREXIT_PRICING_PREPARE_TKOMK or USEREXIT_PRICING_PREPARE_TKOMK but they are triggered on conditions tab and even on scrolling in it.So if you do not want the user to know the added condition before save go with USEREXIT_SAVE_DOCUMENT.