N_ProductPlant
Auxiliary view for Plant
N_ProductPlant is a CDS View that provides data about "Auxiliary view for Plant" in SAP S/4HANA. It reads from 1 data source (marc) and exposes 20 fields with key fields Product, Plant. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| marc | Plant | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Product | _Product | $projection.Product = _Product.Product |
| [0..1] | I_PurchasingGroup | _PurchasingGroup | $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup |
| [0..1] | I_MRPController | _MRPController | $projection.Plant = _MRPController.Plant and $projection.MRPResponsible = _MRPController.MRPController |
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..*] | N_ProductStorageLocation | _ProductStorageLocation | $projection.Product = _ProductStorageLocation.Product and $projection.Plant = _ProductStorageLocation.Plant |
| [0..1] | I_Prodabclassfctntxt | _ABCIndicatorDesc | $projection.ABCIndicator = _ABCIndicatorDesc.MaterialABCClassification and _ABCIndicatorDesc.Language = $session.system_language |
| [0..1] | I_CountryText | _CountryOfOriginText | $projection.CountryOfOrigin = _CountryOfOriginText.Country and _CountryOfOriginText.Language = $session.system_language |
| [0..*] | I_RegionText | _RegionText | $projection.CountryOfOrigin = _RegionText.Country |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | NPRDPLANT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Auxiliary view for Plant | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.auxiliaryEntity.for.entity | I_ProductPlant | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | marc | matnr | Vehicle Model |
| KEY | Plant | marc | werks | Receiving Plant |
| PurchasingGroup | marc | ekgrp | Sub. purchasing grp | |
| ABCIndicator | marc | maabc | ABC Indicator | |
| CountryOfOrigin | marc | herkl | C/R of Origin | |
| RegionOfOrigin | marc | herkr | Reg. of Origin | |
| MRPResponsible | marc | dispo | MRP Controller | |
| PlantName | _Plant | PlantName | Plant Name | |
| StorageLocationName | ||||
| CountryName | _CountryOfOriginText | CountryName | Country | |
| MaterialABCClassificationDesc | _ABCIndicatorDesc | MaterialABCClassificationDesc | ||
| PurchasingGroupName | _PurchasingGroup | PurchasingGroupName | Purchasing Grp. Name | |
| _Product | _Product | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _MRPController | _MRPController | |||
| _Plant | _Plant | |||
| _ABCIndicatorDesc | _ABCIndicatorDesc | |||
| _ProductStorageLocation | _ProductStorageLocation | |||
| _CountryOfOriginText | _CountryOfOriginText | |||
| _RegionText | _RegionText |
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 N_ProductPlant.
-- 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 N_ProductPlant AS
SELECT
Plant.matnr AS Product,
Plant.werks AS Plant,
Plant.ekgrp AS PurchasingGroup,
Plant.maabc AS ABCIndicator,
Plant.herkl AS CountryOfOrigin,
Plant.herkr AS RegionOfOrigin,
Plant.dispo AS MRPResponsible,
_Plant.PlantName AS PlantName,
_ProductStorageLocation._StorageLocation.StorageLocationName AS StorageLocationName,
_CountryOfOriginText.CountryName AS CountryName,
_ABCIndicatorDesc.MaterialABCClassificationDesc AS MaterialABCClassificationDesc,
_PurchasingGroup.PurchasingGroupName AS PurchasingGroupName
FROM marc AS Plant
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product -- association [1..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup -- association [0..1]
LEFT OUTER JOIN I_MRPController AS _MRPController ON Plant = _MRPController.Plant AND MRPResponsible = _MRPController.MRPController -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN N_ProductStorageLocation AS _ProductStorageLocation ON Product = _ProductStorageLocation.Product AND Plant = _ProductStorageLocation.Plant -- association [0..*]
LEFT OUTER JOIN I_Prodabclassfctntxt AS _ABCIndicatorDesc ON ABCIndicator = _ABCIndicatorDesc.MaterialABCClassification AND _ABCIndicatorDesc.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_CountryText AS _CountryOfOriginText ON CountryOfOrigin = _CountryOfOriginText.Country AND _CountryOfOriginText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_RegionText AS _RegionText ON CountryOfOrigin = _RegionText.Country -- association [0..*]
;
Learn More
- CDS View Annotations — A Complete Guide
- 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 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