P_LatestProductionRoutingVers

DDL: P_LATESTPRODUCTIONROUTINGVERS Type: view_entity COMPOSITE

P_LatestProductionRoutingVers is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_BillOfOperationsVersion) and exposes 4 fields with key fields BillOfOperationsType, BillOfOperationsGroup, BillOfOperationsVariant.

Data Sources (1)

SourceAliasJoin Type
I_BillOfOperationsVersion ProdnRtgVersion from

Annotations (3)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY BillOfOperationsType I_BillOfOperationsVersion BillOfOperationsType
KEY BillOfOperationsGroup I_BillOfOperationsVersion BillOfOperationsGroup
KEY BillOfOperationsVariant I_BillOfOperationsVersion BillOfOperationsVariant
CreationDateTime
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #COMPOSITE
// used in I_MfgOrderSpecificRouting to get latest routing version and not all versions 

define view entity P_LatestProductionRoutingVers as

  select from I_BillOfOperationsVersion     as ProdnRtgVersion
{
  key ProdnRtgVersion.BillOfOperationsType,
  key ProdnRtgVersion.BillOfOperationsGroup,
  key ProdnRtgVersion.BillOfOperationsVariant,
  max(ProdnRtgVersion.CreationDateTime) as CreationDateTime
  }
  where ProdnRtgVersion.OrderID <> ''
  group by ProdnRtgVersion.BillOfOperationsType, 
           ProdnRtgVersion.BillOfOperationsGroup, 
           ProdnRtgVersion.BillOfOperationsVariant;
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLOFOPERATIONSVERSION"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/