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

ABAP OO shared memory

Former Member
0 Likes
693

Hi Gurus,

this is my need: i want to create an object in a function module and than to get the same instance in a called program.

i've tried passing the instance to a global data of the same function group, but it is initial when the following program access to it.

than i've tried with shared object managed by SHMA transaction, but i can't reach my need.

each suggestion will be appreciated!

bye,

Ivan.

3 REPLIES 3
Read only

custodio_deoliveira
Active Contributor
0 Likes
499

Hi Ivan,

If you can't handle this issue with shared memory objects it's very likely you're doing it wrong. Maybe you want to have a look at this blogs/threads and check what goes wrong:

Regards,

Custodio

Read only

former_member219762
Contributor
0 Likes
499

Hi Ivan,

Function group would reload for every new internal session. So If called programs are in same internal  session we can get same instance but if they are in different internal or external sessions

we cannot get same instance.

We can exchange data with function module only through interface of it .So we cannot use shared memory with function group.

I hope it is not possible to solve your problem using function group, we can solve it by using global class or local class.

Regards,

Sreenivas.

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
499

Hi Ivan,

Use Shared Memory.

Check the following example it works well.

http://scn.sap.com/docs/DOC-26284