‎2007 Nov 20 5:49 AM
Hi Experts,
I have one doubt one statement
IMPORT LV_VAR FROM MEMORY ID 'ABC'.
What is the meaning of the above statement.
Pls let me know asap.
‎2007 Nov 20 5:50 AM
Hi
You are importing the vraible from the ABAP memory after exporting it.
see the doc
ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data
to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.
ABAP memory is temporary and values are retained in same LUW.
export itab to memory id 'TEST'.
import itab from memory Id 'TEST'.
Here itab should be declared of same type and length.
http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
ABAP Memmory & SAP Memmory
http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
Regards
Anji
‎2007 Nov 20 5:51 AM
from abap memory or internal memory id abc contents will be retrieved and stored in LV_VAR
‎2007 Nov 20 5:53 AM
Hi,
IMPORT LV_VAR FROM MEMORY ID 'ABC'.
The data stored in ABAP memory under the key'ABC' is imported to LV_VAR.
Revrt back if any issues,
Regards,
Naveen
‎2007 Nov 20 6:29 AM
Hi All,
fine, I would like to know how data gets stored in that memory id i.e. 'ABC'. How I can find it out?
While debugging it will return the value in LV_VAR. I wanted to know how data get selected.
Any suggestion?