replace . wich *nothing*
Hi all,
question from an ABAP learner
I have a Value like "6.100".
no, i want to strike out the "." .
I used:
REPLACE '.' with '' INTO c_cell_content.
The Result is "6 100".
how can I make the replace with a *nothing* and not the blank?
ok, found the sollution myself
i used a variable leer=''.
then
REPLACE '.' with leer INTO c_cell_content.
and it worked.
not knowing why, but this worked....
You could have used CONDENSE with your first example but it's good that you found your own method !
Dear Rello:
Because you used type STRING for leer. Type C does not work, because it is at least 1 character long. But you need to consider
a) multiple occurrences of the '.'
b) different user settings, in case the field is filled by WRITE
c) alignment, in case you need the alignment on the rightmost character (shift right)
Regards,
Wolfgang