2005 Jun 23 7:26 AM
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 cant 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
2005 Jun 23 7:41 AM
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 cant 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
2005 Jun 23 7:41 AM
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.