Google Search - Blog...........

ABAP -Syntax & Example - Replace All Occurances Use.

report ztest .

data:char(25) value '5#4#2#&1#&',
char1(9) type c ,
char2(4) type c value 'test'.

replace all occurrences of '#' in char with 'and' .
replace all occurrences of '&' in char with 'num' .
replace all occurrences of 'a' in char with char2 .

write: char.

2 comments: