Skip to Content
Former Member
Sep 19, 2008 at 08:11 AM

pricing routine


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.