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: 

currency value format in smartform

Former Member
0 Kudos

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.

3 REPLIES 3

0 Kudos

Hi Mohanarangan.

Try to define of type P, instead of DMBTR.

DATA VAR TYPE P.

raymond_giuseppi
Active Contributor
0 Kudos

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

Former Member