P_LatestProductionRoutingVers
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)
| Source | Alias | Join Type |
|---|---|---|
| I_BillOfOperationsVersion | ProdnRtgVersion | from |
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA