‎2008 Mar 26 10:31 AM
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
‎2008 Mar 26 10:40 AM
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
‎2008 Mar 26 10:34 AM
hi Abhisek,
you can use IMPORT ... FROM MEMORY ... and EXPORT ... TO MEMORY ... statements.
more info in SAPHelp!
hope this helps
ec
‎2008 Mar 26 10:34 AM
hi,
use
EXPORT ITAB[] TO MEMORY ID 'ZMEM'.in first prog.
IMPORT ITAB[] FROM MEMORY ID 'ZMEM'.in second prog.
‎2008 Mar 26 10:37 AM
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
‎2008 Mar 26 10:39 AM
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.
‎2008 Mar 26 10:40 AM
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