C_Productplant

DDL: C_PRODUCTPLANT SQL: CPRDPLANT Type: view CONSUMPTION

Consumption - Product Plant

C_Productplant is a Consumption CDS View that provides data about "Consumption - Product Plant" in SAP S/4HANA. It reads from 1 data source (I_ProductPlantWD) and exposes 70 fields with key fields Product, Plant. It has 25 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProductPlantWD Plant from

Associations (25)

CardinalityTargetAliasCondition
[1..1] C_Product _Product $projection.Product = _Product.Product
[0..*] C_Productstoragelocation _StorageLocation $projection.Product = _StorageLocation.Product and $projection.Plant = _StorageLocation.Plant
[0..1] C_Productplantprocurment _PlantProcurement $projection.Product = _PlantProcurement.Product and $projection.Plant = _PlantProcurement.Plant
[0..1] C_Productplantsales _PlantSales $projection.Product = _PlantSales.Product and $projection.Plant = _PlantSales.Plant
[0..1] C_Productplantqtmanagement _PlantQualityMgmt $projection.Product = _PlantQualityMgmt.Product and $projection.Plant = _PlantQualityMgmt.Plant
[1..1] C_ProductSupplyPlanning _MaterialLotSizingProcedure $projection.Product = _MaterialLotSizingProcedure.Product and $projection.Plant = _MaterialLotSizingProcedure.Plant
[0..1] C_Productworkscheduling _GoodsMovementQuantity $projection.Product = _GoodsMovementQuantity.Product and $projection.Plant = _GoodsMovementQuantity.Plant
[0..1] C_Productplantstorage _PlantStorage $projection.Product = _PlantStorage.Product and $projection.Plant = _PlantStorage.Plant
[0..1] C_Productplantadvplan _AdvancedPlanning $projection.Product = _AdvancedPlanning.Product and $projection.Plant = _AdvancedPlanning.Plant
[0..*] C_AdvncdPlngProductDmndPnlty _DemandPenalty $projection.Product = _DemandPenalty.Product and $projection.Plant = _DemandPenalty.Plant
[0..1] C_ProductPlantIntlTrd _ProdPlantInternationalTrade $projection.Product = _ProdPlantInternationalTrade.Product and $projection.Plant = _ProdPlantInternationalTrade.Plant
[0..1] C_ProductPlantCosting _ProductPlantCosting $projection.Product = _ProductPlantCosting.Product and $projection.Plant = _ProductPlantCosting.Plant
[0..1] C_ProductPlantForecast _ProductPlantForecast $projection.Product = _ProductPlantForecast.Product and $projection.Plant = _ProductPlantForecast.Plant
[1..*] C_ProductPlantMRP _MRPAreaData $projection.Product = _MRPAreaData.Product and $projection.Plant = _MRPAreaData.Plant
[0..1] C_ProductBasicInfo _ConfigurableProduct $projection.ConfigurableProduct = _ConfigurableProduct.Product
[0..1] C_ProdPlntFcstParameters _ProdPlntFcstParameters $projection.Product = _ProdPlntFcstParameters.Product and $projection.Plant = _ProdPlntFcstParameters.Plant
[0..1] C_ProdPlantPurchaseTax _ProdPlantPurchaseTax $projection.Product = _ProdPlantPurchaseTax.Product and $projection.Plant = _ProdPlantPurchaseTax.Plant
[0..*] C_Srlnmbrasgprftexttemp _SerialNumberProfileText $projection.SerialNumberProfile = _SerialNumberProfileText.SerialNumberProfile
[0..*] I_ProfitCenterText _ProfitCenterName $projection.ProfitCenter = _ProfitCenterName.ProfitCenter and $projection.ControllingArea = _ProfitCenterName.ControllingArea
[0..1] I_Plant _PlantCVH $projection.PlantForEdit = _PlantCVH.Plant
[0..1] C_ProductPlantESPP _ProdPlantESPP $projection.Product = _ProdPlantESPP.Product and $projection.Plant = _ProdPlantESPP.Plant
[0..1] C_ProdSrvcPartsLocProduct _ProdSrvcPartsLoc $projection.Product = _ProdSrvcPartsLoc.Product and $projection.Plant = _ProdSrvcPartsLoc.Plant
[0..1] C_ProductPRTByInternalKey _ProdPlantPRT $projection.Product = _ProdPlantPRT.Product and $projection.Plant = _ProdPlantPRT.Plant
[0..*] C_CommodityQuantityPurchasing _CmmdtyQuantityPurchasing $projection.Product = _CmmdtyQuantityPurchasing.Product and $projection.Plant = _CmmdtyQuantityPurchasing.Plant
[0..*] C_CommodityStructuralQuantity _CommodityStructuralQuantity $projection.Product = _CommodityStructuralQuantity.Product and $projection.Plant = _CommodityStructuralQuantity.Plant

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName CPRDPLANT view
EndUserText.label Consumption - Product Plant view
Search.searchable true view
VDM.viewType #CONSUMPTION view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.text.control #ASSOCIATED_TEXT_UI_HIDDEN view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view

