A_ProductPlant

DDL: A_PRODUCTPLANT SQL: APRODPLANT Type: view COMPOSITE

Plant Data

A_ProductPlant is a Composite CDS View that provides data about "Plant Data" in SAP S/4HANA. It reads from 1 data source (I_ProductPlant) and exposes 60 fields with key fields Product, Plant. It has 14 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProductPlant Plant from

Associations (14)

CardinalityTargetAliasCondition
[0..*] A_ProductStorageLocation _StorageLocation $projection.Product = _StorageLocation.Product and $projection.Plant = _StorageLocation.Plant
[0..1] A_ProductPlantProcurement _ProductPlantProcurement $projection.Product = _ProductPlantProcurement.Product and $projection.Plant = _ProductPlantProcurement.Plant
[0..1] A_ProductWorkScheduling _ProductWorkScheduling $projection.Product = _ProductWorkScheduling.Product and $projection.Plant = _ProductWorkScheduling.Plant
[0..1] A_ProductSupplyPlanning _ProductSupplyPlanning $projection.Product = _ProductSupplyPlanning.Product and $projection.Plant = _ProductSupplyPlanning.Plant
[0..1] A_ProductPlantIntlTrd _ProdPlantInternationalTrade $projection.Product = _ProdPlantInternationalTrade.Product and $projection.Plant = _ProdPlantInternationalTrade.Plant
[0..1] A_ProductPlantCosting _ProductPlantCosting $projection.Product = _ProductPlantCosting.Product and $projection.Plant = _ProductPlantCosting.Plant
[0..1] A_ProductPlantForecasting _ProductPlantForecast $projection.Product = _ProductPlantForecast.Product and $projection.Plant = _ProductPlantForecast.Plant
[0..1] A_ProductPlantQualityMgmt _PlantQualityMgmt $projection.Product = _PlantQualityMgmt.Product and $projection.Plant = _PlantQualityMgmt.Plant
[0..1] A_ProductPlantSales _PlantSales $projection.Product = _PlantSales.Product and $projection.Plant = _PlantSales.Plant
[0..1] A_ProductPlantStorage _PlantStorage $projection.Product = _PlantStorage.Product and $projection.Plant = _PlantStorage.Plant
[0..1] A_ProductPlantText _PlantText $projection.Product = _PlantText.Product and $projection.Plant = _PlantText.Plant
[0..*] A_ProductPlantMRPArea _PlantMRPArea $projection.Product = _PlantMRPArea.Product and $projection.Plant = _PlantMRPArea.Plant
[0..1] E_Productplant _ProductPlantExt $projection.Product = _ProductPlantExt.Product and $projection.Plant = _ProductPlantExt.Plant
[1..1] A_Product _Product $projection.Product = _Product.Product

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName APRODPLANT view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Plant Data view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view

Fields (60)

KeyFieldSource TableSource FieldDescription
KEY Product Product Product Sold
KEY Plant Plant Valuation Area
PurchasingGroup PurchasingGroup Purchasing Group
CountryOfOrigin CountryOfOrigin Country/Region of Origin
RegionOfOrigin RegionOfOrigin Reg. of Origin
ProductionInvtryManagedLoc ProductionInvtryManagedLoc Storage Location
ProfileCode ProfileCode Product Status
ProfileValidityStartDate ProfileValidityStartDate Valid from
AvailabilityCheckType AvailabilityCheckType Avail. check
FiscalYearVariant FiscalYearVariant FY Variant
PeriodType PeriodType PeriodIndicator
ProfitCenter ProfitCenter Profit Center
Commodity Commodity Commodity Code
GoodsReceiptDuration GoodsReceiptDuration GR proc. time
MaintenanceStatusName MaintenanceStatusName Maint. status
IsMarkedForDeletion IsMarkedForDeletion Purch.org. data
MRPType MRPType MRP Type
MRPResponsible MRPResponsible MRP Controller
ABCIndicator ABCIndicator ABC Indicator
MinimumLotSizeQuantity MinimumLotSizeQuantity Min. Lot Size
MaximumLotSizeQuantity MaximumLotSizeQuantity Max. Lot Size
FixedLotSizeQuantity FixedLotSizeQuantity Fixed lot size
ConsumptionTaxCtrlCode ConsumptionTaxCtrlCode Taxes F.Trade
IsCoProduct IsCoProduct Co-product?
ProductIsConfigurable ProductIsConfigurable Configurable
StockDeterminationGroup StockDeterminationGroup Stock Determ. Group
StockInTransferQuantity StockInTransferQuantity Stock in tfr
StockInTransitQuantity StockInTransitQuantity Stk in Transit
HasPostToInspectionStock HasPostToInspectionStock Post to insp. stk
IsBatchManagementRequired IsBatchManagementRequired Batch Mgmt Rqt(Plnt)
SerialNumberProfile SerialNumberProfile SerialNoProfile
IsNegativeStockAllowed IsNegativeStockAllowed Neg. stocks
GoodsReceiptBlockedStockQty GoodsReceiptBlockedStockQty Val. GR Blocked Stck
HasConsignmentCtrl HasConsignmentCtrl Consign.Control
FiscalYearCurrentPeriod FiscalYearCurrentPeriod Year cur.period
FiscalMonthCurrentPeriod FiscalMonthCurrentPeriod Current period
ProcurementType ProcurementType Procurement
IsInternalBatchManaged IsInternalBatchManaged Batches
ProductCFOPCategory ProductCFOPCategory Prod. category
ProductIsExciseTaxRelevant ProductIsExciseTaxRelevant Is Excise Tax Relevant
BaseUnit BaseUnit Unit of Measure
ConfigurableProduct ConfigurableProduct Conf. Material
GoodsIssueUnit GoodsIssueUnit Unit of Issue
MaterialFreightGroup MaterialFreightGroup Mat.Freight Grp
OriginalBatchReferenceMaterial OriginalBatchReferenceMaterial PB Material
OriglBatchManagementIsRequired OriglBatchManagementIsRequired OB Management
ProductIsCriticalPrt ProductIsCriticalPrt Critical Part
ProductLogisticsHandlingGroup ProductLogisticsHandlingGroup Logistics group
_StorageLocation _StorageLocation
_ProductPlantProcurement _ProductPlantProcurement
_ProductWorkScheduling _ProductWorkScheduling
_ProductSupplyPlanning _ProductSupplyPlanning
_ProdPlantInternationalTrade _ProdPlantInternationalTrade
_ProductPlantCosting _ProductPlantCosting
_PlantQualityMgmt _PlantQualityMgmt
_PlantSales _PlantSales
_Product _Product
_PlantStorage _PlantStorage
_PlantText _PlantText
_PlantMRPArea _PlantMRPArea

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_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.
-- SQL view name: APRODPLANT

