09-19-2008 9:11 AM
I have a problem while creating/ using a new custom routine via transaction - VOFM.
Have created a custom routine(number - 999 ) under FORMULAS -> CONDITION VALUES. Have activated this routine and also configured the relevant pricing procedure in. The call of this routine happens fine(in my case it is while creating/changing po).....
when i try to change value komv-kbetr = 0.03 (it should be 3.00).
all my calculations converting into wrong decimal places.
Please your suggestions in this regards.
data lv_kbetr type kbetr.
case xkomv-kschl.
when 'ZZ'.
select single * from konp where knumh = xkomv-knumh
and kschl = xkomv-kschl.
if sy-subrc = 0.
lv_kbetr = ZCAL * konp-kbetr.
endif.
09-19-2008 9:15 AM
Hi DM ,
thing u need to remember while doing pricing is , that % will for 1000 not for 100, so u need to play around the results as per ur requirement.
regards
Prabhu