2013 Aug 02 9:58 PM
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.
2013 Aug 03 4:48 AM
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
2013 Aug 03 4:48 AM
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
2013 Aug 03 10:52 AM
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.
2013 Aug 03 11:25 AM
Hi,
The below link would help to get and idea of the scope of memory usages.
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2d40358411d1829f0000e829fbfe/content.htm
Try the Shared Object concept also. It's OOPs way of doing a shared memory.
http://help.sap.com/saphelp_nw70/helpdata/en/df/109b8b4b073b4c82da0f2296c3a974/content.htm
http://help.sap.com/saphelp_nw70/helpdata/en/c5/85634e53d422409f0975aa9a551297/content.htm
Cheers,
Arindam
2013 Aug 03 11:31 AM
No Mike, it is separate for each user ...
you can get a full version of usage on SDN
Enjoy
2024 Feb 22 8:09 AM
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
2024 Sep 04 9:06 AM
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!!
2024 Sep 04 10:02 AM
Did you try to paste the address(es) in a site such as http://web.archive.org/ ?
2024 Sep 09 5:45 AM
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
2024 Sep 09 11:37 AM - edited 2024 Sep 09 11:39 AM
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
2024 Sep 09 12:32 PM
Strange indeed!
But thank you so much for the help. Now I can see it! 🙂