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

Problem in decimal places

Former Member
0 Likes
951

Hi,

I have an output value which is Rs.8,92,466.50.

The issue is if am using the variable to display as character am getting the output as Rs.892466.50.(without commas).

If i use float am getting an output as 8.9246650000000000E+05.

If i use i am getting commas 8,92,466 but the end part is truncated.

Please help me and suggest how 2 use the particular data type so that i can get my required output of <b>Rs.8,92,466.50.</b>

With regards

Vijay

6 REPLIES 6
Read only

Former Member
0 Likes
908

j

Read only

Former Member
0 Likes
908

Hi Vijay,

This depends upon you user settings as well which you maintain in SU3 transaction. You can change the Date and Currency settings as per your requirement in <b>SU3</b> transaction.

Try changing your user settings there. Hopefully your problem would be resolved.

Please revert back if problem persists.

Regards,

Lalit Kabra

Read only

Former Member
0 Likes
908

Hi Vijay,

As an alternative you can also try this at configuration level.This is done basically if there are different results for different countries.

If such is your case, you can go to SPRO->SAP Netweaver->general Settings->Set Countries-> Execute 'Define coutries in mySAP System'

This will display a list of coutries,select the country for which you want to make the changes(say SG singapore).

Double click on this code and you can change the decimal point format for that country.

Reward points,if useful,

-Bhavin P Shah

Read only

former_member633287
Discoverer
0 Likes
908

Hi Vijay,

I am facing same problem for currency INR.

I tried adding my own decimal format to domain XUDCPFM and

attcahed to the user role

but it is not reflectiing.

If you have got nay solution to this please share .

Regards,

Rina Patil.

Edited by: Rina Patil on Oct 15, 2010 9:06 AM

Read only

venkateswaran_k
Active Contributor
0 Likes
908

Hi

I assume you use the currency type field.

Please make sure that when you try to print the currency type field, you always associate the appropriate currency key to that. This may help you to print your numeric value with appropriate decimal points and commas.

Regards,

Venkat

Read only

0 Likes
908

Hi,

I think u should use correct currency field for displaying the commas and dots. You can use WRBTR field.

Regards