Saturday, December 5, 2020

CDS View Buffering

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:

 

 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