Skip to Content
avatar image
Former Member

currency value format in smartform

Hi All,

Currently i am working on a smartform development. i have encountered a problem where number format is displaying as 1000.59 instead of 1000,59 for a currency field. i have tried someways to rectify it like the below ones

1)changed my user settings in SU3

2) set the country code in the form and moved the currency value to a variable of type DMBTR. I tried this way for some other forms and it worked fine for them.

3) moved the currency value to variable with char format using write statement

but still the currency value is displayed as 1000.59. Can someone provide me solution for this problem.

Thanks in advance.

Mohanarangan.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 18, 2017 at 11:37 AM

    Hi Mohanarangan.

    Try to define of type P, instead of DMBTR.

    DATA VAR TYPE P.
    Add comment
    10|10000 characters needed characters exceeded

  • Jan 18, 2017 at 12:19 PM

    I suppose you linked the amount and currency code as described in Displaying Fields That Refer to Currencies or Quantities (Smart Forms, Using SAP Smart Forms, Using Parameters in a Form, Using Fields in the Form)

    When calling the form generated FM, did you set USER_SETTINGS or other fields like language or country in OUTPUT_OPTIONS or CONTROL_PARAMETERS?

    Regards,
    Raymond

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 11, 2017 at 05:28 PM
    Add comment
    10|10000 characters needed characters exceeded