Application Development and Automation 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: 
Read only

how to export/import internal table to memory ?

Former Member
0 Likes
3,803

hi

i am trying to export/import an internal table from memory but without sucsses,

i am writing this code

**** include Z_IMPORT

data: memory_address(40) value 'TABLE'.

data:  itab_tmp type table of pa0001.

EXPORT itab_tmp TO MEMORY ID memory_address.

******************************************************************************************************************************

**** include Z_EXPORT

data: memory_address(40) value 'TABLE'.

data:  itab_tmp type table of pa0001.

IMPORT itab TO itab_tmp FROM MEMORY ID memory_address.

Does any one had an idea why there is no data in itab_tmp after the import ?

thanks Ami

hi

i am trying to export/import an internal table from memory but without sucsses,

i am writing this code

**** include Z_IMPORT

data: memory_address(40) value 'TABLE'.

data:  itab_tmp type table of pa0001.

EXPORT itab_tmp TO MEMORY ID memory_address.

******************************************************************************************************************************

**** include Z_EXPORT

data: memory_address(40) value 'TABLE'.

data:  itab_tmp type table of pa0001.

IMPORT itab TO itab_tmp FROM MEMORY ID memory_address.

Does any one had an idea why there is no data in itab_tmp after the import ?

thanks Ami

5 REPLIES 5
Read only

vinoth_aruldass
Contributor
0 Likes
1,605

hi ami,

in zexport you need to submit the report zimport then only itab will have entry...

hope it helps,

Vinoth.

Read only

Former Member
0 Likes
1,605

pls try

IMPORT itab_tmp FROM MEMORY ID memory_address.

Read only

Former Member
0 Likes
1,605

Hi,

You have to SUBMIT first program into Second program befor IMPORT Statement.

Thanks

Mani

Read only

Former Member
0 Likes
1,605

Hi,

try this 

**** include Z_IMPORT

data:  itab_tmp type table of pa0001.

EXPORT itab_tmp TO MEMORY ID 'AAA'.

submit  z_export.

******************************************************************************************************************************

**** include Z_EXPORT

data:  itab_tmp type table of pa0001.

IMPORT  itab_tmp FROM MEMORY ID 'AAA'.

Thanks & regards,

Srinivas

Read only

former_member186413
Participant
0 Likes
1,605

Hi, Guest I think you are making wrong syntax.

EXPORT <target> FROM <val1> TO MEMORY ID <memory_ID>

IMPORT <target> TO <val2> FROM MEMORY ID <memory_ID>

From here "<target>" is where the contents stored in the memory id.