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

pass table from one program to another

Former Member
0 Likes
667

Hi,

I need to pass an internal table from one program to another program.

Currently I am using SET PARAMETER and GET PARAMETER but it passes only one value at a time and it comes out from the GET program internal table destroy.

So I need to pass a complete internal table from one program to another. Please hepl.

Thanks.

Abhishek Prakash

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
624

hi abhishek,

please try the below code...

export itab to memory id 'ABC'.

then in desired program u have to write..

import itab from memory id 'ABC'.

remember both program must running state in same login.

and a program in which you r calling import is must in memory with either include or submit statment.

rewards if help ful.

thanks.

Amit.

Edited by: Jony on Mar 26, 2008 12:31 PM

5 REPLIES 5
Read only

JozsefSzikszai
Active Contributor
0 Likes
624

hi Abhisek,

you can use IMPORT ... FROM MEMORY ... and EXPORT ... TO MEMORY ... statements.

more info in SAPHelp!

hope this helps

ec

Read only

Former Member
0 Likes
624

hi,

use

EXPORT ITAB[] TO MEMORY ID 'ZMEM'.in first prog.

IMPORT ITAB[] FROM MEMORY ID 'ZMEM'.in second prog.

Read only

Former Member
0 Likes
624

Hi

You can use EXPORT to memory in this program

in other program use IMPORT from Memory

or use SUBMIT if you want to pass the itab to other table vai selection

for more info

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/export01.htm

Regards

Shiva

Read only

Former Member
0 Likes
624

program1:

EXPORT t_sflight1 TO MEMORY ID 'YH1'.

SUBMIT program2 AND RETURN.

in program 2:

IMPORT t_sflight1 FROM MEMORY ID 'YH1'.

t_sflight1 in internal table,

program 2 should have the same structure and same internal table declared there also.

regards,

priya.

Read only

Former Member
0 Likes
625

hi abhishek,

please try the below code...

export itab to memory id 'ABC'.

then in desired program u have to write..

import itab from memory id 'ABC'.

remember both program must running state in same login.

and a program in which you r calling import is must in memory with either include or submit statment.

rewards if help ful.

thanks.

Amit.

Edited by: Jony on Mar 26, 2008 12:31 PM