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: 
Read only

What is shared objects?

Former Member
0 Likes
721

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
664

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.

4 REPLIES 4
Read only

Former Member
0 Likes
664

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 server’s 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.

Read only

gopi_narendra
Active Contributor
0 Likes
664
Read only

Former Member
0 Likes
665

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.

Read only

GrahamRobbo
SAP Mentor
SAP Mentor
0 Likes
664

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