Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Decimal Notation ........

Former Member
0 Likes
586

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.

2 REPLIES 2
Read only

ian_maxwell2
Active Participant
0 Likes
537

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

Read only

Former Member
0 Likes
537

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