11-17-2007 1:43 PM
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
11-17-2007 1:44 PM
You cannot use IMPORT/EXPORT To MEMORY in such a case.
Try using IMPORT/EXPORT to DATABASE instead
11-17-2007 1:52 PM
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
11-17-2007 1:56 PM
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
11-17-2007 2:21 PM