‎2008 Aug 01 3:54 AM
Hi all,
I have problem, I set default Decimal Notation is : X 1,234,567.89 .In every report I coded, when it WRITE, amount display the same setting. But a report which was coded by other Abaper, I don't know why it always display format : 1.234.567,89, not same in setting, now I want to change it. Anybody know or any idea, pls tell me. Thanks a lot !
Code : WRITE : HBSID-DMBTR currency HBSID-WAERS.
‎2008 Aug 01 4:02 AM
It's been a while since I've done much around formats and stuff, but I believe that the Write statement with the Currency addition to it will override any user settings for number formating and will use number formating specific to that countries formating.
The following link from the online help has more information and examples on this for you:
http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba1ef35c111d1829f0000e829fbfe/content.htm
There is also stuff that may be in the program that uses the Set Country command.
Hope this helps,
~Ian
‎2008 Aug 01 5:20 AM
hi
check this logic..(but mostly afterthe end of the calculation --irrespective of the notation --- use this when either write or download happens)
1) SELECT SINGLE DCPFM
FROM USR01
INTO W_DCPFM
WHERE BNAME EQ SY-UNAME.
2) CASE W_DCPFM.
WHEN C_X.
MOVE: C_COMMA TO W_DELIM1(1).
WHEN C_Y.
MOVE: SPACE TO W_DELIM1(1).
WHEN SPACE.
MOVE: C_PERID TO W_DELIM1(1).
ENDCASE.
3) TRANSLATE T_DOWNLOAD-NETWR USING W_DELIM1.
CONDENSE T_DOWNLOAD-NETWR NO-GAPS.
Reward Points if helpful