Fields (70)

KeyFieldSource TableSource FieldDescription
KEY Product I_ProductPlantWD Product Product Sold
KEY Plant I_ProductPlantWD Plant Valuation Area
ProductForEdit I_ProductPlantWD ProductForEdit Product
PlantForEdit I_ProductPlantWD PlantForEdit Plant ID
ConfigurableProduct I_ProductPlantWD ConfigurableProduct Conf. Material
ProfileCode I_ProductPlantWD ProfileCode Product Status
ProfileValidityStartDate I_ProductPlantWD ProfileValidityStartDate Valid from
PeriodType I_ProductPlantWD PeriodType PeriodIndicator
FiscalYearVariant I_ProductPlantWD FiscalYearVariant FY Variant
IsMarkedForDeletion I_ProductPlantWD IsMarkedForDeletion Purch.org. data
PlantCategory I_ProductPlantWD PlantCategory Plant cat.
FiscalMonthCurrentPeriod
FiscalYearCurrentPeriod
GoodsIssueUnit I_ProductPlantWD GoodsIssueUnit Unit of Issue
ProductCFOPCategory I_ProductPlantWD ProductCFOPCategory Prod. category
ConfigurationSideEffect I_ProductPlantWD ConfigurationSideEffect Side eff.
ProfitCenter I_ProductPlantWD ProfitCenter Profit Center
IsBatchManagementRequired I_ProductPlantWD IsBatchManagementRequired Batch Mgmt Rqt(Plnt)
SerialNumberProfile I_ProductPlantWD SerialNumberProfile SerialNoProfile
IsNegativeStockAllowed I_ProductPlantWD IsNegativeStockAllowed Neg. stocks
StockDeterminationGroup I_ProductPlantWD StockDeterminationGroup Stock Determ. Group
ControllingArea I_ProductPlantWD ControllingArea Controlling Area
IsVariantConfigurationEnabled
ProductIsExciseTaxRelevant I_ProductPlantWD ProductIsExciseTaxRelevant Is Excise Tax Relevant
ProductMaxControlTemperature I_ProductPlantWD ProductMaxControlTemperature Max. Temp.
ProductMinControlTemperature I_ProductPlantWD ProductMinControlTemperature Min. Temp.
ProductControlTemperatureUnit I_ProductPlantWD ProductControlTemperatureUnit Temp. UoM
ProductFreightGroup I_ProductPlantWD ProductFreightGroup Mat.Freight Grp
CountryOfOrigin _ProdPlantInternationalTrade CountryOfOrigin Country/Region of Origin
_Product _Product
_StorageLocation _StorageLocation
_PlantSales _PlantSales
_PlantQualityMgmt _PlantQualityMgmt
_PlantProcurement _PlantProcurement
_MaterialLotSizingProcedure _MaterialLotSizingProcedure
_GoodsMovementQuantity _GoodsMovementQuantity
_PlantStorage _PlantStorage
_AdvancedPlanning _AdvancedPlanning
_DemandPenalty _DemandPenalty
_MRPAreaData _MRPAreaData
_ProdPlantInternationalTrade _ProdPlantInternationalTrade
_ProductPlantCosting _ProductPlantCosting
_ProdPlntFcstParameters _ProdPlntFcstParameters
_ProdPlantPurchaseTax _ProdPlantPurchaseTax
_ProdPlantESPP _ProdPlantESPP
_ProdSrvcPartsLoc _ProdSrvcPartsLoc
_ProdPlantPRT _ProdPlantPRT
_CmmdtyQuantityPurchasing _CmmdtyQuantityPurchasing
_CommodityStructuralQuantity _CommodityStructuralQuantity
_ConfigurableProduct _ConfigurableProduct
_ConfigurableProductName _ConfigurableProductName
_GoodsIssueUnit _GoodsIssueUnit
_UnitOfMeasureText _UnitOfMeasureText
_ProductStatus _ProductStatus
_ProductStatusText _ProductStatusText
_FiscalYearVariant _FiscalYearVariant
_FiscalYearVariantDescription _FiscalYearVariantDescription
_ProfitCenterName _ProfitCenterName
_SerialNumberProfileText _SerialNumberProfileText
_PlantCVH _PlantCVH
_StockDeterminationGroup _StockDeterminationGroup
_StockDeterminationGroupT _StockDeterminationGroupT
_ProductCFOPCategory _ProductCFOPCategory
_CFOPDesc _CFOPDesc
_PeriodType _PeriodType
_PeriodTypeText _PeriodTypeText
_CountryOfOrigin _ProdPlantInternationalTrade _CountryOfOrigin
_CountryName _ProdPlantInternationalTrade _CountryName
_ProductFreightGroup _ProductFreightGroup
_ProductFreightGroupText _ProductFreightGroupText

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 C_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: CPRDPLANT

