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: 

dynamic decimal in table field sap script

former_member221367
Participant
0 Kudos

Hi ,

Hi need to round decimal of quantity(type ERFMG length 13 dec 3 ) field dynamically . I achieved dynamic decimal via field symbol but when I pass that it this quantity filed its by default giving 3 decimal and if I change the type as string then its giving problem in output format like if quantity display as 12.98,987 in ERFMG type then in string type it is display as 1298.987

how I can achive this?

3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos

Why didn't you use the WRITE <quan_field> UNIT <uom> syntax so using precision/decimal places defined with this unit of measure?

former_member221367
Participant
0 Kudos

I achieved this by using &var(.1)& for one decimal &var(.2)& for two decimals and so on

is there any way that I can pass this decimal in a variable (dynamically)