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: 

To Round off my condition value and amount in va02

Former Member
0 Kudos

Hi experts,

My requirement is to round of amount and condition value in item level in the VA02 transaction.

ex: like if the amount is 234.43 then round off to 234

Same like if the condition value 34567.78 then round off to 34568

Actually i have tried through routines.

I have created one condition value routine through VOFM tcode and assiging that routine in V/08 tcode i have mentioned from to as (60 to 79) and in CAL TYPE i am assiging my routine.

In the routine i am getting sum of two price conditions values in XKWERT then i am rounding off that condition value.

Same like i have created one more routine to round off the amount in the condition base value routine.

But here i am not getting the sum of two pricing conditions amount in this routine.

Finally I searched XKBETR variable. i am not getting that variable.

I have tried in the condition value routine like

xkomv-kbetr = xkwert/Xmenge.

i am getting my required value but that one is not reflecting in the amount field in the conditions tab of item level of VA02 transaction.

Please if any one knows the solution for in which variable i have to pass my calculation (xkwert/Xmenge) then that value will reflect into amount.

Thanks & Regards,

Lokesh

1 ACCEPTED SOLUTION

former_member226234
Contributor

In debugging change the value in TKOMV. I hope this will change the value in the item condtions.

2 REPLIES 2

former_member226234
Contributor

In debugging change the value in TKOMV. I hope this will change the value in the item condtions.

Former Member
0 Kudos

Add the below line in you custom routine.

modify xkomv transporting kbetr kwert where kschl = <condition Type> and (any other condition).

Regards

Vinod