CREATE VIEW C_Productplant AS
SELECT
  Plant.Product AS Product,
  Plant.Plant AS Plant,
  Plant.ProductForEdit AS ProductForEdit,
  Plant.PlantForEdit AS PlantForEdit,
  Plant.ConfigurableProduct AS ConfigurableProduct,
  Plant.ProfileCode AS ProfileCode,
  Plant.ProfileValidityStartDate AS ProfileValidityStartDate,
  Plant.PeriodType AS PeriodType,
  Plant.FiscalYearVariant AS FiscalYearVariant,
  Plant.IsMarkedForDeletion AS IsMarkedForDeletion,
  Plant.PlantCategory AS PlantCategory,
  cast('' as lfmon) AS FiscalMonthCurrentPeriod,
  cast('' as lfgja) AS FiscalYearCurrentPeriod,
  Plant.GoodsIssueUnit AS GoodsIssueUnit,
  Plant.ProductCFOPCategory AS ProductCFOPCategory,
  Plant.ConfigurationSideEffect AS ConfigurationSideEffect,
  Plant.ProfitCenter AS ProfitCenter,
  Plant.IsBatchManagementRequired AS IsBatchManagementRequired,
  Plant.SerialNumberProfile AS SerialNumberProfile,
  Plant.IsNegativeStockAllowed AS IsNegativeStockAllowed,
  Plant.StockDeterminationGroup AS StockDeterminationGroup,
  Plant.ControllingArea AS ControllingArea,
  cast('' as boole_d) AS IsVariantConfigurationEnabled,
  Plant.ProductIsExciseTaxRelevant AS ProductIsExciseTaxRelevant,
  Plant.ProductMaxControlTemperature AS ProductMaxControlTemperature,
  Plant.ProductMinControlTemperature AS ProductMinControlTemperature,
  Plant.ProductControlTemperatureUnit AS ProductControlTemperatureUnit,
  Plant.ProductFreightGroup AS ProductFreightGroup,
  _ProdPlantInternationalTrade.CountryOfOrigin AS CountryOfOrigin,
  _ProdPlantInternationalTrade._CountryOfOrigin AS _CountryOfOrigin,
  _ProdPlantInternationalTrade._CountryName AS _CountryName
