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: 

Help on EXPORT / IMPORT in Background Job

Former Member
0 Kudos
1,426

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!

1 REPLY 1

Former Member
0 Kudos
216

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