This is one of the best blogs which i am writing :
Requirement : -> Usually we store and fetch the data from the database table but some times we have to put our data into the buffer for a period of time so that later period of time we can fetch it from buffer , accumulate it and finally update in database tables. Normally we use EXPORT/IMPORT with buffer area extension but in next generation ABAP developement methodology we have a concept of shared memory object : T-CODE : -> SHMA & SHMM
Now while developing this functionality , there are two kinds of classes :
1. Root class
2. Shared Memory area class (Automatically generated)
Below is the root class with shared memory check box enabled
Now goto the t-code SHMA and you'll find the below screen.
Below are the methods of shared memory object class
Below is the program to dump the data in shared memory area :
Below is the program to read the data from shared memory area not from data base table