Simple CDS View With Composite and Consumption
Simple CDS View With Composite and Consumption
Consumption
t16fs.frgc1,
t16fs.frgc2,
t16fs.frgc3,
t16fs.frgc4,
ekko.frggr,
ekko.frgzu,
case
when ekko.frgzu = ''
then t16fs.frgc1
when ekko.frgzu = 'X'
then t16fs.frgc2
when ekko.frgzu = 'XX'
then t16fs.frgc3
when ekko.frgzu = 'XXX'
then t16fs.frgc4
end as code
}
where
ekko.procstat = '03'
and ekko.bstyp = 'F'
and ekpo.loekz = ' '
and ekko.memory = ''
key ebeln,
bukrs,
butxt,
bstyp,
bsart,
batxt,
aedat,
ernam,
ebelp,
uniqueid,
txz01,
matnr,
werks,
lgort,
matkl,
@DefaultAggregation: #SUM
menge,
meins,
@DefaultAggregation: #SUM
netwr,
@DefaultAggregation: #SUM
brtwr,
@DefaultAggregation: #SUM
netpr,
bprme,
ko_prctr,
wgbez,
name1,
sys_date,
dats_days_between(aedat, sys_date) as NoofDays,
code,
t16fd.frgct,
lifnr,
zmm_purc_analysis_po.lifnr_desc
@AbapCatalog.sqlViewName: 'ZMM_PO_CON'
//@AbapCatalog.compiler.compareFilter: true
//@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Purchase Analysis for PO'
@VDM.viewType: #CONSUMPTION
@Analytics.query: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.buffering.status: #NOT_ALLOWED
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED
@OData.publish: true
define view ZMM_PURANALYSIS_PO_CON
as select from zmm_purc_analysis_po1 //zmm_purc_analysis_po