‎2007 Jun 05 12:29 PM
Hi,
A string remembers line break as a character # (Hex - 0A) which is different from the normal character # (Hex - 23). I need to split a string at the line break into multiple strings. The normal usage of SPLIT command does not help. If somebody has a better idea, please let me know. Thnaks in advance.
Regards,
Sudhakar
‎2007 Jun 05 12:38 PM
use this..
SPLIT V_STR AT <b>CL_ABAP_CHAR_UTILITIES=>NEWLINE</b> INTO ....
‎2007 Jun 05 12:32 PM
well a line break consists normally of two characters.
chr(10)line-break and chr(13)line-feed.
maybe you can skim your string for those two ascii codes 10 and 13.
‎2007 Jun 05 12:38 PM
use this..
SPLIT V_STR AT <b>CL_ABAP_CHAR_UTILITIES=>NEWLINE</b> INTO ....
‎2007 Jun 05 12:39 PM
data a type x value '09'.
split int_table-field at '#' into target-field
target fied.
append target_field.
‎2007 Jun 05 1:25 PM
Thanks a lot to Chandrasekhar. His reply has solved my problem.
Regards,
Sudhakar.