Skip to content

ABAP Keyword Documentation →  ABAP Dictionary →  ABAP CDS in ABAP Dictionary →  ABAP CDS - Views 

ABAP CDS - SAP Buffering

The CDS annotation @AbapCatalog.buffering.status can be used to define whether and how SAP buffering is allowed for a CDS view in ABAP CDS. Further annotations, AbapCatalog.buffering.type and AbapCatalog.buffering.numberOfKeyFields, define the buffering type and, if generic buffering is used, the number of key fields involved.

SAP buffering for CDS views is performed in the same way as for database views and the same prerequisites apply. Furthermore, a CDS view can be buffered only if it does not contain any views (database views or CDS views) as data sources.

Other versions: 7.31 | 7.40 | 7.54


Note

In SAP buffering of CDS views, only the key fields of the CDS database view are relevant and not the key elements of the CDS entity defined using KEY.


Example

Enables full buffering for a CDS view.

@AbapCatalog.sqlViewName: '...'
@AbapCatalog.Buffering.status: #ACTIVE
@AbapCatalog.Buffering.type: #FULL
  define view ...
   as select from ...
   { ... }