P_ProcOrdInspLotUsgeDcsnCodeR
Process Order Inspection Lots with Usage Decision Code R
P_ProcOrdInspLotUsgeDcsnCodeR is a Composite CDS View that provides data about "Process Order Inspection Lots with Usage Decision Code R" in SAP S/4HANA. It reads from 2 data sources (I_InspectionLot, P_ProcOrdAORList_2) and exposes 4 fields with key field ProcessOrder. Part of development package VDM_PP_PROC_ORD_MNG.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_InspectionLot | _InspLot | inner |
| P_ProcOrdAORList_2 | _ProcessOrder | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProcessOrder | P_ProcOrdAORList_2 | OrderID | |
| InspLotUsageDecisionValuation | ||||
| ScheduledBasicStartDate | P_ProcOrdAORList_2 | ScheduledBasicStartDate | ||
| ScheduledBasicEndDate | P_ProcOrdAORList_2 | ScheduledBasicEndDate |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #L, dataClass: #TRANSACTIONAL }
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view entity P_ProcOrdInspLotUsgeDcsnCodeR
//Change selection for P_ProcOrdAORList_2 that is more optimized
as select from P_ProcOrdAORList_2 as _ProcessOrder
inner join I_InspectionLot as _InspLot on _InspLot.ManufacturingOrder = _ProcessOrder.OrderID
{
key _ProcessOrder.OrderID as ProcessOrder,
// _ProcessOrder.ProductionPlant,
// _ProcessOrder.ProductionSupervisor,
'R' as InspLotUsageDecisionValuation,
//Expose Start and End dates to push-down filters to associations
_ProcessOrder.ScheduledBasicStartDate,
_ProcessOrder.ScheduledBasicEndDate
}
where
_InspLot._InspLotUsageDecision.InspLotUsageDecisionValuation = 'R'
and(
_InspLot.InspectionLotOrigin = '04'
or _InspLot.InspectionLotOrigin = '03'
)
group by
_ProcessOrder.OrderID,
_ProcessOrder.ScheduledBasicStartDate,
_ProcessOrder.ScheduledBasicEndDate
// _ProcessOrder.ProductionPlant,
// _ProcessOrder.ProductionSupervisor
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