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

Replacement for Import/Export

4,409

Hi All,

Which is a better way to import and export parameters from and to memory IDs since import/export are obsolete statements?

4 REPLIES 4
Read only

ThomasZloch
Active Contributor
0 Likes
1,704

I just looked it up in a 702 system and cannot find that they are obsolete. Where is your information from?

There is a few special forms that are obsolete, e.g. not using a memory ID or the short form for the parameter list, maybe you are mixing it up?

Thomas

Read only

0 Likes
1,704

I am using Export i_tab TO MEMORY ID 'ITAB'; IMPORT i_tab FROM MEMORY ID 'ITAB'. Is this not an obsolete statement?

Read only

0 Likes
1,704

This is the obsolete short parameter list (actually data object list) I was referring to, you should write something like

EXPORT itab = i_tab TO MEMORY ID 'ITAB'.

IMPORT itab =  i_tab FROM MEMORY ID 'ITAB'.

where "itab" is the parameter name under which the data object "i_itab" is stored.

Always study ABAP F1 help thoroughly before posting.


Thomas

Read only

Former Member
0 Likes
1,704

Hi ,

Import/Export are not obsolete.

But some syntax involving ther are obsolete.

Eg:

EXPORT, IMPORT - no_id

 

Obsolete Syntax

EXPORT parameter_list TO MEMORY [COMPRESSION {ON|OFF}].

IMPORT parameter_list FROM MEMORY [conversion_options].

Effect

If the EXPORT TO MEMORY or IMPORT FROM MEMORY statements do not contain the ID addition, the EXPORT statement writes to an anonymous area of ABAP memory and the IMPORT statement reads from this area.

Note

This short form is extremely error-prone and is not allowed in classes since all EXPORT statements without an ID overwrite the same data cluster.

Please refer the above screen shot under the Red Cross, these syntax are obsolete not the Import/Export itself .

Regards,

Amit