‎2007 Aug 21 6:23 AM
Hi Experts,
I have a quantity field in my print program.Say i have 60.000 value for that.
But in the script output it is displayinga as 60,000 .
Instaed of '.' it is taking ',' in the output
So how to resolve this?
Regards
‎2007 Aug 21 6:25 AM
Ravi,
Type ABAPHELP in the command field and give the keyword as REPLACE.
You will be able to see the documentation for the same.
DATA: text TYPE STRING.
text = 'abcdefgh'.
REPLACE 'd' IN text WITH 'XXXX'.
K.Kiran.
‎2007 Aug 21 6:25 AM
Ravi,
Type ABAPHELP in the command field and give the keyword as REPLACE.
You will be able to see the documentation for the same.
DATA: text TYPE STRING.
text = 'abcdefgh'.
REPLACE 'd' IN text WITH 'XXXX'.
K.Kiran.
‎2007 Aug 21 6:54 AM
Hi,
I have gone through the answer of K.Karan.
There is no doubt the best method to do.
I am attaching a small code for that::::
DATA: lv_test1 TYPE char10 VALUE '60,000'.
REPLACE ',' WITH '.' INTO lv_test1.
WRITE: lv_test1.
First it will have a value like 60,000
then it will have a value 60.000.
I had a similar requirement in smartform.
There I have used ' SET COUNTRY '<country code>''
This will set the printing standard in the country code specific format.
The format for printing for a specific country is given in the table T005X.
Rewards points if found useful.
Thanks
Abhijit
‎2007 Aug 21 7:14 AM
Hi ,
Go to -> User Profile -> own data -> defaults -> decimal Notation and change the way you want it to be dispalyed...