on 07-08-2010 10:42 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.