Skip to Content
SD (Sales and Distribution)

Pricing Relevant Customizing - Tables, Structures, Transactions, Userexits

Tags:

General path:

SPRO > Sales and Distribution > Basic Functions > Pricing

ObjectsTablesTransaction codes

Condition type

(KSCHL)

T685, T685A

V/06 for Sales,

M/06 for Purchasing

or SM30 with View Cluster V_T685A

Access sequence

(KOZGF)

T682, T682I, T682Z

V/07 for Sales,

M/07 for Purchasing

or SM34 with View Cluster V_T682

Pricing procedure

(KALSM)

T683, T683S

V/08 for Sales,

M/08 for Purchasing

or SM34 with View Cluster V_T683

Pricing type

(KNPRS)

Internal table STEU

hardcoded in include LV61AA12 and

FORM USEREXIT_PRICING_RULE

Condition exclusion groups

T684

T684G

T684S

SM30 with View Cluster VV_T684_VA 

SM30 with View Cluster VV_T684G_VA 

SM34 with View cluster VVC_T683A_VA

Default condition sales overviewT683VOVKK
Pricing type used in copy control of documentsVTAA, VTFA, VTFL, etc.

Pricing relevant master data  <->  Pricing condition records

Condition master data tables

How to maintain condition

master data ?

Axxx (e.g. A004)
(Data field KNUMH)

This table is used for the condition access. If access is successful a condition

record number is found (KNUMH).

Transaction

VK11 - VK13

(or VK31 - VK33)

for SD condition records

KONH

(Key field KNUMH)

This table contain administrative data of the condition record, e.g.

ERNAM, ERDAT, ...

KONP

(Key field KNUMH)

This table contains the actual information of the condition recrod, e.g.

9,50 EUR per 1 PC

KONM

(Key field KNUMH)

Quantity scales, e.g.

From  1 PC  9,50 EUR per 1 PC

         10 PC  8,50 EUR per 1 PC

Transaction

MEK1 - MEK3

for MM condition records

KONW

(Key field KNUMH)

Value scales, e.g.

From  50,00 EUR   5,00 EUR

         100,00 EUR  15,00 EUR

Preparation of pricing calls in

TKOMK (header) and TKOMP (item) structures are prepared in

Purchasing

Header data:  FUNCTION ME_FILL_KOMK_PO (include LMEKOU24)

Item data:  FUNCTION ME_FILL_KOMP_PO (include LMEKOU25)

Sales

FORM PREISFINDUNG_VORBEREITEN

in include FV45PF0P_PREISFINDUNG_VORBEREI

BillingFORM 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.

KOMT1Internal table which contains the customizing data of the pricing procedure and the condition types (T683S, T685, T685A).
KOMT2Internal table which contains the customizing of the relevant access sequences and accesses (T682, T682I, T682Z).

Userexits in calling programs
Preparation of pricing calls in 'Purchasing'

Header data:  FUNCTION EXIT_SAPLMEKO_001 (include LXM06U14)

Item data:  FUNCTION EXIT_SAPLMEKO_002 (include LXM06U15)

Preparation of pricing calls in 'Sales'

Header data:  FORM USEREXIT_PRICING_PREPARE_TKOMK (include MV45AFZZ)

Item data:  FORM USEREXIT_PRICING_PREPARE_TKOMP (include MV45AFZZ)

Additional triggering of pricing calls in 'Sales'

FORM USEREXIT_NEW_PRICING_VBAP (include MV45AFZB)

FORM USEREXIT_NEW_PRICING_VBKD (include MV45AFZB)

Preparation of pricing calls in 'Billing'

Header data:  FORM 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 SAPLV61A)

include RV61AFZA:

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 SAPLV69A)include (LV69AFZZ)
[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):

.

.

Former Member