I am learning ABAP. In the past I used python.
Python: ', '.join(['one', 'two', 'three'])
Result: 'one, two, three'
How can I join a list of strings with ,
and create a string containing one, two, three
?
System release is 740.
I am learning ABAP. In the past I used python.
Python: ', '.join(['one', 'two', 'three'])
Result: 'one, two, three'
How can I join a list of strings with ,
and create a string containing one, two, three
?
System release is 740.
Another way of writing
CONCATENATE LINES OF ...
is to use the 7.40 function concat_lines_of( [table =] itab [sep = sep] )(Result: 'one, two, three')
I'm kind of spitballin' here but the following should work. You got a table of strings
lt_strings
and a variable for outputlv_concatenated
. ABAP has a built in command called concatenate and you can feed a table as input.