Application Development 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: 

Replacement of obsolete «Import/Export to-from Memory ID» operator

MikeB
Contributor
0 Kudos

Hi, ABAP Experts

Import/Export to-from Memory ID is one of the main approaches to pass data between ABAP-programs. The problem is that this statement has been marked as obsolete since ECC 6.0 (at least since end of 2007). On some comments you can see the recommendations to use SAP Memory instead, but this way is not ideal due to more wide scope, which can be potentially dangerous.

So, my question is what is the correct approach to pass data between two ABAP-programs (SE38) in our days (mid 2013)? Should we still use Import/Export to-from Memory ID or there is more correct way to implement such task, which is safety and isn't obsolete?

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Mike,

As far as my knowledge the Import / Export without Memory ID are obsolete but Import/Export are not obsolete entirely.

You can use GLOBAL SAP Memory

      IMPORT ITAB = IT_EXP_DATA

        FROM DATABASE INDX(ZDATA)

             CLIENT   sy-mandt

             ID       'ZEXP'.

If you want to do the OOPs way which is going to be forward

You can use SHMA [shared memory access].

A complete reference for usage and implemenation for the same can be found in SAP Help.

http://help.sap.com/saphelp_nw70/helpdata/en/14/dafc3e9d3b6927e10000000a114084/frameset.htm

Regards

5 REPLIES 5

Former Member
0 Kudos

Hi Mike,

As far as my knowledge the Import / Export without Memory ID are obsolete but Import/Export are not obsolete entirely.

You can use GLOBAL SAP Memory

      IMPORT ITAB = IT_EXP_DATA

        FROM DATABASE INDX(ZDATA)

             CLIENT   sy-mandt

             ID       'ZEXP'.

If you want to do the OOPs way which is going to be forward

You can use SHMA [shared memory access].

A complete reference for usage and implemenation for the same can be found in SAP Help.

http://help.sap.com/saphelp_nw70/helpdata/en/14/dafc3e9d3b6927e10000000a114084/frameset.htm

Regards

0 Kudos

Let say we're using MEMORY ID, now two different users execute the same ABAP-program, which uses the same Memory ID, so does user A affects to the content of Memory ID of user B?

Does Memory ID works separately for each user or in case if one user changes the content of Memory ID, all other users will be affected by this change?

Thanks.

0 Kudos

0 Kudos

No Mike, it is separate for each user ...

you can get a full version of usage on SDN

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/307d791b-3343-2e10-f78a-e1d50c7cf...

Enjoy

0 Kudos

Hi All,

I am stuck in similar issue, but the links shared above is not working for me.

Can you please share SDN link again.

 

Thanks,

Monica