12-20-2007 12:02 PM
hi:
can any one tell me how to download the application file to local file by back ground job? thanks in advance..
Monson
12-20-2007 12:04 PM
12-20-2007 12:18 PM
Hi,
I dont think you can download a file from the application server in background mode.
Still you want to do the same you can do settings for your computer from SM59 transaction. But this would be machine sepecific and this has to be done by basis.
remember the method using SM59 is not very suggestive.
Hope this would clarify your doubts.
Regards,
Lalit
12-20-2007 1:06 PM
Hi,
In order to download a file from application layer to a local file in background,
first write a report(ZREPORT1) in which do the following steps:
OPEN DATASET g_file_1 FOR INPUT IN TEXT MODE ENCODING DEFAULT.
loop the g_file and append all the data into another internal table.
end of this report you shd have all the data in the application layer file into your internal table.
Now create another report(ZREPORT2) and submit this report in background.
that is,
JOB_OPEN
JOB_SUBMIT and
JOB_CLOSE
and in job_submit submit ZREPORT1 which downloads the file in application layer.
Please reward points if helpful.
Regards,
Arul.
12-21-2007 1:40 AM
thanks in advance, can you tell me in detail, thanks very much for your help.
12-21-2007 2:06 AM
OPEN DATASET g_file_1 FOR INPUT IN TEXT MODE ENCODING DEFAULT.
get the application server data into a Internal table itab_as.
in the same prgoram write some more code wher u use WS_download
and give ur presentation server path as input to it and pass the
itab_as table to it.. u will have the txt or XLS file on ur presentation server as u wanted
Award points if useful
12-25-2007 4:12 AM
if you use ws_download, there is no batch job, specially is this point...
12-25-2007 5:40 AM
to WS_download
u give the internal table data into it... and specify where u need the file..