on 08-23-2012 10:12 AM
Hello All ,
In a sapscript report . the amount is being printed with the notation 'dot' as thousand separator and 'comma' as decimal separator .
But the user setting of the user for which this report is , the notation is 'comma' as thousand separator and dot as decimal separator .
so what could be the reason for this mismatch ?
Thanks
solved by checking tables t005x and lfa1 to get the dec format for the user .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Again ,
if the sapscript is taking the decimal notation for the receiving country , then how it could be explicitly set to take the decimal format for the user and not of the receiving country .
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Linda,
you can explicitly set the used format with SET COUNTRY.
Then the country-dependent formatting options from table T005X are used.
It might be possible to add a logic reading the user settings and then use this in the sapscript.
However there is no such functionality in the standard.
Best regards,
Nils Buerckel
Hi Linda,
The below code may be helpful for You,
lv_waers is the currency key and tcurx is the table which stores decimal places depending on the country.
GV_NETPR_IN_DOC_CUR should be type char.
For the below code amount takes commas and dot from tcode: Oy01
once check dots and commas for Hong kong in Oy01
DATA ls_tcurx TYPE tcurx.
SELECT SINGLE * FROM tcurx INTO ls_tcurx
WHERE currkey = iv_waers.
IF sy-subrc = 0.
cv_flag = 'X'.
ELSE.
CLEAR cv_flag.
ENDIF.
IF NOT cv_flag IS INITIAL.
WRITE NETPR CURRENCY IS_EKKO-WAERS TO GV_NETPR_IN_DOC_CUR.
ENDIF.
Hi
Format for date and amount is based on country which is maintained in tcode Oy01 so check it in oy01.......
Regards,
Mahipal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Linda
Check if any country settings are explicitly set inside the SAPScript. If yes, then Sript will take those country specific settings.
- Harshad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Linda,
sapscript is using the decimal format of the receiving country, which can be found in T005-XDEZP.
This is independent of the user ...
Best regards,
Nils
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.