‎2009 May 04 3:52 PM
Hi everyone!
I've been looking for an explanation to the use of shared memory but couldn't find what I needed, so if any of you have the answer it'll be very useful.
What I need to do is to share a little amount of data (a couple of time stamps) between sessions in a common memory area.
In the instruction:
SHARED MEMORY dbtab(ar)
I need to know what dbtab stands for (because it doesn't really write on the DB table), and also what ID (ar) should I use, if there's some kind of best practices for it.
If anybody has some usage information about it, I will appreciate it.
Thanks!
‎2009 May 04 4:05 PM
Hi Daniel,
See the example given here, to know how to use the shared memory using ABAP.
http://www.sapnet.ru/abap_docu/ABAPEXPORT_DATA_CLUSTER.htm#&ABAP_VARIANT_3@3@
Regards,
Ravi
‎2009 May 04 4:44 PM
Thanks Ravi, I've found some useful information there! But what I want to know, is if is there some kind of SAP best practices for the use of the SHARED MEMORY, because if I suggest this as a solution, I want to be sure that it complains with all the standards, and doesn't for example, writes over somebody else's data.
‎2009 May 04 4:12 PM
Hi, Daniel
if i understand you right you want the following.
in one of your program test the following code and give some value in filed sotcode.
TABLES: tstct.
SELECT-OPTIONS: sotcode FOR tstct-tcode NO INTERVALS MEMORY ID aaa.than in some other program declare the suppose PARAMETER with the sameMEMORY ID when after running and assigning value in first program you will run the 2nd one you will find the value you gave in 1st program in the 2nd one.
PARAMETERS: test(50) MEMORY ID aaa.if you are looking for some thing else Please Explain bit more.
Best Regards,
Faisal