A_Plant_2
Plant
A_Plant_2 is a Consumption CDS View that provides data about "Plant" in SAP S/4HANA. It reads from 1 data source (I_Plant) and exposes 15 fields with key field Plant. It has 2 associations to related views. It is exposed through 2 OData services (API_PLANT_2, ASQL_F9085). Part of development package PLANT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Plant | _Plant | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ValuationArea | _ValuationArea | $projection.ValuationArea = _ValuationArea.ValuationArea * That creates a prio 2 ATC error; only associations to A_ views are allowed for remote API views -- |
| [0..1] | I_PlantCategoryT | _PlantCategoryText | $projection.PlantCategory = _PlantCategoryText.PlantCategory |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Plant | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.representativeKey | Plant | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.updateEnabled | false | view | |
| ObjectModel.deleteEnabled | false | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view |
OData Services (2)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| API_PLANT_2 | API_PLANT_2 | V4 | C2 | C1 |
| ASQL_F9085 | ASQL_F9085 | C2 | NOT_RELEASED |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Plant | Plant | Valuation Area | |
| PlantName | PlantName | Plant Name | ||
| ValuationArea | ValuationArea | Valuation Area | ||
| PlantCustomer | PlantCustomer | Stock customer | ||
| PlantSupplier | PlantSupplier | Vendor no. | ||
| FactoryCalendar | FactoryCalendar | Factory Calendar | ||
| DefaultPurchasingOrganization | DefaultPurchasingOrganization | Purchasing Org. | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| AddressID | AddressID | Ship-to address | ||
| PlantCategory | PlantCategory | Plant cat. | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| Language | Language | Report Text Language | ||
| IsMarkedForArchiving_ValuationArea | ||||
| _PlantCategoryText |
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 A_Plant_2.
-- 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 A_Plant_2 AS
SELECT
Plant,
PlantName,
ValuationArea,
PlantCustomer,
PlantSupplier,
FactoryCalendar,
DefaultPurchasingOrganization,
SalesOrganization,
AddressID,
PlantCategory,
DistributionChannel,
Division,
Language,
IsMarkedForArchiving AS IsMarkedForArchiving_ValuationArea
FROM I_Plant AS _Plant
LEFT OUTER JOIN I_ValuationArea AS _ValuationArea ON ValuationArea = _ValuationArea.ValuationArea * That creates a prio 2 ATC error; only associations to A_ views are allowed for remote API views -- association [0..1]
LEFT OUTER JOIN I_PlantCategoryT AS _PlantCategoryText ON PlantCategory = _PlantCategoryText.PlantCategory -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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