04-02-2008 5:37 PM
Dear Expert,
I use open_job & close_job to submit a background job.
A text file is to be uploaded from local drive.
Since we cant perform upload during the background,
I will have to upload the file from local drive in foreground, and then submit to the background job.
I tried to use Export [internal table] to memory and Import from the background job, it doesnt work.
How can I do this ??
Thank you.
04-02-2008 6:36 PM
hi ,
you can do this using the open dataset...
i think it is the best one..
open dataset p_file for input in text mode encoding default .
loop at p_file.
output0(10) = p_file0(10).
output10(20) = p_file20(10).
output30(10). = p_file30(10).
output40(10). = p_file40(10).
endloop.
close p_file.
regards,
venkat.
04-02-2008 5:41 PM
Why don't you put the file in the server and use open dataset to upload it?
04-02-2008 5:43 PM
I don't know what version you're on but you might me able to use shared memory objects (transaction SHMA). If you don't have any experience with that (and don't want to find out), the easiest solution would probably be to export (download) the uploaded file to the application server. Next you start your background job (report) using the function modules. You report will then have to upload the internal table and process it.
04-02-2008 6:36 PM
hi ,
you can do this using the open dataset...
i think it is the best one..
open dataset p_file for input in text mode encoding default .
loop at p_file.
output0(10) = p_file0(10).
output10(20) = p_file20(10).
output30(10). = p_file30(10).
output40(10). = p_file40(10).
endloop.
close p_file.
regards,
venkat.