cancel
Showing results for 
Search instead for 
Did you mean: 

vofm formula variant get wrong data.

Former Member
0 Kudos

i complet a formula routin via vofm, and three price variants is used. 'ZR00', 'ZK05', 'PR00'

and in pricing procedure, i assign 'ZR00' to subtotal 1(komp-kzwi1), 'ZK05' to subtotal 2(komp-kzwi2),

when i create sale order via 'va01', the komp-kzwi1, komp-kzwi2, xkwert(PR00) get right data, but

i change sales order via 'va02'. the variants get wrong data, how to fix the issue?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Please check your formula routine whether any where you have maintain tcode related statement.

If so enhance that statement for VA02 and VA03 also.

If this is not the problem then could you please share the routine with us?

try and revert.

Former Member
0 Kudos

the code as below: PR00 is input field. ZR00 is assgned to komp-kzwi1, ZK05 is assigned to komp-kzwi2 through pricing procedure control data.

FORM FRM_KONDI_WERT_900.

data: kzwi1 like komp-kzwi1,

kzwi2 like komp-kzwi2,

l_qty like komp-kzwi2.

kzwi1 = komp-kzwi1.

kzwi2 = komp-kzwi2.

clear komp-kzwi1.

clear komp-kzwi2.

if kzwi2 is initial.

if xkwert < kzwi1.

message E001(ZM) with 'PR00_' xkwert '<ZR00_' kzwi1.

endif.

else.

l_qty = kzwi1 + kzwi2.

if xkwert < l_qty.

message E001(ZM) with 'PR00_' xkwert '<ZR00+ZK05_' l_qty.

endif.

endif.

ENDFORM.

Former Member
0 Kudos

the problem is solved.

Answers (0)