cancel
Showing results for 
Search instead for 
Did you mean: 

How to print currency is User specified format in smartforms

0 Kudos

Hi,

As per the business requirement in my smartform layout,I want to print the currency in the format set by the user currency format in SU01.

As per my knowledge, currency is printed as per the country specific format and we can do this by explicitly setting the coutrny as SET COUNTRY 'USA'.

But my requirement is to print only in user specified format irrespective of any country. I tried by setting the country as '' (BLANK), but it didn't solve the problem

Can anybody help me or encountered similar problem in smartform currency format printing ?

Thanks n Regards,

Amit Bhagwat

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Amit,

Please use FM "SUSR_GET_USER_DEFAULTS" to get the user defaults . where u will get the decimal notation as . or , after this u need to write code to convert currency.

Regards,

Chandra Kavali

Former Member
0 Kudos

u can maintain it in the user profile maintained for you in the system.

You can use write statement and write the value of the variable in whcih u have the value to anotehr variable.

This will have the right format then

arul_murugan
Active Participant
0 Kudos

Hi,

Smartforms and scripts will print the currency values based on the notation mentioned in the user profile if u r not added the SET COUNTRY command in it.

No need of any logic

I think it will help you

Thanks

Arul

0 Kudos

Hi Arul,

Thanks for the reply but apparently its not printing as per the user specified formats.

I did try changing the user format through transaction SU01, but its not reflecting in my layouts.

I believe its referring the currency format based on the currency fomating configured at country level which I don't know.

I am printing the field of type NETWR

How can I make sure it will print as per use specified format only ?

Thanks n Regards,

Amit Bhagwat

arul_murugan
Active Participant
0 Kudos

Hi,

Did you logged off the system once you changed the notation in SU01. If your changing the notation in SU01 you need to log off and log in again, then only changes will work

Thanks

Arul