C_Productstore
Consumption - Product Store
C_Productstore is a Consumption CDS View that provides data about "Consumption - Product Store" in SAP S/4HANA. It reads from 1 data source (I_ProductPlantWD) and exposes 57 fields with key fields Product, Plant. It has 22 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductPlantWD | Store | from |
Associations (22)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_Product | _Product | $projection.Product = _Product.Product |
| [0..*] | C_Productstorestoragelocation | _StorageLocation | $projection.Product = _StorageLocation.Product and $projection.Plant = _StorageLocation.Plant |
| [0..1] | C_Productstoreprocurment | _PlantProcurement | $projection.Product = _PlantProcurement.Product and $projection.Plant = _PlantProcurement.Plant |
| [0..1] | C_Productstoresales | _PlantSales | $projection.Product = _PlantSales.Product and $projection.Plant = _PlantSales.Plant |
| [0..1] | C_Productstoreqtmanagement | _PlantQualityMgmt | $projection.Product = _PlantQualityMgmt.Product and $projection.Plant = _PlantQualityMgmt.Plant |
| [1..1] | C_Productstoresupplyplanning | _MaterialLotSizingProcedure | $projection.Product = _MaterialLotSizingProcedure.Product and $projection.Plant = _MaterialLotSizingProcedure.Plant |
| [0..1] | C_Productstoreworkscheduling | _GoodsMovementQuantity | $projection.Product = _GoodsMovementQuantity.Product and $projection.Plant = _GoodsMovementQuantity.Plant |
| [0..1] | C_Productstorestorage | _PlantStorage | $projection.Product = _PlantStorage.Product and $projection.Plant = _PlantStorage.Plant |
| [0..1] | C_ProductStoreIntlTrade | _ProdPlantInternationalTrade | $projection.Product = _ProdPlantInternationalTrade.Product and $projection.Plant = _ProdPlantInternationalTrade.Plant |
| [0..1] | C_ProductStoreCosting | _ProductPlantCosting | $projection.Product = _ProductPlantCosting.Product and $projection.Plant = _ProductPlantCosting.Plant |
| [0..1] | C_ProductStoreForecast | _ProductPlantForecast | $projection.Product = _ProductPlantForecast.Product and $projection.Plant = _ProductPlantForecast.Plant |
| [1..*] | C_ProductStoreMRP | _MRPAreaData | $projection.Product = _MRPAreaData.Product and $projection.Plant = _MRPAreaData.Plant |
| [0..1] | C_ProdReplnmtRecipient | _ProductReplnmtRecipient | $projection.Product = _ProductReplnmtRecipient.Product and $projection.Plant = _ProductReplnmtRecipient.Plant |
| [0..1] | C_ProdStoreFcstParameters | _ProdPlntFcstParameters | $projection.Product = _ProdPlntFcstParameters.Product and $projection.Plant = _ProdPlntFcstParameters.Plant |
| [0..1] | C_ProdStorePurchaseTax | _ProdPlantPurchaseTax | $projection.Product = _ProdPlantPurchaseTax.Product and $projection.Plant = _ProdPlantPurchaseTax.Plant |
| [1..*] | I_SalesOrganizationText | _SalesOrgstoreText | $projection.SalesOrganization = _SalesOrgstoreText.SalesOrganization |
| [0..*] | I_DistributionChannelText | _DistributionChannelName | $projection.DistributionChannel = _DistributionChannelName.DistributionChannel |
| [0..*] | C_Srlnmbrasgprftexttemp | _SerialNumberProfileText | $projection.SerialNumberProfile = _SerialNumberProfileText.SerialNumberProfile |
| [0..*] | I_ProfitCenterText | _ProfitCenterName | $projection.ProfitCenter = _ProfitCenterName.ProfitCenter and $projection.ControllingArea = _ProfitCenterName.ControllingArea |
| [0..1] | C_Storevh | _StoreValueHelp | $projection.PlantForEdit = _StoreValueHelp.Store |
| [0..1] | C_ProductBasicInfo | _ConfigurableProduct | $projection.ConfigurableProduct = _ConfigurableProduct.Product |
| [0..1] | C_ProductStorePlanning | _ProductPlantPlanning | $projection.Product = _ProductPlantPlanning.Product and $projection.Plant = _ProductPlantPlanning.Plant |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPRDSTORE | view | |
| EndUserText.label | Consumption - Product Store | 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 | #MIXED | view | |
| ObjectModel.text.control | #ASSOCIATED_TEXT_UI_HIDDEN | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view | |
| Feature | SW:ISR_RETAILSWITCH | view |
Fields (57)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | I_ProductPlantWD | Product | Product Sold |
| KEY | Plant | I_ProductPlantWD | Plant | Valuation Area |
| PlantForEdit | I_ProductPlantWD | PlantForEdit | Plant ID | |
| ProfileCode | I_ProductPlantWD | ProfileCode | Product Status | |
| ProfileValidityStartDate | I_ProductPlantWD | ProfileValidityStartDate | Valid from | |
| PeriodType | I_ProductPlantWD | PeriodType | PeriodIndicator | |
| FiscalYearVariant | I_ProductPlantWD | FiscalYearVariant | FY Variant | |
| ProfitCenter | I_ProductPlantWD | ProfitCenter | Profit Center | |
| IsMarkedForDeletion | I_ProductPlantWD | IsMarkedForDeletion | Purch.org. data | |
| IsBatchManagementRequired | I_ProductPlantWD | IsBatchManagementRequired | Batch Mgmt Rqt(Plnt) | |
| SerialNumberProfile | I_ProductPlantWD | SerialNumberProfile | SerialNoProfile | |
| IsNegativeStockAllowed | I_ProductPlantWD | IsNegativeStockAllowed | Neg. stocks | |
| ConfigurableProduct | I_ProductPlantWD | ConfigurableProduct | Conf. Material | |
| ConfigurationSideEffect | I_ProductPlantWD | ConfigurationSideEffect | Side eff. | |
| IsVariantConfigurationEnabled | ||||
| FiscalMonthCurrentPeriod | ||||
| FiscalYearCurrentPeriod | ||||
| ProductCFOPCategory | I_ProductPlantWD | ProductCFOPCategory | Prod. category | |
| SalesOrganization | I_ProductPlantWD | SalesOrganization | Sales Organization | |
| DistributionChannel | I_ProductPlantWD | DistributionChannel | RefDistCh-Cust/Mat. | |
| PlantCategory | I_ProductPlantWD | PlantCategory | Plant cat. | |
| ReferenceStore | I_ProductPlantWD | ReferenceStore | Reference Store | |
| IsReferenceStore | I_ProductPlantWD | IsReferenceStore | TRUE | |
| GoodsIssueUnit | I_ProductPlantWD | GoodsIssueUnit | Unit of Issue | |
| ControllingArea | I_ProductPlantWD | ControllingArea | Controlling Area | |
| StockDeterminationGroup | I_ProductPlantWD | StockDeterminationGroup | Stock Determ. Group | |
| _Product | _Product | |||
| _StorageLocation | _StorageLocation | |||
| _PlantSales | _PlantSales | |||
| _PlantQualityMgmt | _PlantQualityMgmt | |||
| _PlantProcurement | _PlantProcurement | |||
| _MaterialLotSizingProcedure | _MaterialLotSizingProcedure | |||
| _GoodsMovementQuantity | _GoodsMovementQuantity | |||
| _PlantStorage | _PlantStorage | |||
| _ProdPlantInternationalTrade | _ProdPlantInternationalTrade | |||
| _ProductPlantCosting | _ProductPlantCosting | |||
| _MRPAreaData | _MRPAreaData | |||
| _ProductReplnmtRecipient | _ProductReplnmtRecipient | |||
| _ProdPlntFcstParameters | _ProdPlntFcstParameters | |||
| _ProdPlantPurchaseTax | _ProdPlantPurchaseTax | |||
| _ProductStatus | I_ProductPlantWD | _ProductStatus | ||
| _ProductStatusText | I_ProductPlantWD | _ProductStatusText | ||
| _ProfitCenterName | _ProfitCenterName | |||
| _SalesOrgstoreText | _SalesOrgstoreText | |||
| _DistributionChannelName | _DistributionChannelName | |||
| _GoodsIssueUnit | _GoodsIssueUnit | |||
| _FiscalYearVariant | _FiscalYearVariant | |||
| _FiscalYearVariantDescription | _FiscalYearVariantDescription | |||
| _SerialNumberProfileText | _SerialNumberProfileText | |||
| _StoreValueHelp | _StoreValueHelp | |||
| _ProductCFOPCategory | _ProductCFOPCategory | |||
| _CFOPDesc | _CFOPDesc | |||
| _PeriodType | _PeriodType | |||
| _PeriodTypeText | _PeriodTypeText | |||
| _ConfigurableProduct | _ConfigurableProduct | |||
| _ConfigurableProductName | _ConfigurableProductName | |||
| _ProductPlantPlanning | _ProductPlantPlanning |
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_Productstore.
-- 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: CPRDSTORE
CREATE VIEW C_Productstore AS
SELECT
Store.Product AS Product,
Store.Plant AS Plant,
Store.PlantForEdit AS PlantForEdit,
Store.ProfileCode AS ProfileCode,
Store.ProfileValidityStartDate AS ProfileValidityStartDate,
Store.PeriodType AS PeriodType,
Store.FiscalYearVariant AS FiscalYearVariant,
Store.ProfitCenter AS ProfitCenter,
Store.IsMarkedForDeletion AS IsMarkedForDeletion,
Store.IsBatchManagementRequired AS IsBatchManagementRequired,
Store.SerialNumberProfile AS SerialNumberProfile,
Store.IsNegativeStockAllowed AS IsNegativeStockAllowed,
Store.ConfigurableProduct AS ConfigurableProduct,
Store.ConfigurationSideEffect AS ConfigurationSideEffect,
cast('' as boole_d) AS IsVariantConfigurationEnabled,
cast('' as lfmon) AS FiscalMonthCurrentPeriod,
cast('' as lfgja) AS FiscalYearCurrentPeriod,
Store.ProductCFOPCategory AS ProductCFOPCategory,
Store.SalesOrganization AS SalesOrganization,
Store.DistributionChannel AS DistributionChannel,
Store.PlantCategory AS PlantCategory,
Store.ReferenceStore AS ReferenceStore,
Store.IsReferenceStore AS IsReferenceStore,
Store.GoodsIssueUnit AS GoodsIssueUnit,
Store.ControllingArea AS ControllingArea,
Store.StockDeterminationGroup AS StockDeterminationGroup,
Store._ProductStatus AS _ProductStatus,
Store._ProductStatusText AS _ProductStatusText
FROM I_ProductPlantWD AS Store
LEFT OUTER JOIN C_Product AS _Product ON Product = _Product.Product -- association [1..1]
LEFT OUTER JOIN C_Productstorestoragelocation AS _StorageLocation ON Product = _StorageLocation.Product AND Plant = _StorageLocation.Plant -- association [0..*]
LEFT OUTER JOIN C_Productstoreprocurment AS _PlantProcurement ON Product = _PlantProcurement.Product AND Plant = _PlantProcurement.Plant -- association [0..1]
LEFT OUTER JOIN C_Productstoresales AS _PlantSales ON Product = _PlantSales.Product AND Plant = _PlantSales.Plant -- association [0..1]
LEFT OUTER JOIN C_Productstoreqtmanagement AS _PlantQualityMgmt ON Product = _PlantQualityMgmt.Product AND Plant = _PlantQualityMgmt.Plant -- association [0..1]
LEFT OUTER JOIN C_Productstoresupplyplanning AS _MaterialLotSizingProcedure ON Product = _MaterialLotSizingProcedure.Product AND Plant = _MaterialLotSizingProcedure.Plant -- association [1..1]
LEFT OUTER JOIN C_Productstoreworkscheduling AS _GoodsMovementQuantity ON Product = _GoodsMovementQuantity.Product AND Plant = _GoodsMovementQuantity.Plant -- association [0..1]
LEFT OUTER JOIN C_Productstorestorage AS _PlantStorage ON Product = _PlantStorage.Product AND Plant = _PlantStorage.Plant -- association [0..1]
LEFT OUTER JOIN C_ProductStoreIntlTrade AS _ProdPlantInternationalTrade ON Product = _ProdPlantInternationalTrade.Product AND Plant = _ProdPlantInternationalTrade.Plant -- association [0..1]
LEFT OUTER JOIN C_ProductStoreCosting AS _ProductPlantCosting ON Product = _ProductPlantCosting.Product AND Plant = _ProductPlantCosting.Plant -- association [0..1]
LEFT OUTER JOIN C_ProductStoreForecast AS _ProductPlantForecast ON Product = _ProductPlantForecast.Product AND Plant = _ProductPlantForecast.Plant -- association [0..1]
LEFT OUTER JOIN C_ProductStoreMRP AS _MRPAreaData ON Product = _MRPAreaData.Product AND Plant = _MRPAreaData.Plant -- association [1..*]
LEFT OUTER JOIN C_ProdReplnmtRecipient AS _ProductReplnmtRecipient ON Product = _ProductReplnmtRecipient.Product AND Plant = _ProductReplnmtRecipient.Plant -- association [0..1]
LEFT OUTER JOIN C_ProdStoreFcstParameters AS _ProdPlntFcstParameters ON Product = _ProdPlntFcstParameters.Product AND Plant = _ProdPlntFcstParameters.Plant -- association [0..1]
LEFT OUTER JOIN C_ProdStorePurchaseTax AS _ProdPlantPurchaseTax ON Product = _ProdPlantPurchaseTax.Product AND Plant = _ProdPlantPurchaseTax.Plant -- association [0..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrgstoreText ON SalesOrganization = _SalesOrgstoreText.SalesOrganization -- association [1..*]
LEFT OUTER JOIN I_DistributionChannelText AS _DistributionChannelName ON DistributionChannel = _DistributionChannelName.DistributionChannel -- association [0..*]
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 C_Storevh AS _StoreValueHelp ON PlantForEdit = _StoreValueHelp.Store -- association [0..1]
LEFT OUTER JOIN C_ProductBasicInfo AS _ConfigurableProduct ON ConfigurableProduct = _ConfigurableProduct.Product -- association [0..1]
LEFT OUTER JOIN C_ProductStorePlanning AS _ProductPlantPlanning ON Product = _ProductPlantPlanning.Product AND Plant = _ProductPlantPlanning.Plant -- association [0..1]
;
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