06-13-2007 12:36 PM
06-13-2007 12:39 PM
Hi Rippy ,
What is your exact requirement?
What i understand is you have a string and want to move it to an internal table.
IF it is so the define an internal table as
Data : Begin of it_1 occurs 0 ,
str type string.
End of it_1.
it_1-str = v_string.
append it_1.
Regards
Arun
*Assign points if helpful
06-13-2007 1:35 PM
i actually want to <b>create an error file</b> incase of error in GUI_DOWNLOAD to presentation and application server.
the error file is <b>txt</b> with the string as " Error while opening file!!".
06-13-2007 1:38 PM
Hi Rippy,
you can use the option i had given, this must work.
Just check the value of su-subrc returned by the FM and assign a text to the variable and append it to the internal table.
Regards
Arun
06-13-2007 12:40 PM
06-13-2007 12:47 PM
you can use
data: begin of itab_d occurs 0,
text(255) type c,
end of itab_d.
data v_string type string.
pass ur string and internal table to below fm and you can use each line how many charcters ,
length would be 255 charcters ( what ever you want ,you can keep in FM )
SWA_STRING_SPLIT