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: 

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

MikeB
Contributor
0 Kudos
12,189

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
4,999

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

10 REPLIES 10

Former Member
5,000

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
4,999

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
4,999

0 Kudos
4,999

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
4,767

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

0 Kudos
2,775

I guess it is due to movement of the portal. But till date I have not found a solution as to how we resolve the links part. Due to the migration, so many valuable links have been lost!!

0 Kudos
2,759

Did you try to paste the address(es) in a site such as http://web.archive.org/ ?

0 Kudos
2,684

Hi Raymond,

Yes I did.

The link is broken in the first place. Also, I don't get any valid results on web.archive.org

2,644

Strange, I found it (2016 version) at http://web.archive.org/web/20161105062118/http://help.sap.com/saphelp_nw70/helpdata/en/14/dafc3e9d3b...

But better look for a recent version of ABAP - Shared Objects 

 

0 Kudos
2,627

Strange indeed!

But thank you so much for the help. Now I can see it! 🙂