on 02-12-2009 3:37 AM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.