‎2011 Sep 30 5:43 PM
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.
‎2011 Oct 01 8:49 AM
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)
‎2011 Oct 01 7:07 AM
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
‎2011 Oct 01 8:49 AM
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)
‎2011 Oct 03 9:53 AM
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.
‎2011 Oct 03 11:16 AM
Hi,
[Shared Objects - Implementation|http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/85634e53d422409f0975aa9a551297/frameset.htm]
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.
‎2011 Oct 03 12:29 PM
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.