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

CX_SHM_EXTERNAL_REFERENCE exc. when passing Class instance to Shared memory

Former Member
0 Likes
1,167

Hi all,

when setting up the writing to a shared memory (using the SHMA and SHMM transactions), we get an exception mentioning CX_SHM_EXTERNAL_REFERENCE

This problem is raised because we are trying to move an instantiated class from the calling development to the Shared memory class.

Therefore, this exception is raised, the sap standard documentation tells me:

"There are still references from the current area instance version to a different area instance of the shared objects memory, or to the internal session."

How can we work around this problem, I really want to pass the instantiated class to the Shared memory?

Thanks in advance for any help,

Pascal Decock

3 REPLIES 3
Read only

Former Member
0 Likes
855

I had the same problem. I solved the problem by avoiding references to other objects inside

the code of the shared class. I.e. no CREATE OBJECT inside constructor or methods

of the shared class.

Read only

Former Member
0 Likes
855

My problem is that I would like to embed a Standard SAP class into this shared memory.

Therefore, I'm obliged to accept the 'Create object' references that are written in standard SAP code.

That also means that it is impossible to include an instantiated SAP class into a shared object memory?

Read only

Former Member
0 Likes
855

Seems to be impossible ;(