CREATE VIEW A_ProductPlant AS
SELECT
  Product,
  Plant,
  PurchasingGroup,
  CountryOfOrigin,
  RegionOfOrigin,
  ProductionInvtryManagedLoc,
  ProfileCode,
  ProfileValidityStartDate,
  AvailabilityCheckType,
  FiscalYearVariant,
  PeriodType,
  ProfitCenter,
  Commodity,
  GoodsReceiptDuration,
  MaintenanceStatusName,
  IsMarkedForDeletion,
  MRPType,
  MRPResponsible,
  ABCIndicator,
  MinimumLotSizeQuantity,
  MaximumLotSizeQuantity,
  FixedLotSizeQuantity,
  ConsumptionTaxCtrlCode,
  IsCoProduct,
  ProductIsConfigurable,
  StockDeterminationGroup,
  StockInTransferQuantity,
  StockInTransitQuantity,
  HasPostToInspectionStock,
  IsBatchManagementRequired,
  SerialNumberProfile,
  IsNegativeStockAllowed,
  GoodsReceiptBlockedStockQty,
  HasConsignmentCtrl,
  FiscalYearCurrentPeriod,
  FiscalMonthCurrentPeriod,
  ProcurementType,
  IsInternalBatchManaged,
  ProductCFOPCategory,
  ProductIsExciseTaxRelevant,
  BaseUnit,
  ConfigurableProduct,
  GoodsIssueUnit,
  MaterialFreightGroup,
  OriginalBatchReferenceMaterial,
  OriglBatchManagementIsRequired,
  ProductIsCriticalPrt,
  ProductLogisticsHandlingGroup
FROM I_ProductPlant AS Plant
LEFT OUTER JOIN A_ProductStorageLocation AS _StorageLocation ON Product = _StorageLocation.Product AND Plant = _StorageLocation.Plant  -- association [0..*]
LEFT OUTER JOIN A_ProductPlantProcurement AS _ProductPlantProcurement ON Product = _ProductPlantProcurement.Product AND Plant = _ProductPlantProcurement.Plant  -- association [0..1]
LEFT OUTER JOIN A_ProductWorkScheduling AS _ProductWorkScheduling ON Product = _ProductWorkScheduling.Product AND Plant = _ProductWorkScheduling.Plant  -- association [0..1]
LEFT OUTER JOIN A_ProductSupplyPlanning AS _ProductSupplyPlanning ON Product = _ProductSupplyPlanning.Product AND Plant = _ProductSupplyPlanning.Plant  -- association [0..1]
LEFT OUTER JOIN A_ProductPlantIntlTrd AS _ProdPlantInternationalTrade ON Product = _ProdPlantInternationalTrade.Product AND Plant = _ProdPlantInternationalTrade.Plant  -- association [0..1]
LEFT OUTER JOIN A_ProductPlantCosting AS _ProductPlantCosting ON Product = _ProductPlantCosting.Product AND Plant = _ProductPlantCosting.Plant  -- association [0..1]
LEFT OUTER JOIN A_ProductPlantForecasting AS _ProductPlantForecast ON Product = _ProductPlantForecast.Product AND Plant = _ProductPlantForecast.Plant  -- association [0..1]
LEFT OUTER JOIN A_ProductPlantQualityMgmt AS _PlantQualityMgmt ON Product = _PlantQualityMgmt.Product AND Plant = _PlantQualityMgmt.Plant  -- association [0..1]
LEFT OUTER JOIN A_ProductPlantSales AS _PlantSales ON Product = _PlantSales.Product AND Plant = _PlantSales.Plant  -- association [0..1]
LEFT OUTER JOIN A_ProductPlantStorage AS _PlantStorage ON Product = _PlantStorage.Product AND Plant = _PlantStorage.Plant  -- association [0..1]
LEFT OUTER JOIN A_ProductPlantText AS _PlantText ON Product = _PlantText.Product AND Plant = _PlantText.Plant  -- association [0..1]
LEFT OUTER JOIN A_ProductPlantMRPArea AS _PlantMRPArea ON Product = _PlantMRPArea.Product AND Plant = _PlantMRPArea.Plant  -- association [0..*]
LEFT OUTER JOIN E_Productplant AS _ProductPlantExt ON Product = _ProductPlantExt.Product AND Plant = _ProductPlantExt.Plant  -- association [0..1]
LEFT OUTER JOIN A_Product AS _Product ON Product = _Product.Product  -- association [1..1]
;