Skip to main content

Buffer in SAP : Beginners Guide

 As a Basis Consultant you face a couple of incidents opened by customers related to high swaps in transaction ST02. Before diving deep into it let’s understand what a buffer is ?



Table Buffering in SAP ABAP is a concept in ABAP Tables to enhance performance (10 to 100 times) and reduce time of processing (accessing) the table.

A Buffer is an interface between Database layer and Application layer. Application Layer communicates with Buffer and the Buffer communicates with Database layer and vice-versa.

What is actually happening ?

Whenever an Open SQL statement is used to read a record, The data buffer is checked first to see whether it is there. If not, the data is read from the database. If the table's attributes indicate that the data should be buffered, the record is saved in RAM on the application server in data buffers.

Later, if that record is read again, it is read from the buffer instead of the database.

By buffering data, you increase performance in two important ways:

  1. The programs using the buffered data run faster because they don't have to wait for it to come from the database. This reduces delays waiting for the database and the network that connects it.

  2. The other programs that need to access the database run faster because there is less load on the database and less traffic on the network.

 


These buffers are also known as client caches. SAP buffers occupy memory areas that are local to the work process, and in individual shared memory segments that can be accessed by all work processes. These memory areas are executed for the application server.

 

Each SAP instance (application server) has its own buffers

 

The data that is buffered includes ABAP programs and screens, ABAP Dictionary data, and company-specific data. Typically these remain unchanged during system operation.

 

Adding a terminology here HIT Ratio :- Number of times we look for a data and it is available in buffer , We say that as HIT. A higher HIT ratio states a better state of the system. 

 

I think by now you understand what a buffer is, we will drop another blog mentioning the different types of buffer and issues we face in the real world. Comment and let us know your doubts and queries.


Read More :-

SAP Help Doc 

Buffering Types

 


Comments

You might find these interesting

8 Must-Know Questions About Object Store on SAP Business Technology Platform

What is the problem that Object Store solves ? Modern enterprise systems increasingly deal with massive volumes of unstructured data such as documents, logs, media files, and backups. Traditional relational databases are not optimized for such workloads. What is Object Store ? Object storage—commonly referred to as blob storage—addresses this gap by providing scalable, durable, and cost-efficient storage for unstructured data. Object storage is a storage architecture designed to manage unstructured data as discrete units called objects.  Each object consists of: Binary data (file content) : Image , File etc Metadata (descriptive attributes) : File size, Content type, Last modified timestamp, Storage class (hot, cool, archive) Unique identifier (key or URL) : unique path-like string used to locate a blob inside a bucket Unlike file systems or relational databases, object storage does not rely on hierarchical file structures or schemas. The SAP BTP Object Store service is a managed, ...