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

display problem in script out put

Former Member
0 Likes
388

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

1 ACCEPTED SOLUTION
Read only

kiran_k8
Active Contributor
0 Likes
366

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.

3 REPLIES 3
Read only

kiran_k8
Active Contributor
0 Likes
367

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.

Read only

Former Member
0 Likes
366

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

Read only

Former Member
0 Likes
366

Hi ,

Go to -> User Profile -> own data -> defaults -> decimal Notation and change the way you want it to be dispalyed...