cancel
Showing results for 
Search instead for 
Did you mean: 

Amount format is not being displayed properly

Former Member
0 Kudos

Hello,

When I run the smartform with standard program the amount is displayed as 12.536,00 instead of 12,536.00.

My Own data settings are correct and suggests that the data should be displayed as 12,536.00.

I think the standard program is passing some settings from some global level data.

Can you please help me on this as trhe amount needs to be displayed as 12,536.00.

Its very URGENT.

Thanks in advance

Gupta

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

set the country as SG or GB

then check

Regards

Shiva

Answers (2)

Answers (2)

Former Member
0 Kudos

The setting in country had to be changed. There it was 1.123,00. On changing the settings it worked. Country change suggested this. Thank you for your immediate responses.

Thanks,

Gupta.

Former Member
0 Kudos

Hi,

In your program lines use the command set currency 'SG'. (or you can use 'GB' or 'IN').

Inspite of this you are facing the same problem try just: set currency ' '. (space).

Inspite of this u face a problem then we have to change that manually by writing small piece of code by replacing the value, as below:

say lv_amt has the value.

split lv_amt at ',' into lv_var1 lv_var2.

replace '.' in lv_var1 with ','.

concatenate '.' lv_var2 into lv_var2.

concatenate lv_var1 lv_var2 into lv_var.

Regards,

Narendra.