Home > SAP Tips > SAP best practices > Eliminate database read/write times with ABAP shared memory
SAP Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

SAP BEST PRACTICES

Eliminate database read/write times with ABAP shared memory


Alexander Schuchman
10.03.2007
Rating: -3.74- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


The average SAP developer has never even heard of ABAP shared memory much less worked with it or even utilized it to their advantage. This was the subject of Alex's first tip. He boasted that using this development will buffer data to help alleviate database read/write times on any custom program that it is associated with. He mentioned that there is virtually no learning curve when dealing with shared memory as the buffered data is easily viewable and debugged.

View the shared memory data easily in Tcode SHMM. Double click on an item to view the details.
On the left side of the image we can see the product structure "ET_PRODUCTS", click on "17 Entries" to dive deeper into the details. Here we can see the 169 products that are associated with this particular product structure, and it is here that we manage the shared memory.
First, to create the shared memory area we go to Tcode SHMA. A root class name must be provided as well as other parameters that can be left to the default settings until it becomes clear how these changes would affect the program.
The difference between a regular class and a generated shared memory root class can be found in the properties tab where we find the check box that will make the class "shared memory enabled".
The data that is put into the shared memory area could be standard SAP types or custom types that allow structured data to be available.
To build the shared memory area use the "BUILD" method name and throw the root name as well as the area handle in there and cap it with the select statements.
Now we move on to the append statements, acquiring the necessary information from the shared memory area.
Now that we have all this data an application is needed for our efforts to be applied to. Here we reference the same data, plugging in the necessary information, and looping it.

Rate this Tip
To rate tips, you must be a member of SearchSAP.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
ABAP/Java developer tips
Find a BADI in a minute
Top 10 SAP tips of 2007
How to transport an SAP query in R/3 4.6x
How to switch off message determination in BAPI_PO_CREATE1
How to include an authorization group restriction in an SAP query
How to use quick-views of other users
Find the BADI related to your transaction in minutes
How to test queries before transport
ABAP for newbies: Your first ABAP object
Beating back BSP bugs

SAP NetWeaver
Top 10 SAP tips of 2007
Retrieve BI data with Web Services
XI: Search through the payload of a message... without TREX!
Using Folders in PI 7.1
User management with SAP NetWeaver Administrator
Business process platform creation for healthcare, part 2
Business process platform creation for healthcare
How to acquire the runtime information of a data transfer process (DTP)
A process runtime dashboard for tracking efficiency
SAP XI - Event based message triggering with dependencies

SAP best practices
Top 10 SAP tips of 2007
Retrieve BI data with Web Services
Model-driven development in the enterprise
Budgeting Best Practices with SAP Business Planning -- Part II
Budgeting best practices with SAP business planning
Currency translation using SAP BI
How to acquire the runtime information of a data transfer process (DTP)
Smart Forms vs. PDF-based print forms in SAP solutions -- pros and cons
Defining shared services and shared outcomes in the public sector
Repair bad SAP data and subsequent data targets with delta update

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeNewsTopicsBlogsTipsAsk the ExpertsWebcastsWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2000 - 2008, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts