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

IMPORT FROM MEMORY ID

Former Member
0 Likes
483

=========Prgram as following :

DATA TEXT1(10) VALUE 'EXPROTING'.

DATA ITAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.

DO 5 TIMES.

ITAB-BOOKID = 100 + SY-INDEX.

APPEND ITAB.

ENDDO.

EXPORT TEXT1 TEXT2 FROM 'LITERAL' TO MEMORY ID 'text'.

EXPORT ITAB TO MEMORY ID 'table'.

SUBMIT ZFIELD_SYMBOLS2 AND RETURN.

PROGRAM ZFIELD_SYMBOLS2

DATA : TEXT1(10),

TEXT3 LIKE TEXT1 VALUE 'INITIAL'.

IMPORT TEXT3 FROM MEMORY ID 'text'.

WRITE : / SY-SUBRC,TEXT3.

===============

it reported error on line "IMPORT TEXT3 FROM MEMORY ID 'text'." as "statement is not accessible"?

can anybody give any tips?

tks in advanced .

3 REPLIES 3
Read only

Former Member
0 Likes
422

Hi,

Check whether u have done this way

In the first program

EXPORT t_final TO MEMORY ID 'ABC'.
  CALL TRANSACTION 'MM01'

In teh second program

INITIALIZATION.

* IMPORT the internal table which has the selected rows
* for displaying the detail report from program 
IMPORT t_final FROM MEMORY ID 'ABC'.

Hope this solves ur problem.

Instead of SUBMIT I have used CALL TRANSACTION taht is not a problem.

Read only

0 Likes
422

Change the ZFIELD_SYMBOLS2 's type Module Pool into Executable program , can pass it .

Read only

0 Likes
422

I don't know why ?ho-ho.....