Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

User exit to modify pricing header condition

Hi all,

I have a header pricing condition which we can manually enter a discount value in VA01.

I would like to use some sort of user exit to calculate the discount in the background, and put the value into the header condition.

Can this be done with userexit_pricing_prepare_tkomk? I am testing with this but not sure how to make it work. If someone has an example or can give me some advice it would help a lot.


Former Member
Former Member replied


Transaction VOFM is a tool that was developed in R/3 to facilitate the definition of both SAP delivered as well as customer defined routines/rules used in the system during various business processes. VOFM routines are ABAP code written in Forms to deliver the intended results in various business processes as required.

VOFM is divided up into four main areas. These include copying requirements, data transfer, requirements, and formulas. Formulas are routines that define how a value should be calculated or determined in the R/3 system.

In the ABAP codes for example, you can define and "tell" the system that the formula to calculate a particular condition (say ZDISC) should be x + y - z..

These calculations, where defined correctly in the routine by the written ABAP codes, will deliver the intended results and populate the intended values in the condition (whether it is Header or Item condition) where this routine is assigned to. Definition of whether a condition is Header or Item can be done in the condition type configuration in Pricing.

For assignment of the routine to the condition, this is done in the configuration under Pricing Procedure definition in SD.

Hope the above provides a better clarity on the function and purpose of the routine and how it can be used.


0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question