P_FrtDsputCaseNegttnCyclesAvg

DDL: P_FRTDSPUTCASENEGTTNCYCLESAVG Type: view_entity COMPOSITE

P_FrtDsputCaseNegttnCyclesAvg is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_FrtOrdWthFrtDsputCaseNegCyc) and exposes 2 fields with key field FrtDsputCaseItemSourceUUID.

Data Sources (1)

SourceAliasJoin Type
P_FrtOrdWthFrtDsputCaseNegCyc P_FrtOrdWthFrtDsputCaseNegCyc from

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY FrtDsputCaseItemSourceUUID FrtDsputCaseItemSourceUUID
AvgNrOfFrtDsputCaseNegttnCyc
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel:   {usageType:          {serviceQuality: #C,
                                      sizeCategory:   #M,
                                      dataClass:      #TRANSACTIONAL}}
@VDM:           {viewType:           #COMPOSITE,
                 private:            true}

//------------------------------------------------------------------------------------------//

//--- Average Negotiation Cycles for all Dispute-Cases (SHI)                             ---//

//--- per Freight Order                                                                  ---//

//------------------------------------------------------------------------------------------//


define view entity P_FrtDsputCaseNegttnCyclesAvg
  as select from P_FrtOrdWthFrtDsputCaseNegCyc

{
         // Freight Order

  key    FrtDsputCaseItemSourceUUID,

         avg( NrOfFrtDsputCaseNegttnCycles as /scmtms/vdm_avg_num_negcyc ) as AvgNrOfFrtDsputCaseNegttnCyc
}

group by
  FrtDsputCaseItemSourceUUID
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_FRTORDWTHFRTDSPUTCASENEGCYC"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/