How SAP Pricing Works
How SAP Pricing Works
Glossary
When you enter Material and Quantity and trigger enter, Include SAPLV61A contains FM – PRICING
is called internally.
As pricing should not get executed in display mode, system check if it’s not display mode and then
proceed.
15. Calls User Exit – USEREXIT_PRICING_RULE, it can be used if Pricing Rules requires any
change. Internal table – STEU can be changed here. Changing that will change the behaviour
of standard pricing , depending on business needs
16. Now , system get the pricing procedure details like steps , conditions , requirements & etc.
18. Loop on table XT683S line by line. This is like moving row by row of pricing procedure.
I. Check the record for Print indicator (field - DRUKZ), if it contains any ‘ABCDS’, assign
the value to KOMK-DRUKS_Z.
II. Check if the condition has any Requirement (T683S-KOBED ).Suppose T683S-KOBED
= 002
It will field to call the subroutine will be populated as
Bedingung_vorstep = “KOBEV_ + T683S-KOBED”
XI. If it has access sequence (KOMT1-KOZGF ) and condition is not added manually , Get
the Access Sequence in internal table - XT682I
Loop on XT628I -
If service rendered date is filled, cond. category in CD, pricing date
characteristic is empty.
o Pricing date = Service Rendered Date (KOMK-PRSDT = KOMK-
FBUDA).
If pricing date characteristic is A, service rendered date is empty.
o Pricing date = Service Rendered Date (KOMK-PRSDT = KOMK-
FBUDA).
If pricing date characteristic is C, Billing date for billing index and printout
is empty
o Pricing date = Billing date for billing index and
printout Date (KOMK-PRSDT = KOMK-FKDAT).
If pricing date characteristic is D, Order Creation date is not empty.
o Pricing date = Order Creation Date (KOMK-PRSDT = KOMK-
ERDAT).
If pricing date characteristic is E, Document date is not empty.
o Pricing date = Document Date KOMK-PRSDT = KOMK-AUDAT).
XKOMV_BEWERTEN
Subroutine - XKOMV_BEWERTEN is called to calculate the prices and fetching the condition records
based on few tables – KOMP (containing Item details),
Check – FM - PRICING_COMPLETE
Glossary