Skip to Content
-1

dynamic decimal in table field sap script

Mar 27 at 01:21 PM

32

avatar image
Former Member

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Mar 28 at 06:38 AM
0

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)

Share
10 |10000 characters needed characters left characters exceeded
Raymond Giuseppi
Mar 27 at 02:43 PM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
0