A_Plant_2

DDL: A_PLANT_2 Type: view_entity CONSUMPTION Package: PLANT

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)

SourceAliasJoin Type
I_Plant _Plant from

Associations (2)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

ServiceBindingVersionContractRelease
API_PLANT_2 API_PLANT_2 V4 C2 C1
ASQL_F9085 ASQL_F9085 C2 NOT_RELEASED

Fields (15)

KeyFieldSource TableSource FieldDescription
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]
;