Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

pricing routine

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

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