‎2007 Aug 15 3:26 PM
Hello,
I have a string which I want to convert to an table char132. I used FM SOTR_SERV_STRING_TO_TABLE which is working quiet good. But sometimes I get a string with "cl_abap_char_utilities=>NEWLINE" as line break.
Now I could use SPLIT at "cl_abap_char_utilities=>NEWLINE" into table. But I dont know before how the string looks like, sometimes I get a mixture of both.
Is there a function module which does both: Splitting the string after 132 characters or if exists after "cl_abap_char_utilities=>NEWLINE" .
If there is no FM for this, any ideas what to do?
thankx and regards
stefan
‎2007 Aug 15 3:43 PM
HI,
try using..
SPLIT V_FILEDATA_OUT AT CL_ABAP_CHAR_UTILITIES=>CR_LF INTO TABLE I_FILE.
Thanks
Mahesh
‎2007 Aug 15 3:46 PM
Try other FM's :
call function 'SWA_STRING_SPLIT'
EXPORTING
input_string = vs_heat -> this string field
max_component_length = 132
TABLES
string_components = itab_sd. -> Internal table
Thanks
Seshu
‎2007 Aug 15 3:48 PM
Hi,
Try with fm SCMS_FTEXT_TO_TEXT
and also check function group SCMS_CONV
aRs