P_InspSubsetValnAggregate
P_InspSubsetValnAggregate is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_InspectionSubset) and exposes 4 fields with key fields InspectionLot, InspPlanOperationInternalID.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_InspectionSubset | I_InspectionSubset | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSUBSETVALNAGGR | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InspectionLot | InspectionLot | ||
| KEY | InspPlanOperationInternalID | InspPlanOperationInternalID | ||
| _InspectionLot | _InspectionLot | |||
| _InspectionOperation | _InspectionOperation |
@AbapCatalog.sqlViewName: 'PSUBSETVALNAGGR'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #CONSUMPTION
@VDM.private: true
define view P_InspSubsetValnAggregate as
select from I_InspectionSubset
{
key InspectionLot,
key InspPlanOperationInternalID,
sum(case
when InspSubsetUsageDcsnValuation = 'A' then 1
else 0 end) as InspSubsetAcceptedCount,
sum(case when InspSubsetUsageDcsnValuation = 'R' then 1
else 0 end) as InspSubsetRejectedCount,
_InspectionLot,
_InspectionOperation
} group by InspectionLot, InspPlanOperationInternalID
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_INSPECTIONSUBSET"
],
"ASSOCIATED":
[
"I_INSPECTIONLOT",
"I_INSPECTIONOPERATION"
],
"BASE":
[
"I_INSPECTIONSUBSET"
],
"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