‎2009 Dec 21 12:22 PM
Hello Gurus,
I am facing a slight problem in concatination of two character variables ..
Followingis my code:
DATA: text1(100) value 'ABCD'.
DATA: text2(100) value 'PQRS'.
CONCATENATE text2 text1 into text2.
Now I want output like this:
ABCD
PQRS
So how can I separate both by new line .. I tried using separated by cl_abap_char_utilities=>newline but it's printing # instead of going to new line ..
Kindly help ..
‎2009 Dec 21 12:35 PM
just try seperated by (some value)
Then try split into table
Example
concatenate text1 text2 into text3 separated by '&'.
split text3 at '&' into table itab.
‎2009 Dec 21 12:41 PM
Well, don't concatinate them in the first place, if you want them separate
Thomas