Skip to Content

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

Split string

Hello

I have a variable string which has the value:

'string1;string2;string3;string4;string5'

I want to use each individual string from the list.

i.e. loop through all the strings[n] and process them.

What are your views on the best way to extract these string?

Can I split them into a table and loop through the table? What would be the syntax for this?

I am new to ABAP and interested in the best way to carry out processing.

Cheers

Andrew

Tags:
Former Member
Former Member replied

split it once.. check if the first of the new strings is the same as the original string

if it is different, then split it again till it becomes the same

run it in a loop

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