2011 Dec 22 8:43 PM
Hello All,
I need to pass data from a workarea and an internal table to another program that needs to be submitted in background job.
My problem is that EXPORT / IMPORT is not working.
I have tried the following:
EXPORT wa_header i_item TO MEMORY ID 'ZMYID'.
EXPORT wa_header i_item TO DATABASE INDX(AR) ID 'ZMYID'.
EXPORT wa_header i_item TO SHARED BUFFER INDX(ST) ID 'ZMYID'.
Thanks in advance!
2011 Dec 22 9:21 PM
Hi,
DATA: le_indx TYPE indx.
Export and Import should work in the background job. Instead of moving the data to memory you can move to index table like
Export the output table to memory
le_indx-aedat = sy-datum.
le_indx-usera = sy-uname.
le_indx-pgmid = sy-repid.
EXPORT wa_header i_item =wa_header i_item
TO DATABASE indx(xy)
FROM le_indx
CLIENT sy-mandt
ID 'ZMYID'.
SUBMIT ZXXXXXX
AND RETURN.
Inside the submit
Import the input table from memory
IMPORT wa_header i_item =wa_header i_item
FROM DATABASE indx(xy)
TO le_indx
CLIENT sy-mandt
ID 'ZMYID'.
Thanks,
Satheesh