Application Development 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: 

Passing a class instance between external sap modes

former_member205645
Participant
0 Kudos

Hello Gurus,

do you guys know if it possible to pass a class instance from one external mode to another one? I tried converting the memory adress intro a string and writing it on the database but it won't let me convert a class reference. Any ideas?

Kind regards,

Ioan.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Loan,

You could try using shared objects to share the data between external modes of SAP.

http://help.sap.com/saphelp_nw04s/helpdata/en/c5/85634e53d422409f0975aa9a551297/content.htm

Regards,

Jaspreet

4 REPLIES 4

Former Member
0 Kudos

Hi Loan,

You could try using shared objects to share the data between external modes of SAP.

http://help.sap.com/saphelp_nw04s/helpdata/en/c5/85634e53d422409f0975aa9a551297/content.htm

Regards,

Jaspreet

Former Member
0 Kudos

Hi loan,

Just found a useful link for shared objects. Using shared objects, you will have to make your class 'Shared enabled'. Then you have to create a memory area and attach the class as root class.

Using the methods of memory area class you can share the instance of your class.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/307d791b-3343-2e10-f78a-e1d50c7cf...

Let me know if some more help is needed.

Regards,

Jaspreet

former_member205645
Participant
0 Kudos

Hello everyone,

thank you for the answers. I had very littel time for the implementation so i am using two database tables to pass the data that i need between external modes. Thanks again.

Regards,

Ioan Constantin.