P_MPEOrdInspLotOpenCharcCount
Number of Open Characteristics in Inspection Lot
P_MPEOrdInspLotOpenCharcCount is a Consumption CDS View that provides data about "Number of Open Characteristics in Inspection Lot" in SAP S/4HANA. It reads from 2 data sources (I_InspectionCharacteristic, I_InspectionResult) and exposes 2 fields with key field InspectionLot. Part of development package ODATA_MPE_MFGORDER.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_InspectionCharacteristic | I_InspectionCharacteristic | from |
| I_InspectionResult | I_InspectionResult | left_outer |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Number of Open Characteristics in Inspection Lot | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view |
Fields (2)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InspectionLot | I_InspectionCharacteristic | InspectionLot | |
| InspOpenCount |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Number of Open Characteristics in Inspection Lot'
@VDM.viewType: #CONSUMPTION
@VDM.private: true
define view entity P_MPEOrdInspLotOpenCharcCount
as select from I_InspectionCharacteristic
left outer join I_InspectionResult on I_InspectionCharacteristic.InspectionLot = I_InspectionResult.InspectionLot
and I_InspectionCharacteristic.InspPlanOperationInternalID = I_InspectionResult.InspPlanOperationInternalID
and I_InspectionCharacteristic.InspectionCharacteristic = I_InspectionResult.InspectionCharacteristic
{
key I_InspectionCharacteristic.InspectionLot,
count(*) as InspOpenCount
}
where
I_InspectionResult.InspectionResultStatus is null
or I_InspectionResult.InspectionResultStatus = '0'
or I_InspectionResult.InspectionResultStatus = '1'
or I_InspectionResult.InspectionResultStatus = '2'
or I_InspectionResult.InspectionResultStatus = '3'
or I_InspectionResult.InspectionResultStatus = '4'
group by
I_InspectionCharacteristic.InspectionLot
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