on 04-07-2008 9:55 PM
Hi Guys,
I am working on a SAP Script created by someone else but now it's coming up with an error, actually the amount field in the output is having some problem, for example for amount one thousand four hundred twenty USD and 10/100 its returning $1.420,10 rather than returning $1,420.10 , so can you please let me know how to take care of this.
Thanks,
Rajeev
Edited by: Rajeev Gupta on Apr 7, 2008 10:56 PM
The format currency depends on the user parameters.
U can use the WRITE statament, and the system automatically will write the currency in according to the user parameters.
U can try to use the statament SET COUNTRY <COUNTRY>, set all formats (date, currency) used in a country. In this way your program should be independent from user parameters.
~As found in forum.
Regards,
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajeev,
Before you print the variables use the SET COUNTRY command as mentioned by Amit and others.
The write command is to be written in the print program or any new subroutine pool program.
eg:
/: SET COUNTRY 'SG'
T1 &fld1&,,&fld2&
eg2: WRITE lv_var1 to lv_var2 currency 'SG'.
Regards,
Narendra.
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.