Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

To Round off my condition value and amount in va02

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

Former Member
replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question