You are on page 1of 5

Pricing Relevant Customizing - Tables,

Structures, Transactions, Userexits


General path:
SPRO > Sales and Distribution > Basic Functions > Pricing

Objects Tables Transaction codes

Condition type T685, T685A V/06 for Sales,


(KSCHL) M/06 for Purchasing
or SM30 with View Cluster V_T685A

Access sequence T682, T682I, V/07 for Sales,


T682Z
(KOZGF) M/07 for Purchasing
or SM34 with View Cluster V_T682

Pricing procedure T683, T683S V/08 for Sales,


(KALSM) M/08 for Purchasing
or SM34 with View Cluster V_T683

Pricing type Internal table hardcoded in include LV61AA12 and


STEU
(KNPRS) FORM USEREXIT_PRICING_RULE

Condition exclusion groups T684 SM30 with View Cluster VV_T684_VA


T684G SM30 with View Cluster
VV_T684G_VA
T684S
SM34 with View cluster
VVC_T683A_VA

Default condition sales overview T683V OVKK

Pricing type used in copy control of


VTAA, VTFA, VTFL, etc.
documents
Pricing relevant master data <-> Pricing condition records

How to maintain
Condition master data tables condition
master data ?

Axxx (e.g. This table is used for the condition access. If access
A004) is successful a condition
(Data field
KNUMH) record number is found (KNUMH).
Transaction
KONH This table contain administrative data of the VK11 - VK13
condition record, e.g.
(Key field (or VK31 - VK33)
KNUMH) ERNAM, ERDAT, ...
for SD condition records
KONP This table contains the actual information of the
condition recrod, e.g.
(Key field
KNUMH) 9,50 EUR per 1 PC

KONM Quantity scales, e.g. Transaction


(Key field From 1 PC 9,50 EUR per 1 PC MEK1 - MEK3
KNUMH)
10 PC 8,50 EUR per 1 PC for MM condition records
KONW Value scales, e.g.
(Key field From 50,00 EUR 5,00 EUR
KNUMH)
100,00 EUR 15,00 EUR

Preparation of pricing TKOMK (header) and TKOMP (item) structures are


calls in prepared in

Header data: FUNCTION ME_FILL_KOMK_PO (include


LMEKOU24)
Item data: FUNCTION ME_FILL_KOMP_PO (include
LMEKOU25)
Purchasing

FORM PREISFINDUNG_VORBEREITEN
in include FV45PF0P_PREISFINDUNG_VORBEREI
Sales

Billing FORM PREISFINDUNG_VORBEREITEN in include LV60AA58

Relevant structures and tables in SAPLV61A (Functions for pricing) in debugging


mode

(T)KOMK Structure (internal table) with header data.

(T)KOMP Structure (internal table) with item data.

XKOMV Internal table with the pricing result of the item processed (conditions and subtotal
lines).
When pricing is called this table is always refreshed and built up again.

TKOMV Internal table with the total pricing result of the document. It contains no subtotal lines.

KOMT1 Internal table which contains the customizing data of the pricing procedure and the
condition types (T683S, T685, T685A).

KOMT2 Internal table which contains the customizing of the relevant access sequences
and accesses (T682, T682I, T682Z).

Userexits in calling programs

Preparation of pricing calls Header data: FUNCTION EXIT_SAPLMEKO_001 (include


in 'Purchasing' LXM06U14)
Item data: FUNCTION EXIT_SAPLMEKO_002 (include
LXM06U15)
Preparation of pricing calls Header data: FORM
in 'Sales' USEREXIT_PRICING_PREPARE_TKOMK (include MV45AFZZ)
Item data: FORM USEREXIT_PRICING_PREPARE_TKOMP
(include MV45AFZZ)

Additional triggering of FORM USEREXIT_NEW_PRICING_VBAP (include MV45AFZB)


pricing calls in 'Sales'
FORM USEREXIT_NEW_PRICING_VBKD (include MV45AFZB)

Preparation of pricing calls Header data: FORM


in 'Billing' USEREXIT_PRICING_PREPARE_TKOMK (include RV60AFZZ)
Item data: FORM USEREXIT_PRICING_PREPARE_TKOMP
(include RV60AFZZ)

Userexits in pricing itself

in the pricing processing logic (program include RV61AFZA:


SAPLV61A)
FORM USEREXIT_PRICING_RULE
FORM USEREXIT_PRICING_COPY
include RV61AFZB:
FORM USEREXIT_PRINT_ITEM
FORM USEREXIT_PRINT_HEAD
FORM USEREXIT_XKOMV_BEWERTEN_INIT
FORM USEREXIT_XKOMV_BEWERTEN_END
FORM USEREXIT_XKOMV_ERGAENZEN
FORM
USEREXIT_XKOMV_ERGAENZEN_MANU
FORM USEREXIT_XKOMV_FUELLEN
FORM
USEREXIT_XKOMV_FUELLEN_O_KONP

in the pricing screen logic (program include (LV69AFZZ)


SAPLV69A)

[custom] requirements (KOBED) include LV61ANNN [RV61ANNN]

[custom] scale base formula (KOFRS) include FV62ANNN [RV62ANNN]

[custom] condiiton basis formula (KOFRA) include FV63ANNN [RV63ANNN]

[custom] condition value formula (KOFRM) include FV64ANNN [RV64ANNN]

[custom] grouping key routines (GRLNR) include FV65ANNN [RV65ANNN]


Pricing procedure with custom requirement, condition value formula and condition basis
formula (Number >= 600):

You might also like