2013 Feb 06 6:51 AM
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
2013 Feb 06 7:01 AM
hi ami,
in zexport you need to submit the report zimport then only itab will have entry...
hope it helps,
Vinoth.
2013 Feb 06 7:10 AM
2013 Feb 06 7:18 AM
Hi,
You have to SUBMIT first program into Second program befor IMPORT Statement.
Thanks
Mani
2013 Feb 06 9:30 AM
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
2013 Feb 06 10:08 AM
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.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |