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: 

Export To Memory

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

'ABC' is that in caps or not..

santhosh

Former Member
0 Kudos

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

Former Member
0 Kudos

<b>EXPORT (int_tab) TO MEMORY ID 'ABC'.</b>

use capital letters always for declaring anything in SAP

Former Member
0 Kudos

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.