Skip to Content
-1

dynamic decimal in table field sap script

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 28 at 06:38 AM

    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)

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 27 at 02:43 PM

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

    Add comment
    10|10000 characters needed characters exceeded