‎2007 Apr 20 3:14 PM
Hello,
I am trying to split a string into an internal table with:
split content at '##' into table it_content
but as the expected 6 line I only get 1 line into the table with the complete string.
Any ideas?
regards
stefan
‎2007 Apr 20 3:18 PM
try this
split content at CL_ABAP_CHAR_UTILITIES=>CR_LF into table it_content
‎2007 Apr 20 3:18 PM
try this
split content at CL_ABAP_CHAR_UTILITIES=>CR_LF into table it_content
‎2007 Apr 20 3:18 PM
hi stefan,
the # you see is not actual #.
instead you should do this.
split content at cl_abap_char_utilities=>CR_LF into it_content.
‎2007 Apr 20 3:24 PM
thanks to all,
split content at cl_abap_char_utilities=>CR_LF into it_content.
perfectly worked.
regards
stefan
‎2007 Apr 20 3:19 PM
‎2007 Apr 20 3:20 PM
I think it's more likely to be
split content at CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB into table it_content
‎2007 Apr 20 3:21 PM
Hi,
You need to write the Program like below
DAta: DEL(3) VALUE '***'.
SPLIT content AT DEL INTO TABLE <itab>.
The system adds a new line to the internal table <itab> for each part of the string.
Regards
Sudheer