C_ProductPlantESPP
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)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductPlantESPPTP | I_ProductPlantESPPTP | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- 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