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

export memory id for an internal table

Former Member
0 Likes
2,781

Hi all,

Can any one tell me how to declare a export memory id for an internal table???

regards,

madhu

Hi all,

Can any one tell me how to declare a export memory id for an internal table???

regards,

madhu

7 REPLIES 7
Read only

Former Member
0 Likes
1,178

sm30.

TABLE <b>TPARA</b> u maintain memory id.

Read only

Former Member
0 Likes
1,178

Hi

One point to remember here is that memoryID for exporting an Internal table is that the <b>memoryID and the internal table name must be the same</b>.

Regards,

Raj

Read only

Former Member
Read only

Former Member
0 Likes
1,178

Hi,

data lv_date like sy-datum value '20050303'.

data itab like lv_date occurs 0 with header line.

itab = lv_date.

append itab.

<b> set parameter ID 'TEST' field itab.</b> click on test to activate parameter id

it is stored in table TPARA.

you can use Get parameter id 'TEST' field itab.

to get value assigned.

Set,get are active stored in SAP global memeory.

or

export itab to memory id 'TEST'.

import itab from memory id 'TEST'.

itab should have same length and type.

Regards

Amole

Read only

Former Member
0 Likes
1,178

hi,

In first program,

 types : begin of t_itab,
           name(10),
         end of t_itab.
 data: itab type table of t_itab with header line.
 ws_memid = 'MY_MEMID'.
 export itab to memory id ws_memid.

In second program,

 types : begin of t_itab,
           name(10),
         end of t_itab.
 data: itab type table of t_itab with header line.
 ws_memid = 'MY_MEMID'.
 import itab from memory id ws_memid.


regards,

Sailaja.

Read only

Former Member
0 Likes
1,178

Hi,

like this

export a = tb_zidi_sumrep to memory id 'zidi_sumrep'.

and getting it likewise.

Hope this helps

Regards

Nishant

Read only

Former Member
0 Likes
1,178

TYPES:

BEGIN OF tab_type,

para TYPE string,

dobj TYPE string,

END OF tab_type.

DATA:

id(10) TYPE c VALUE 'TEXTS',

text1 TYPE string VALUE `IKE`,

text2 TYPE string VALUE `TINA`,

line TYPE tab_type,

itab TYPE STANDARD TABLE OF tab_type.

line-para = 'P1'.

line-dobj = 'TEXT1'.

APPEND line TO itab.

line-para = 'P2'.

line-dobj = 'TEXT2'.

APPEND line TO itab.

EXPORT (itab) TO MEMORY ID id.

IMPORT p1 = text2

p2 = text1 FROM MEMORY ID id.