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: 

Shared Memory changes to table entries possible?

Former Member
0 Kudos

Good day

In a main program I have a 20MB table that I write to a Shared Memory Table to process in 4 batches - each batch processing a quarter of data. Within each batch I keep track of processing error messages. I want to know how I can append the error messages back to a shared memory table once each batch finishes. It should be possible to lock the shared memory area for write until it's done and the other batches can just wait for a second if the Shared Memory Area is locked at the time. However, my biggest problem is that the Shared Memory Tables are cleared when I ATTACH_FOR_WRITE( ).

How can I apply changes to Shared Memory Tables without wiping all data contained?

Best regards,

Adrian

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Found it, use method ATTACH_FOR_UPDATE( )

2 REPLIES 2

Former Member
0 Kudos

Found it, use method ATTACH_FOR_UPDATE( )

arindam_m
Active Contributor
0 Kudos

Hi,

Have you checked the transaction SHMA. Check the link below. You may get help on the task you want to achieve.

http://help.sap.com/saphelp_nw70/helpdata/En/c5/85634e53d422409f0975aa9a551297/content.htm

Cheers,

Arindam