‎2007 Oct 03 7:57 AM
Hi all,
can you tell me what is shared objects and how it is used in abap objects, if possible explain with some examples.
Thanks
Sathish
‎2007 Oct 03 8:14 AM
Hey... Hang on...
Go to this site you will find exercises and solutions as well.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c322c690-0201-0010-fb86-811c52b0acc2">shared objects exercises & solutions</a>
Reward points if useful,
Aleem.
‎2007 Oct 03 8:12 AM
Hi Satish,
<b>Shared Objects</b>
Shared Objects are objects in the shared memory. Instances of classes and anonymous data objects can be stored. Named data objects can be stored as attributes of classes.
<b>Shared Memory</b>
The shared memory is a memory area on an application server, which is accessed by all of this servers ABAP programs. Before shared objects were implemented, ABAP programs could access this memory area using the EXPORTand IMPORT statements exclusively with the SHARED BUFFER or SHARED MEMORY additions, and instances of classes or anonymous data objects existed exclusively in the internal session of an ABAP program.
With the implementation of shared objects with Release 6.40, the shared memory was enhanced with the shared objects memory that stores shared objects. The size of the shared objects memory is determined by the abap/shared_objects_size_MB profile parameter.
Shared objects are stored in what are called shared memory areas. You create and manage areas and their properties using Transaction SHMA .
Now you got an idea of what shared objects are :
Go to this link you will find screen shots and a smaple program here.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/900e3d9d-559e-2910-9dae-b132157a220f">shared_objects</a>
Reward points if useful,
Aleem.
‎2007 Oct 03 8:13 AM
Check this SAP link on shared Objects
http://help.sap.com/saphelp_nw2004s/helpdata/en/14/dafc3e9d3b6927e10000000a114084/frameset.htm
Regards
Gopi
‎2007 Oct 03 8:14 AM
Hey... Hang on...
Go to this site you will find exercises and solutions as well.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c322c690-0201-0010-fb86-811c52b0acc2">shared objects exercises & solutions</a>
Reward points if useful,
Aleem.
‎2007 Oct 03 10:43 AM
Hi Sat,
if you are somewhat experienced with ABAP OO then a good place to start would be Thomas's blog at /people/thomas.jung3/blog/2004/12/09/netweaver-for-the-holidays-a-lession-in-sharing-abap-shared-memory
Cheers
Graham Robbo