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 pass an internal table to "submit job"

kowong
Participant
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

Why don't you put the file in the server and use open dataset to upload it?

Sm1tje
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.