How does table buffering work, which buffering types exist, and when is the buffer bypassed?
Say your answer out loud first.
Practise another way
Table buffering keeps rows on the application server so repeated reads skip the database. There are full buffering, generic buffering by key prefix, and single-record buffering.
It suits small tables that are read often and rarely changed. The buffer is bypassed by joins, by Native SQL and AMDP, by statements the ABAP SQL engine cannot handle, and by reads that do not match the key or generic area.
I force a bypass with BYPASSING BUFFER, never by relying on implicit rules.
What it is: the technical settings of a DDIC table can allow buffering on the application server.
A read that the buffer can serve never reaches the database, and that saves a round trip. The buffer is per application server, and changes are synchronised by the system.
Types
- Full buffering: the first access loads the whole table. Good for small customizing tables read by many programs.
- Generic buffering: the table is buffered per generic key area (the first n key fields). A read is served only if the full generic part of the key is specified.
- Single-record buffering: only rows that are actually read are buffered. Good for larger tables where programs read a few rows by full key.
When the buffer is bypassed (keyword documentation, release 7.58)
SELECT ... BYPASSING BUFFER, the explicit way. The documentation says to always use it when you want a bypass, and not to depend on implicit behaviour.- Native SQL and AMDP never use the table buffer.
- Joins currently always bypass the buffer.
- Any statement element the ABAP SQL engine does not support. The set of supported elements grows by release: from 7.57,
ORDER BYno longer causes a bypass, which it could before. - Single-record buffering: all key fields must be given with equality conditions joined by
AND, using host variables or expressions on the right side. - Generic buffering: the complete generic area must be given with equality conditions. With
FOR ALL ENTRIES, the generic area must be exact.
Pitfalls
- Buffer synchronisation is asynchronous, so another application server can briefly read old data. Buffering is only for data where that delay is acceptable.
- SAP advises against buffering tables where more than about one percent of accesses are writes, because the synchronisation work outweighs the gain.
- Wide tables with
SELECT *pay again when only two columns were needed.
On HANA: buffering is still used, mainly for small configuration tables. Do not buffer large transactional tables to fix a slow query. Fix the query.
Check: the ST05 performance trace has a separate table buffer trace next to the SQL trace, so you can see which calls go through the buffer and which reach the database.
Names the three types, a rule for when a table qualifies, the main bypass cases and BYPASSING BUFFER, and the consistency trade-off.
Says 'buffering makes everything faster' and cannot name when a read ignores the buffer.
Assuming a SELECT on a buffered table always uses the buffer. Joins, aggregates and incomplete generic keys quietly bypass it.
- Which table would you never buffer?
- Why does a join on a buffered table go to the database?
- How do you see buffer hits in a trace?
- What happens in a multi-server system when a buffered table changes?
4 official pages. Confidence: medium. Checked 21 Nov 2026.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.