on 03-14-2024 1:38 AM
Hello experts...
While printing the pdf of a billing document, we have a statement that says:
Now, because of the nature of the Write statement, the format of the amount changes based on the destination country.
Meaning, if let's say GB is the destination country
The format of the amount is like this: X,XXX.XX (Comma first and period second)
But if the destination country is, let's say, France
The format of the amount is: X.XXX,XX (Period first and comma second)
I have understood that it is like so because the of format used globally by GB
But how do I get the same format for amount in the billing document regardless of the destination country?
The correct format to be displayed is the second one X.XXX,XX (Period first and comma second)
Thanks a lot, in advance!
Regards,
Sharon
As you said, the "number format" (switch of comma and dot as decimal and thousands separators) depends on the Text Environment which depends by default on the logon language but can be dynamically changed with the SET COUNTRY statement (number format by country in the table T005X).
In your case, there's probably somewhere a SET COUNTRY executed before your WRITE, so you may:
See the ABAP documentation for more information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can try to find FM for currency conversion as per the destination country. and it will be solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
10 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.