Skip to content

Avoid BYPASSING BUFFER in SELECT Statements ​

WarningPerformance & Database#EC NO_BYPASS_BUFFERRemote Enabled

Overview ​

Avoid BYPASSING BUFFER in SELECT statements.

ATC Finding Message: Avoid BYPASSING BUFFER; leverage SAP table buffer for cached data access

Rationale ​

Using BYPASSING BUFFER in ABAP SQL forces an expensive direct database roundtrip, explicitly ignoring the high-performance application server table buffer. For customizing and configuration tables, this creates unnecessary database load and eliminates the benefits of SAP table buffering.

Standard: Rely on SAP table buffering for cached tables unless an absolute real-time guarantee is strictly mandatory.

Non-Compliant ​

abap
" Bypasses application server buffer
SELECT * FROM t000 BYPASSING BUFFER INTO TABLE @DATA(lt_data).

Compliant ​

abap
" Uses SAP table buffer
SELECT * FROM t000 INTO TABLE @DATA(lt_data).

Suppression ​

To suppress findings for this rule, append the pseudo-comment to the statement:

abap
" Standard pseudo-comment:
... "#EC NO_BYPASS_BUFFER

" SAP CI_ prefix format:
... "#EC CI_NO_BYPASS_BUFFER

Technical Details ​

Released under the MIT License.