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

Simple Program...But O/P ?

Former Member
0 Likes
763

data : a type i value 96406.

write : a.

o/p : 96.406

Why is this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
745

Hi,

I guess it says 96,406.

Wat do you exactly want in the output?

It you want to change the format for a Decimal Notation you can do so by clicking on System->User Profile->Own Data.This enables the user to choose among the various formats. Is this is what you were looking for?

7 REPLIES 7
Read only

Former Member
0 Likes
746

Hi,

I guess it says 96,406.

Wat do you exactly want in the output?

It you want to change the format for a Decimal Notation you can do so by clicking on System->User Profile->Own Data.This enables the user to choose among the various formats. Is this is what you were looking for?

Read only

0 Likes
745

Thanx for answering...

But if i want the o/p to be 96406.....without coma or dot....wat ever the answer u gave v tried. but v r not getting the answer wat v want.

Read only

0 Likes
745

hi,

use code as below :

data : a type i value 96406.

data : b(10).

b = a.

write : b.

sandeep kaushik

Read only

Former Member
0 Likes
745

Hi ,

Check ur Sap system. Decimal Places pointer is to be adjusted.

If the change is done ur output will be 96,406 instead of 96.406. see inplace of dot coma is there.

If it is usefull reward pts pls

Regards

Srimanta

Read only

Former Member
0 Likes
745

Hi in you SAP session go to menubar.., SYSTEM--> USER PROFILE --> OWN DATA...

now click on DEFAULTS and check the decimal format there.. may be there comma separator is specified as '.'. Change that to , and . and check the output.

u must logoff to reflect the changes

Read only

Former Member
0 Likes
745

i think this is because of user settings.

Go to SU01 and give your user name go to change mode.

There in the Default tab give Decimal notation as 1,234,567.89.

Log out and again log in and now run the prog.

Hope it may work

regards

shiba dutta

Read only

Former Member
0 Likes
745

for type i and type p variable by default that will come. for your requirement you have to take type c variable,

data : a type i value 96406,

c1(15) type c.

c1 = a.

replace all occurrences of ',' in c1 with space.

condense c1.

write : c1.

regards

shiba dutta