ABAP CDS - Table Buffering of CDS Views
For a CDS view in ABAP CDS, the following CDS annotations can be used to specify how table buffering works:
- @AbapCatalog.buffering.status defines whether and how table buffering is allowed.
- AbapCatalog.buffering.type determines the buffering type.
- AbapCatalog.buffering.numberOfKeyFields determines the number of key fields covered if generic buffering is used.
Source Code :
@AbapCatalog.sqlViewName: 'ZSD_TRANS'
@AbapCatalog.compiler.CompareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Cross Company Transit Stock Report'
@AbapCatalog.Buffering.status: #ACTIVE // #SWITCHED_OFF #NOT_ALLOWED
@AbapCatalog.Buffering.type: #FULL //#NONE #SINGLE # GENERIC
//@AbapCatalog.Buffering.numberOfKeyFields: 000> Incase of Generic
define view ZSD_TRANSIT_STOCK as select from mara {
key matnr,
mtart,
matkl
}