Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

REPLACE ALL OCCURRENCES OF....

In my internal table I want to replace the SPACES by a character '%20'.

I am using

REPLACE ALL OCCURENCES OF ' ' IN TABLE GT_TAB WITH '%20'.

But I am getting an exception CX_SY_REPLACE_INFINITE_LOOP.

Let me know if there is any way to replace all the SPACE in an internal table.

Thanks.

Tags:
Former Member
Former Member replied

Loop at internal table into work area and then use REPLACE ALL for that work area.

Else try TRANSLATE keyword.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question