This article answers
following questions:
ü What
are different SAP Buffer types?
ü What
are the functions of various buffers in SAP?
===========================================
There are following seven
main groups of buffers found in shared memory.
v Repository
Buffers
v Table
Buffers
v Program
Buffer
v SAPgui
Buffers
v Roll
and Paging Buffers
v SAP
Calendar Buffer
v SAP
Cursor Cache
The Repository
buffer is mainly known as the nametab buffer (NTAB), but it is also known as
the ABAP Dictionary buffer.
· DDNTT (table definitions)
·
DDNTF (field descriptions)
The Repository buffer consists of four buffers in shared memory, one for each of the following:
Table definitions
|
TTAB buffer
|
Table DDNTT
|
Field descriptions
|
FTAB buffer
|
Table DDNTF
|
Initial record layouts
|
IREC buffer
|
Contains the record layout initialized depending on the
field type
|
Short Nametab
|
SNTAB buffer
|
A short summary of TTAB and FTAB buffers
|
The IREC buffer is read:
·
When a REFRESH command is executed in an ABAP program
·
At an INSERT command, when a record is created in the buffers
before the data is inserted and the fields are initialized with the values found
in IREC buffer
You can set the buffers mentioned
above by editing the parameters in the instance profile.
·
Partial table buffers: Stores single table entries, that is, one
record with its field values
·
Generic table buffers: Stores a range of table entries, that is,
a range of records with their field values. The generic table buffer can also
store all the entries (records) in a table. This is known as resident (or full)
buffering
3) Program Buffer:
It is also known as SAP Executable
buffer or ABAP buffer or PXA (Program Execution Area). Stores the compiled
executable versions of ABAP programs (loads).The contents of this buffer are
stored in tables D010L (ABAP loads), D010T (texts) and D010Y (symbol table).The
program buffer has a hash structure and supports LRU (Least Recently Used)
displacement.
4) SAPgui Buffers:
There are two kinds of SAPgui buffers
·
Menu buffers: Also called as CUA buffer. Stores objects from the
SAPgui. For example, menus, pushbutton definitions. These objects are from
tables D345T (CUA texts) and D342L (CUA loads). The buffer has directory
structure and supports LRU displacement. The menu buffer is adjusted by
amending its instance profile parameters
5) Roll and Paging Buffers
The roll and paging buffers are the preferred working area
of the roll and paging areas for an instance (application server). The
remaining area is located on disk as roll and paging files. The user context is
stored in the extended memory and the roll area (when the job is "rolled
out" of a work process). The paging area stores special data for the ABAP
processor, while the extended memory stores a large portion of the internal
tables of a program.
You set the roll and paging buffers,
as well as the extended memory using the parameters in the instance profile
6) SAP Calendar Buffer
The SAP calendar buffer stores all defined factory and
public holiday calendars. Calendars are stored in the database tables TFACS and
THOCS. The buffer has a directory structure. This means that if the shared
memory is configured too small, only the required data is loaded; there is no
LRU displacement of the contents of the buffer. You can change the calendar
buffer by editing the parameter in the instance profile
7) SAP Cursor Cache
The SAP cursor
cache helps to improve system performance by reducing the number of parsing of
SQL statements; it is database-dependent. The SAP cursor cache is only slightly
different for Oracle, Informix and SAP DB. It is totally different for AS/400
and MS SQL Server.
There are two types of cursor caches:
·
Statement ID cache
·
Statement cacheChanging the SAP cursor cache parameter value in the default profile will affect other areas as well. You are therefore advised not to tune it without the recommendation of a qualified SAP expert
Thanks for sharing this Informative content. Well explained. Got to learn new things from your Blog - V Sahana
ReplyDeletegreat bro thanks alot...
ReplyDeleteThanks for sharing good stuff.
ReplyDelete