01-18-2017 11:29 AM
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.
01-18-2017 11:37 AM
Hi Mohanarangan.
Try to define of type P, instead of DMBTR.
DATA VAR TYPE P.
01-18-2017 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
02-11-2017 5:28 PM