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 Shared Objects

Former Member
0 Likes
846

Hi,

I'm working on Shared Memory Objects.

I would like to know if there's a way to create Shared Memory Areas (transaction: SHMA) by code.

Till now, i didn't found a solution for this.

Thanks,

Fábio Ramalho.

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
749

Hi,

If you trace SHMA, you'll see that most of the code is declared locally, plus external function modules to create the class, so that would be tough to replicate it. But a BDC could do the trick.

I don't know why you need it, but I wouldn't recommend to run it productively (just in the dev system, then transport it as usually).

Sandra

Edited by: Sandra Rossi, 2 minutes later : I just saw that there was SHMA_WB_TOOLINT_REQUEST function module (it's not called from SHMA transaction, but it's worth looking at it)

5 REPLIES 5
Read only

Former Member
0 Likes
749

hi fabio ,

u can create a shared memory area by that transaction.....the following link gives u about how to create a shared memory area

http://help.sap.com/saphelp_nw70/helpdata/en/cc/5ed43fdd561165e10000000a114b1d/content.htm

after that if any queries let me knw

thanka

chaitanya

Read only

Sandra_Rossi
Active Contributor
0 Likes
750

Hi,

If you trace SHMA, you'll see that most of the code is declared locally, plus external function modules to create the class, so that would be tough to replicate it. But a BDC could do the trick.

I don't know why you need it, but I wouldn't recommend to run it productively (just in the dev system, then transport it as usually).

Sandra

Edited by: Sandra Rossi, 2 minutes later : I just saw that there was SHMA_WB_TOOLINT_REQUEST function module (it's not called from SHMA transaction, but it's worth looking at it)

Read only

0 Likes
749

Hi Sandra,

The ideia is precisely use it just in the dev system.

The reason i'm doing this is because i have a lot of classes and i may need to add a few more in the future.

I'm having difficulties finding the code that provides all the options that i see on transaction SHMA.

Thanks,

Fábio.

Read only

koolspy_ultimate
Active Contributor
0 Likes
749

Hi,

[Shared Objects - Implementation|http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/85634e53d422409f0975aa9a551297/frameset.htm]

[Check this one Ref link|;

For Text tables, "Reading" the Shared Objects would be easy, but "Updating" would not be that easy.

To update the shared object, you need to open the ojbect for update from all the places from where the text table is being updated. E.g. MAKT from the Material Master (and somewhere else, I don't know).

Shared Objects would be good when you are not dealing with the data which can be directly updated from Production. E.g. Configuration data.

Regards,

koolspy.

Read only

Former Member
0 Likes
749

Hi Fabio,

Just a idea...

Perhaps you could start by importing all local classes defined in program SAPLSHMA in global ones, so you can check more easily what methods could be reused ?

Gl,

m.