Ever thought as to how to exchange the data between programs? well, that’s why we have ABAP Memory for.
EXPORT TO MEMORY ID <memory_id_ name> will copy the data to ABAP Memory and
IMPORT FROM MEMORY ID <memory_id_ name> will copy the data from ABAP Memory. One import thing to note is that the data declarations and data types should be declared in both the programs and both of them must contain the same data type otherwise it will not work.