04-25-2007 12:22 PM
Dear Experts,
We have a requirement where in we need to export data from an internal table to memory and retrieve them back.
Please do check whether im using the correct statement, if wrong plz correct me.
EXPORT (int_tab) TO MEMORY ID 'Abc'.
If the above statement is syntatically rite, im not able to get the objective done. Im getting into dump in this case, where the table is built as we do normally.
Hope its clear.
Please provide solutions.
Thanks
Arunkumar S
04-25-2007 12:23 PM
04-25-2007 12:25 PM
Hi Arunkumar,
Try this program
REPORT demo_data_ext_cluster_import.
DATA text1(10) TYPE c VALUE 'Exporting'.
DATA: itab TYPE TABLE OF sbook,
wa_itab LIKE LINE OF itab.
DO 5 TIMES.
wa_itab-bookid = 100 + sy-index.
APPEND wa_itab TO itab.
ENDDO.
EXPORT text1
text2 = 'Literal'
TO MEMORY ID 'text'.
EXPORT itab
TO MEMORY ID 'table'.
SUBMIT demo_data_ext_cluster_import2 AND RETURN.
SUBMIT demo_data_ext_cluster_import3.
<b>Reward points if it solves ur query or answer is helpful</b>
Thanks
Chinmay
04-25-2007 12:25 PM
<b>EXPORT (int_tab) TO MEMORY ID 'ABC'.</b>
use capital letters always for declaring anything in SAP
04-25-2007 12:27 PM
Hi Arun,
try like this.
EXPORT int_tab[] TO MEMORY ID 'ABC'.
IMPORT int_tab[] FROM MEMOTY ID 'ABC'.
may be it not requied to specify as table ... in that case use int_tab only.
Check this and let me know.
Regards,
Satya.