How to replace a char?
Hi experts ... my problem is this:
Output: L Belstar
How I can replace this char?? ... thanks for your help and sry for my bad english =P
You need one quote to open the literal, two to represent the quote character and one more to close the literal:
DATA: lv_test TYPE c LENGTH 10 VALUE 'L''BELSTAR'. REPLACE ALL OCCURRENCES OF '''' IN lv_test WITH ' ' IN CHARACTER MODE.
DATA: lv_test TYPE c LENGTH 10 VALUE 'L''BELSTAR'. TRANSLATE LV_TEST USING ''' '.