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 with Formatting Layout Set Symbols.

Former Member
0 Likes
468

Hi,

I have modified a Layout set and this layout set is called directly by an ABAP program. The problem is with fields that hold a numeric value gets formatted through some thing which I can’t trace.

Example:

10,000.20 -


is displayed like -


10.000,20

500.346 -


is displayed like -


500,346

As you could see the decimal place (“.”) is replaced with comma (“,”). What should I do to get this appear normal. Do remember that the Layout set and the calling ABAP program was not written from scratch by me it was already there and I modified it.

I checked my User Profile under the Defaults Tab the Decimal Notation is set to "1,234,567.89". Yet the problem keeps on poping. It has to do something with the calling Program or Layoutset.There should be a flag in the calling program that control this format.

Pls I need a answer.

Thnkx

Kishan

1 ACCEPTED SOLUTION
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
403

Hi,

Just try to use REPLACE statement.

data cur(10) type c.

cur = '10.000,20'.

replace ',' with '|' into cur.

replace '.' with ',' into cur.

replace '|' with '.' into cur.

write cur.

Hi,

I have modified a Layout set and this layout set is called directly by an ABAP program. The problem is with fields that hold a numeric value gets formatted through some thing which I can’t trace.

Example:

10,000.20 -


is displayed like -


10.000,20

500.346 -


is displayed like -


500,346

As you could see the decimal place (“.”) is replaced with comma (“,”). What should I do to get this appear normal. Do remember that the Layout set and the calling ABAP program was not written from scratch by me it was already there and I modified it.

I checked my User Profile under the Defaults Tab the Decimal Notation is set to "1,234,567.89". Yet the problem keeps on poping. It has to do something with the calling Program or Layoutset.There should be a flag in the calling program that control this format.

Pls I need a answer.

Thnkx

Kishan

1 REPLY 1
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
404

Hi,

Just try to use REPLACE statement.

data cur(10) type c.

cur = '10.000,20'.

replace ',' with '|' into cur.

replace '.' with ',' into cur.

replace '|' with '.' into cur.

write cur.