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

Export (or) Import

Former Member
0 Likes
546

Hi,

How to Export or Import

Memory id for Internal table?

I can Export one variable field but, i can't export Bulk of data (i.e.) internal table.

Ex:

date = 15.02.2008

Export data to memory id 'MEM_ID'.

Please Help Immediately.

Regards

Geetha K

4 REPLIES 4
Read only

former_member404244
Active Contributor
0 Likes
525

HI,

Check the below link

http://www.sap-img.com/ab020.htm

Regards,

nagaraj

Read only

Former Member
0 Likes
525

hi,

EXPORT :-

To read data objects from an ABAP program into ABAP memory, use the following statement:

Syntax

EXPORT ... TO MEMORY ID .

This statement stores the data objects specified in the list as a cluster in memory. If you do not use the option FROM , the data object is saved under its own name. If you use the FROM option, the data objet is saved under the name . The name identifies the cluster in memory. It may be up to 32 characters long.

The EXPORT statement always completely overwrites the contents of any existing data cluster with the same name .

IMPORT :-

To read data objects from ABAP memory into an ABAP program, use the following statement:

Syntax

IMPORT ... FROM MEMORY ID .

This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO option, the data object in memory is assigned to the data object in the program with the same name. If you do use the option, the data object is read from memory into the field . The name identifies the cluster in memory. It may be up to 32 characters long.

Hope this helps, DO reward.

Read only

Former Member
0 Likes
525

hi,

first you go to se37. here u create the functional module and u click the export interface button, in the parameter field u define the internal table, and in the associated type field u type the table .and u tick in the pass by value.

create another new session se38 and create the abap program .press ctrl + F6 button , instead of typing the call function statement into your program,

position your cursor within the source code on the line after the one where you want the call function statement to appear.

type the name of your function module in the input field which is on the right side of the call function label.

after u type press enter.

they fetch the interface automatically which u are created in the functional module.

note: if u export the table in se37(functional module) u have to import the table in se38(function calling program)

regards

surender

Read only

Former Member
0 Likes
525

Hello Geetha,

Exporting and Importing the internal table is the same way as we do for normal variables.

Ex:

EXPORT t_itab TO MEMORY ID 'INTERNAL'.

IMPORT t_itab FROM MEMORY ID 'INTERNAL'.

The important point here is that the structure of the 't_itab' should be in sync in both the programs where you are exporting and importing the data.

Thanks and Regards,

Pavan K