FROM I_ProductPlantWD AS Plant
LEFT OUTER JOIN C_Product AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN C_Productstoragelocation AS _StorageLocation ON Product = _StorageLocation.Product AND Plant = _StorageLocation.Plant  -- association [0..*]
LEFT OUTER JOIN C_Productplantprocurment AS _PlantProcurement ON Product = _PlantProcurement.Product AND Plant = _PlantProcurement.Plant  -- association [0..1]
LEFT OUTER JOIN C_Productplantsales AS _PlantSales ON Product = _PlantSales.Product AND Plant = _PlantSales.Plant  -- association [0..1]
LEFT OUTER JOIN C_Productplantqtmanagement AS _PlantQualityMgmt ON Product = _PlantQualityMgmt.Product AND Plant = _PlantQualityMgmt.Plant  -- association [0..1]
LEFT OUTER JOIN C_ProductSupplyPlanning AS _MaterialLotSizingProcedure ON Product = _MaterialLotSizingProcedure.Product AND Plant = _MaterialLotSizingProcedure.Plant  -- association [1..1]
LEFT OUTER JOIN C_Productworkscheduling AS _GoodsMovementQuantity ON Product = _GoodsMovementQuantity.Product AND Plant = _GoodsMovementQuantity.Plant  -- association [0..1]
LEFT OUTER JOIN C_Productplantstorage AS _PlantStorage ON Product = _PlantStorage.Product AND Plant = _PlantStorage.Plant  -- association [0..1]
LEFT OUTER JOIN C_Productplantadvplan AS _AdvancedPlanning ON Product = _AdvancedPlanning.Product AND Plant = _AdvancedPlanning.Plant  -- association [0..1]
LEFT OUTER JOIN C_AdvncdPlngProductDmndPnlty AS _DemandPenalty ON Product = _DemandPenalty.Product AND Plant = _DemandPenalty.Plant  -- association [0..*]
LEFT OUTER JOIN C_ProductPlantIntlTrd AS _ProdPlantInternationalTrade ON Product = _ProdPlantInternationalTrade.Product AND Plant = _ProdPlantInternationalTrade.Plant  -- association [0..1]
LEFT OUTER JOIN C_ProductPlantCosting AS _ProductPlantCosting ON Product = _ProductPlantCosting.Product AND Plant = _ProductPlantCosting.Plant  -- association [0..1]
LEFT OUTER JOIN C_ProductPlantForecast AS _ProductPlantForecast ON Product = _ProductPlantForecast.Product AND Plant = _ProductPlantForecast.Plant  -- association [0..1]
LEFT OUTER JOIN C_ProductPlantMRP AS _MRPAreaData ON Product = _MRPAreaData.Product AND Plant = _MRPAreaData.Plant  -- association [1..*]
LEFT OUTER JOIN C_ProductBasicInfo AS _ConfigurableProduct ON ConfigurableProduct = _ConfigurableProduct.Product  -- association [0..1]
LEFT OUTER JOIN C_ProdPlntFcstParameters AS _ProdPlntFcstParameters ON Product = _ProdPlntFcstParameters.Product AND Plant = _ProdPlntFcstParameters.Plant  -- association [0..1]
LEFT OUTER JOIN C_ProdPlantPurchaseTax AS _ProdPlantPurchaseTax ON Product = _ProdPlantPurchaseTax.Product AND Plant = _ProdPlantPurchaseTax.Plant  -- association [0..1]
LEFT OUTER JOIN C_Srlnmbrasgprftexttemp AS _SerialNumberProfileText ON SerialNumberProfile = _SerialNumberProfileText.SerialNumberProfile  -- association [0..*]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterName ON ProfitCenter = _ProfitCenterName.ProfitCenter AND ControllingArea = _ProfitCenterName.ControllingArea  -- association [0..*]
LEFT OUTER JOIN I_Plant AS _PlantCVH ON PlantForEdit = _PlantCVH.Plant  -- association [0..1]
LEFT OUTER JOIN C_ProductPlantESPP AS _ProdPlantESPP ON Product = _ProdPlantESPP.Product AND Plant = _ProdPlantESPP.Plant  -- association [0..1]
LEFT OUTER JOIN C_ProdSrvcPartsLocProduct AS _ProdSrvcPartsLoc ON Product = _ProdSrvcPartsLoc.Product AND Plant = _ProdSrvcPartsLoc.Plant  -- association [0..1]
LEFT OUTER JOIN C_ProductPRTByInternalKey AS _ProdPlantPRT ON Product = _ProdPlantPRT.Product AND Plant = _ProdPlantPRT.Plant  -- association [0..1]
LEFT OUTER JOIN C_CommodityQuantityPurchasing AS _CmmdtyQuantityPurchasing ON Product = _CmmdtyQuantityPurchasing.Product AND Plant = _CmmdtyQuantityPurchasing.Plant  -- association [0..*]
LEFT OUTER JOIN C_CommodityStructuralQuantity AS _CommodityStructuralQuantity ON Product = _CommodityStructuralQuantity.Product AND Plant = _CommodityStructuralQuantity.Plant  -- association [0..*]
;