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: 

EXPORT - IMPORT in BACKGROUND JOB

Former Member
0 Kudos

Hello ABAP Gurus,

There are two programs I am using.

In 1st Program I am Exporting the Data to the ABAP Memory and then after that scheduling the second program in background from 1st Program through

1 ) JOB_OPEN

2 ) SUBMIT

3 ) JOB_CLOSE

Now I am trying to Import the data that is Exported in the second program which is scheduled in background.

But I am not able to Import it.

My question is that - Does EXPORT - IMPORT Statements works in such scenario when background job is scheduled.

As it is working fine if, I only submits and does not put in the Background JOB.

Looking forward for the answer.

Helpful answers will definately be awarded.

Thanks in Advance

Sudhanshu Garg

4 REPLIES 4

former_member195698
Active Contributor
0 Kudos

You cannot use IMPORT/EXPORT To MEMORY in such a case.

Try using IMPORT/EXPORT to DATABASE instead

0 Kudos

Thanks Abhishek for the quick response,

So Do I have to make two structures in the dictionary for achieving this is in Background Job,

Thanks & Regards,

Sudhanshu Garg

0 Kudos

Hi Sudhanshu,

Export/import to memory uses ABAP memory which will not be accessible by the background job.

No need of creating the structures in dictionary

You can use the Table INDX for storing your data in the database.

See the link below for an example.

http://help.sap.com/saphelp_45b/helpdata/en/34/8e73a36df74873e10000009b38f9b8/content.htm

0 Kudos

Thanks Abhishek for the needful,

Regards,

Sudhanshu Garg