SAP BUFFER MEMORY



Get Example source ABAP code based on a different SAP table
  



ABAP_BUFFER - Buffer Management
ITOC

Storage in the Memory
Table buffering takes place in the shared memory of each ABAP_ASINSTANCE . The table buffer consists of a central management structure, an alphabetical directory of tables, and a data area. The individual areas of a generically buffered table or view are managed as individual fully buffered tables. The buffered data is stored in the data area as internal tables. The data area is managed using SAP Memory Management.
When a buffered table or view is accessed using AB_SQL , a search first takes place for the name of the table in the table directory and then a binary search takes place for the data.
In both single record buffering and in generic buffering, information about nonexistent rows in a table or view is also saved. The first time a nonexistent row is read, the key values of the primary key or generic key are loaded into the associated data area with an otherwise empty row and a corresponding flag. The next time an attempt is made to read this row, the buffer already indicates that this row does not exist.



Latest notes:

The management of single record buffering slightly less efficient than generic or full buffering. In single record buffering, the rows are loaded into the internal table in the data area gradually. In generic buffering and full buffering, all data of a table or view is loaded in a single step and sorted on the database.
When saved to memory, null values are handled as such and are not transformed to type-dependent initial values.
NON_V5_HINTS
ABAP_HINT_END
BEGIN_SECTION VERSION 5 OUT

Buffer Monitor
The buffer monitor is an SAP Memory Management tool (transaction ST02) used, among other things, to analyze the table buffer of the current ABAP_ASINSTANCE . This includes tasks such as:
Displaying the buffer load on the ABAP_ASINSTANCE over the last few days
Displaying and modifying the associated profile parameters
Displaying detailed information about the table buffer.
Displaying table statistics for analyzing the effectiveness of a buffer. The displayed values are useful when optimizing the associated profile parameters and when detecting expensively buffered tables.
For more information, see the documentation Buffering in SAP Help Portal.
END_SECTION VERSION 5 OUT
BEGIN_SECTION SAP_INTERNAL_HINT
The expert tool is transaction AL12.
END_SECTION SAP_INTERNAL_HINT