C_ProdnSupplyAreaWrkCtrCount
Count of Work Centers use PSA
C_ProdnSupplyAreaWrkCtrCount is a Consumption CDS View that provides data about "Count of Work Centers use PSA" in SAP S/4HANA. It reads from 2 data sources (I_ProductionSupplyArea, I_WorkCenter) and exposes 2 fields with key fields Plant, ProductionSupplyArea.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductionSupplyArea | _ProductionSupplyArea | from |
| I_WorkCenter | _WorkCenter | left_outer |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | Count of Work Centers use PSA | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (2)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Plant | I_ProductionSupplyArea | Plant | |
| KEY | ProductionSupplyArea | I_ProductionSupplyArea | ProductionSupplyArea |
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@EndUserText.label: 'Count of Work Centers use PSA'
@VDM.viewType: #CONSUMPTION
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #M, dataClass: #MASTER}
@Metadata.ignorePropagatedAnnotations: true
define view entity C_ProdnSupplyAreaWrkCtrCount
as select from I_ProductionSupplyArea as _ProductionSupplyArea
left outer join I_WorkCenter as _WorkCenter on _ProductionSupplyArea.Plant = _WorkCenter.Plant
and _ProductionSupplyArea.ProductionSupplyArea = _WorkCenter.SupplyArea
{
key _ProductionSupplyArea.Plant,
key _ProductionSupplyArea.ProductionSupplyArea,
case
when _WorkCenter.Plant is null then 0
else count(*)
end as NumberOfUsagesOfProdnSupArea
}
group by
_ProductionSupplyArea.Plant,
_ProductionSupplyArea.ProductionSupplyArea,
_WorkCenter.Plant
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PRODUCTIONSUPPLYAREA",
"I_WORKCENTER"
],
"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