08-02-2013 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.
08-03-2013 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
08-03-2013 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
08-03-2013 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.
08-03-2013 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
08-03-2013 11:31 AM
No Mike, it is separate for each user ...
you can get a full version of usage on SDN
Enjoy
02-22-2024 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