‎2013 Jan 24 8:54 AM
Hi All,
Which is a better way to import and export parameters from and to memory IDs since import/export are obsolete statements?
‎2013 Jan 24 9:00 AM
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
‎2013 Jan 24 9:07 AM
I am using Export i_tab TO MEMORY ID 'ITAB'; IMPORT i_tab FROM MEMORY ID 'ITAB'. Is this not an obsolete statement?
‎2013 Jan 24 11:09 AM
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
‎2013 Jan 24 9:17 AM
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