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

anuj_srivastava
Active Participant
0 Likes
1,296

Hi ,

I have taken a internal table into which a amount field is there say 181532.00

When i am trying to use write statement the amount is being displayed as 181.532,00 instead of 181,532.00.

What can be the possibel cause of this ?

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,223

Hello,

Is there a stmt SET COUNTRY <cntry> in your code ? If so you can cross check the table T005X field XDEZP for details.

[SAP Help on SET COUNTRY|http://help.sap.com/saphelp_nw04/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm]

I guess this might be causing your o/p to appear this way.

BR,

Suhas

Edited by: Suhas Saha on Mar 24, 2009 9:28 AM

9 REPLIES 9
Read only

Former Member
0 Likes
1,223

Well the Decimal notation for the user will be set likewise. Check the Defaults tab in User Profile SU01D.

Read only

0 Likes
1,223

Hi ,

The dafualt tab is set right...but still the problem persists.

Read only

0 Likes
1,223

had u define ur amount variable correctly.

try to define as amount like vbrp-netwr.

hope this will work.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,224

Hello,

Is there a stmt SET COUNTRY <cntry> in your code ? If so you can cross check the table T005X field XDEZP for details.

[SAP Help on SET COUNTRY|http://help.sap.com/saphelp_nw04/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm]

I guess this might be causing your o/p to appear this way.

BR,

Suhas

Edited by: Suhas Saha on Mar 24, 2009 9:28 AM

Read only

0 Likes
1,223

Hi Suhas,

ya there was a statement SET COUNTRY .

When i removed this i am getting XX XXXX,XX . Still my error is not resolved. It should come as XX,XXX.XX .

And in table T005X the field XDEZP is blank.

How to set the field XDEZP as X ??

Regards

Anuj

Read only

Former Member
0 Likes
1,223

hello there,

in that table if set country is Space

in su01 ur settings under decimal notation

should be 1st radio button

if set country is 'X'.

ur settings should be 2nd radiobutton

if set country is 'Y'.

settings should be 3rd radiobutton.

check in the table if it is Space or X or Y and check ur settings accordingly

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,223

Hello Anuj,

In that case you can check USR01-DCPFM(or USR01) to check what is the decimal format for the user.

BR,

Suhas

Read only

0 Likes
1,223

Hi Suhas ,

The problem is solved.

Regards ,

Anuj

Read only

Former Member
0 Likes
1,223

hi,use WRITE v_amt TO v_amt CURRENCY <currkey>.

example

WRITE: v_amt1 CURRENCY 'USD', "write the name of the currency in which u want

thanks