Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to download the application file to local file by back ground job?

Former Member
0 Kudos

hi:

can any one tell me how to download the application file to local file by back ground job? thanks in advance..

Monson

7 REPLIES 7

former_member188829
Active Contributor
0 Kudos

Hi,

Check this thread..

Edited by: Vishnu Reddy on Dec 20, 2007 5:38 PM

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

thanks in advance, can you tell me in detail, thanks very much for your help.

0 Kudos

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

0 Kudos

if you use ws_download, there is no batch job, specially is this point...

0 Kudos

to WS_download

u give the internal table data into it... and specify where u need the file..