2007 Nov 06 10:24 AM
data : a type i value 96406.
write : a.
o/p : 96.406
Why is this?
2007 Nov 06 10:31 AM
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?
2007 Nov 06 10:31 AM
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?
2007 Nov 06 10:48 AM
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.
2007 Nov 06 10:57 AM
hi,
use code as below :
data : a type i value 96406.
data : b(10).
b = a.
write : b.
sandeep kaushik
2007 Nov 06 10:32 AM
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
2007 Nov 06 10:32 AM
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
2007 Nov 06 10:34 AM
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
2007 Nov 06 10:52 AM
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