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

Import Statement

Former Member
0 Likes
680

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.

4 REPLIES 4
Read only

Former Member
0 Likes
566

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

Read only

Former Member
0 Likes
566

from abap memory or internal memory id abc contents will be retrieved and stored in LV_VAR

Read only

Former Member
0 Likes
566

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

Read only

0 Likes
566

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?