Skip to Content

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


hei all,

i have 2 cond type.

ZCSA and ZCSB. this condition type are item level, has condition record.

and i also have 1 cond type ZZCS (item)

i want ZZCS cond type value is calculation between cond type ZCSA & ZCSB.

do you know the code for this case?


cond value ZCSA = 100$ , ZCSB = 5$

so cond value ZZCS will be 100 x 5 = 500$

i think we have make routine for pricing value.

does anyone experience in this?

best regard,


Former Member
Former Member replied

Hi Hendry,

For Sales You need to go to transaction 'V/08', else for purchase You need to go to transaction 'M/08'. Choose the appropriate pricing procedure, and double-click on control, there you can find Your condition type ZZCS. You need to assign/choose a freely available Calculation type number (for e.g. 901/902/903, etc), and write the code in the editor for that calculation type. Based on your example the code should be:

DATA: xkomv_ZCSA TYPE komv_index,

xkomv_ZCSB TYPE komv_index,

xkomv_old TYPE komv_index.

CLEAR: xkomv_ZCSA, xkomv_ZCSB, xkomv_old.

xkomv_old = xkomv.

READ TABLE xkomv WITH KEY kschl = 'ZCSA'.

IF sy-subrc EQ 0.

xkomv_ZCSA = xkomv.


READ TABLE xkomv WITH KEY kschl = 'ZCSB'.

IF sy-subrc EQ 0.

xkomv_ZCSB = xkomv.


xkwert = xkomv_ZCSA-kwert * xkomv_ZCSB-kwert.

xkomv = xkomv_old.

PS. After activation of the code is done, do not forget to execute program 'RV80HGEN'. This is used to activate all routines.



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