P_ProdCmplncPlant
P_ProdCmplncPlant is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (I_CompanyCode, I_CompanyCode, I_Plant, I_ValuationArea) and exposes 7 fields with key fields Plant, CompanyCode, CompanyCode. It has 1 association to related views.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_CompanyCode | _CompanyCode | inner |
| I_CompanyCode | _CompanyCode | union |
| I_Plant | _Plant | from |
| I_ValuationArea | _ValuationArea | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | P_ChmlCmplConstants | _Constants | _Constants.Constant1 = _Constants.Constant1 |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.representativeKey | Plant | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Plant | I_Plant | Plant | Valuation Area |
| KEY | CompanyCode | I_ValuationArea | CompanyCode | Receiver Company Code |
| PlantName | I_Plant | PlantName | User Group | |
| ConstantEmptyasPlant | ||||
| KEY | CompanyCode | I_CompanyCode | CompanyCode | Receiver Company Code |
| PlantName | _FallbackName | Text | User Group | |
| CompanyCodeName | I_CompanyCode | CompanyCodeName | Company Name |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_ProdCmplncPlant.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW P_ProdCmplncPlant AS
SELECT
_Plant.Plant AS Plant,
_ValuationArea.CompanyCode AS CompanyCode,
_Plant.PlantName AS PlantName,
_CompanyCode.CompanyCodeName AS ConstantEmptyasPlant,
_CompanyCode.CompanyCodeName AS CompanyCodeName
FROM I_Plant AS _Plant
INNER JOIN I_ValuationArea AS _ValuationArea ON /* join condition not captured in parsed metadata */
INNER JOIN I_CompanyCode AS _CompanyCode ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_ChmlCmplConstants AS _Constants ON _Constants.Constant1 = _Constants.Constant1 -- association [1..1]
-- UNION with additional select branch(es): I_CompanyCode
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA