08-11-2011 12:41 PM
Hi all,
I want to replace all occurences of '--' with '?'.
REPLACE ALL OCCURRENCES OF '--'
IN TABLE gt_wf WITH '?'.
But then all next fields will be shifted by one place because '--' are two characters and '?' is just one character.
When I would replace '--' with '??' there would be no problem.
Adding a space has no success in the end of the ?.
I think a line in the itab will be seen as one big string.
Regards
08-11-2011 1:00 PM
data: lv_string type string.
lv_string = 'test--string'.
REPLACE ALL OCCURRENCES OF '--'
IN lv_string WITH `? `.
write: lv_string.
observe, i have used `? ` instead of '? '. basically use ` instead '
Edited by: ssm on Aug 11, 2011 5:30 PM
08-11-2011 12:44 PM
Hi,
will it would be usfule if you replace all occurrences of '--' with ' ?' i.e. space and a ?.
Best Regards
Manoj
08-11-2011 12:53 PM
08-11-2011 1:00 PM
data: lv_string type string.
lv_string = 'test--string'.
REPLACE ALL OCCURRENCES OF '--'
IN lv_string WITH `? `.
write: lv_string.
observe, i have used `? ` instead of '? '. basically use ` instead '
Edited by: ssm on Aug 11, 2011 5:30 PM