12-13-2003 8:50 PM
Hi All,
I want to upload a text file in Background.
Please explain me how to save this text file on Application Server, so that I can upload it in the background.
Thanks,
Anitha
12-21-2003 7:50 PM
Hi Anitha
Try something like this:
Your data statements must look like this:
data: g_mess
g_dsn(60).
data: begin of g_downlunix_tab occurs 0,
unix(60),
end of g_downlunix_tab.
g_dsn = '/usr/sap/trans/R3/bin/trans/mydownload'.
clear g_mess.
open dataset g_dsn for output in text mode.
if sy-subrc = 0.
g_mess = 'X'.
loop at g_downlunix_tab.
transfer g_downlunix_tab-unix to g_dsn.
endloop.
endif.
close dataset g_dsn.
Hope that you can use it.
Best regards
Lars