01-31-2007 10:16 PM
Hi everyone,
I hope any genius will be able to help me out. Here is the scenario,.
When condition is true it should be able to pass pchobjid-low(from report 1) and empty IT to objec-objid(of report 2) and get back filled IT.
any idea!!!
01-31-2007 11:33 PM
Hi,
Steps
1)
In the calling program use EXPORT.
data: begin of itab occurs 0 ,
matnr like mara-matnr,
end of itab.
EXPORT itab = itab TO MEMORY ID 'ZMEMORY'.
2)
In the called program report use IMPORT.
data: begin of itab occurs 0 ,
matnr like mara-matnr,
end of itab.
IMPORT itab = itab FROM MEMORY ID 'ZMEMORY'.
Thanks,
Naren
01-31-2007 10:29 PM
Have report 2 export the table to memory and have report 1 import it.
Rob
01-31-2007 11:26 PM
Hi Rob Burbank ,
can you porvide some code? I never work with memory.
01-31-2007 11:33 PM
Hi,
Steps
1)
In the calling program use EXPORT.
data: begin of itab occurs 0 ,
matnr like mara-matnr,
end of itab.
EXPORT itab = itab TO MEMORY ID 'ZMEMORY'.
2)
In the called program report use IMPORT.
data: begin of itab occurs 0 ,
matnr like mara-matnr,
end of itab.
IMPORT itab = itab FROM MEMORY ID 'ZMEMORY'.
Thanks,
Naren
12-12-2007 10:54 PM
some code like this from passing program
*****
SUBMIT REPORT_NAME WITH pchobjid-low = objec-objid AND RETURN.
IMPORT INTERNAL_TABLE FROM MEMORY ID 'Z32'.
and from receiving program
******
FREE MEMORY ID 'Z32'.
EXPORT INTERNAL_TABLE to MEMORY ID 'Z32'.