Application Development and Automation 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: 
Read only

pricing routine

Former Member
0 Likes
617

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
Read only

Former Member
0 Likes
484

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