‎2013 Oct 01 8:37 PM
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.
‎2013 Oct 02 2:43 AM
‎2013 Oct 02 7:51 AM
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.
‎2013 Oct 02 9:31 AM
Hi Ivan,
Use Shared Memory.
Check the following example it works well.