Application Development and Automation 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: 
Read only

currency value format in smartform

Former Member
0 Kudos
1,239

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
Read only

0 Kudos
825

Hi Mohanarangan.

Try to define of type P, instead of DMBTR.

DATA VAR TYPE P.
Read only

RaymondGiuseppi
Active Contributor
0 Kudos
825

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

Read only

Former Member
0 Kudos
825