Skip to Content
0

currency value format in smartform

Jan 18, 2017 at 11:29 AM

96

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Enio Rafael Jan 18, 2017 at 11:37 AM
0

Hi Mohanarangan.

Try to define of type P, instead of DMBTR.

DATA VAR TYPE P.
Share
10 |10000 characters needed characters left characters exceeded
Raymond Giuseppi
Jan 18, 2017 at 12:19 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Aarif Raza Feb 11, 2017 at 05:28 PM
0
Share
10 |10000 characters needed characters left characters exceeded