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

Shared Memory Usage

Former Member
0 Likes
602

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!

3 REPLIES 3
Read only

Former Member
0 Likes
408

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

Read only

0 Likes
408

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.

Read only

faisalatsap
Active Contributor
0 Likes
408

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