Skip to Content
0
Former Member
Aug 17, 2006 at 07:36 AM

export / import dynamic itab to memory

646 Views

Hi all,

I'm struggling doing an export and import from dynamic internal tables to the memory through field-symbols.

My target is to export the itab in report 1 and import it in report 2.

I thin

mild attempt:

Report 1:

  DATA: BEGIN OF itab …,
	…
  EXPORT itab from itab TO MEMORY ID memkey.

* submit diplay report
  SUBMIT ('REPORT2')
      WITH memkey  = memkey
           AND RETURN.

REPORT 2:

PARAMETERS: memkey(60) TYPE c NO-DISPLAY.
FIELD-SYMBOLS: <itab> TYPE ANY TABLE.
IMPORT <itab> FROM MEMORY ID memkey.

This code doesn't work because the 'field symbol has not yet been assigned'.

Any ideas? Thanx in advance.