C_ProductPlantESPP

DDL: C_PRODUCTPLANTESPP Type: view CONSUMPTION

Consumption view for Product Plant ESPP

C_ProductPlantESPP is a Consumption CDS View that provides data about "Consumption view for Product Plant ESPP" in SAP S/4HANA. It reads from 1 data source (I_ProductPlantESPPTP) and exposes 32 fields with key fields Product, Plant. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProductPlantESPPTP I_ProductPlantESPPTP from

Associations (4)

CardinalityTargetAliasCondition
[1..1] C_Product _Product $projection.Product = _Product.Product
[1..1] C_Productplant _Plant $projection.Product = _Plant.Product and $projection.Plant = _Plant.Plant
[0..*] I_ProductAlertText _ProductAlertRelevanceCodeText $projection.ProductAlertRelevanceCode = _ProductAlertRelevanceCodeText.ProductAlert
[0..*] I_ThirdPartyOrderProcessingT _ThirdPartyOrderProcessingText $projection.ThirdPartyOrderProcessing = _ThirdPartyOrderProcessingText.ThirdPartyOrderProcessing

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName CPRDPLNTESPP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Consumption view for Product Plant ESPP view
Metadata.allowExtensions true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.text.control #ASSOCIATED_TEXT_UI_HIDDEN view
VDM.viewType #CONSUMPTION view
Feature SW:/SAPAPO/S4_SWFS_ESPP_INST view

Fields (32)

KeyFieldSource TableSource FieldDescription
KEY Product Product Product Sold
KEY Plant Plant Valuation Area
ESPPIsUsed ESPPIsUsed
ProductAlertRelevanceCode ProductAlertRelevanceCode Product Alerts
LocProdGoodsReceiptProcHours LocProdGoodsReceiptProcHours GR Processng Time
LocProdGoodsRcptProcHoursCalc LocProdGoodsRcptProcHoursCalc GR Processng Time
LocProdGoodsIssueProcHours LocProdGoodsIssueProcHours GI Processng Time
LocProdGoodsIssueProcHoursCalc LocProdGoodsIssueProcHoursCalc GI Processng Time
SrvcPartsThroughputTimeDurn SrvcPartsThroughputTimeDurn
SrvcPartsThroughputTmeDurnCalc SrvcPartsThroughputTmeDurnCalc
ThirdPartyOrderProcessing ThirdPartyOrderProcessing
ParLocSafetyStockQuantity ParLocSafetyStockQuantity
RepairSafetyStockQuantity RepairSafetyStockQuantity
VCLSafetyStockQuantity VCLSafetyStockQuantity
VCLParLocSafetyStockQuantity VCLParLocSafetyStockQuantity
VCLRepairSafetyStockQuantity VCLRepairSafetyStockQuantity
VCLReorderPointQuantity VCLReorderPointQuantity
VCLMaximumStockQuantity VCLMaximumStockQuantity
CostFactorForStockHoldingVal CostFactorForStockHoldingVal
ProductProcurementCostsVal ProductProcurementCostsVal Procuremt Costs
GoodsReceiptHandlingCost GoodsReceiptHandlingCost GR Costs
GoodsIssueHandlingCost GoodsIssueHandlingCost GI Costs
BaseUnit BaseUnit Unit of Measure
GoodsReceiptDurationUnit
GoodsIssueProcgDurationUnit
SrvcPartsThroughputTmeDurnUnit
_Plant _Plant
_Product _Product
_ProductAlertRelevanceCode _ProductAlertRelevanceCode
_ProductAlertRelevanceCodeText _ProductAlertRelevanceCodeText
_ThirdPartyOrderProcessing _ThirdPartyOrderProcessing
_ThirdPartyOrderProcessingText _ThirdPartyOrderProcessingText

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_ProductPlantESPP.
-- 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 C_ProductPlantESPP AS
SELECT
  Product,
  Plant,
  ESPPIsUsed,
  ProductAlertRelevanceCode,
  LocProdGoodsReceiptProcHours,
  LocProdGoodsRcptProcHoursCalc,
  LocProdGoodsIssueProcHours,
  LocProdGoodsIssueProcHoursCalc,
  SrvcPartsThroughputTimeDurn,
  SrvcPartsThroughputTmeDurnCalc,
  ThirdPartyOrderProcessing,
  ParLocSafetyStockQuantity,
  RepairSafetyStockQuantity,
  VCLSafetyStockQuantity,
  VCLParLocSafetyStockQuantity,
  VCLRepairSafetyStockQuantity,
  VCLReorderPointQuantity,
  VCLMaximumStockQuantity,
  CostFactorForStockHoldingVal,
  ProductProcurementCostsVal,
  GoodsReceiptHandlingCost,
  GoodsIssueHandlingCost,
  BaseUnit,
  cast ('' as goodsreceiptdurationunit ) AS GoodsReceiptDurationUnit,
  cast ('' as goodsissueprocgdurationunit ) AS GoodsIssueProcgDurationUnit,
  cast ('' as msehi ) AS SrvcPartsThroughputTmeDurnUnit
FROM I_ProductPlantESPPTP
LEFT OUTER JOIN C_Product AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN C_Productplant AS _Plant ON Product = _Plant.Product AND Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_ProductAlertText AS _ProductAlertRelevanceCodeText ON ProductAlertRelevanceCode = _ProductAlertRelevanceCodeText.ProductAlert  -- association [0..*]
LEFT OUTER JOIN I_ThirdPartyOrderProcessingT AS _ThirdPartyOrderProcessingText ON ThirdPartyOrderProcessing = _ThirdPartyOrderProcessingText.ThirdPartyOrderProcessing  -- association [0..*]
;