I_ProductProjectStockValuation
Product Project Stock Valuation
I_ProductProjectStockValuation is a Basic CDS View that provides data about "Product Project Stock Valuation" in SAP S/4HANA. It reads from 3 data sources (qbew, t001, t001k) and exposes 68 fields with key fields Product, ValuationArea, ValuationType, InventorySpecialStockType, WBSElementInternalID. It has 7 associations to related views. Part of development package VDM_MD_PRODUCT_DDIC.
Data Sources (3)
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_InventoryValuationType | _InventoryValuationType | $projection.ValuationType = _InventoryValuationType.InventoryValuationType |
| [0..1] | I_ProdValnPriceControl | _InventoryValnProcedure | $projection.InventoryValuationProcedure = _InventoryValnProcedure.InventoryValuationProcedure |
| [0..*] | I_ProdValnPriceControlText | _InventoryValnProcedureText | $projection.InventoryValuationProcedure = _InventoryValnProcedureText.InventoryValuationProcedure |
| [0..1] | I_Prodvaluationclass | _ValuationClass | $projection.ValuationClass = _ValuationClass.ValuationClass |
| [0..*] | I_Prodvaluationclasstxt | _ValuationClassText | $projection.ValuationClass = _ValuationClassText.ValuationClass |
| [1..1] | I_Product | _Product | $projection.Product = _Product.Product |
| [1..1] | I_UnitOfMeasure | _BaseUnitOfMeasure | $projection.baseunit = _BaseUnitOfMeasure.UnitOfMeasure |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Product Project Stock Valuation | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (68)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | qbew | matnr | Vehicle Model |
| KEY | ValuationArea | qbew | bwkey | Valuation Area |
| KEY | ValuationType | qbew | bwtar | Valuation Type |
| KEY | InventorySpecialStockType | qbew | sobkz | Special Stock |
| KEY | WBSElementInternalID | |||
| InventoryValuationProcedure | qbew | vprsv | Price control | |
| Currency | t001 | waers | Transaction Currency | |
| BaseUnit | _Product | BaseUnit | Unit of Measure | |
| MovingAveragePrice | qbew | verpr | Moving price | |
| StandardPrice | qbew | stprs | Standard price | |
| ProductPriceUnitQuantity | qbew | peinh | Unit of measure | |
| ValuationClass | qbew | bklas | Valuation Class | |
| ProdPrcControlInPreviousPeriod | ||||
| MvgAvgPriceInPreviousPeriod | ||||
| StandardPriceInPreviousPeriod | ||||
| ProdPrcUntQtyInPreviousPeriod | ||||
| ValuationClassPreviousPeriod | ||||
| ProdPriceControlInPreviousYear | ||||
| MvgAveragePriceInPreviousYear | ||||
| StandardPricePrevYear | ||||
| ProdPrcUntQtyInPreviousYear | ||||
| ValuationClassPreviousYear | ||||
| FiscalYearCurrentPeriod | qbew | lfgja | Year Cur.Period | |
| FiscalMonthCurrentPeriod | ||||
| ValuationCategory | qbew | bwtty | Valuation Cat. | |
| PrevInvtryPriceInCoCodeCrcy | qbew | stprv | Previous Price | |
| PriceLastChangeDate | qbew | laepr | Last Price Chg. | |
| FuturePrice | qbew | zkprs | Future Price | |
| FuturePriceValidityStartDate | qbew | zkdat | Valid from | |
| ProdHasStdCostEstForFutrPeriod | qbew | kalkz | Fut. cost est. | |
| ProdHasStdCostEstForCurPeriod | qbew | kalkl | CurrentCostEst. | |
| ProdHasStdCostEstForPrevPeriod | qbew | kalkv | PreviousCostEst | |
| ProdCostEstNumber | qbew | kaln1 | ProdCostEst.No. | |
| FutrCostEstValuationVariant | ||||
| CurCostEstValuationVariant | ||||
| PrevCostEstValuationVariant | ||||
| FutureCostEstCostingVersion | ||||
| CurrentCostEstCostingVersion | ||||
| PreviousCostEstCostingVersion | ||||
| CostOriginGroup | qbew | hrkft | Origin group order | |
| CostingOverheadGroup | qbew | kosgr | Overhead Group | |
| FutureCostEstimateFiscalPeriod | qbew | pprdz | Posting Period | |
| CurrentCostEstFiscalPeriod | ||||
| PreviousCostEstFiscalPeriod | qbew | pprdv | Previous Period | |
| FutureCostEstFiscalYear | qbew | pdatz | Fut. FYyear | |
| CurrentCostEstFiscalYear | qbew | pdatl | Curr. Fiscal Yr | |
| PreviousCostEstFiscalYear | qbew | pdatv | Valid From | |
| ProductIsCostedWithQtyStruc | qbew | ekalr | Cost Est. w/QS | |
| PreviousPlanPriceInCoCodeCrcy | qbew | vplpr | Prev. Plnd Prc. | |
| MLIsActiveAtProductLevel | qbew | mlmaa | ML Act. | |
| PriceDeterminationControl | qbew | mlast | Price Determ. | |
| CurrentPlanPriceInCoCodeCrcy | qbew | lplpr | Curr.Plnd Price | |
| ProductHasRelatedOrigin | qbew | hkmat | Material origin | |
| ValuationMarginPercent | qbew | bwspa | Val. Margin | |
| FxdPortnOfPlanPrcInCoCodeCrcy | qbew | lplpx | Fix. Cur. Plnd Prc. | |
| FxdPortOfPrevPlPrcInCoCodeCrcy | qbew | vplpx | Fixed Prev. PlndPrc. | |
| FxdPortnOfFutPlPrcInCoCodeCrcy | qbew | fplpx | Fut. PlanPrice, Fxd | |
| CurPlanProjSlsOrdValnStrategy | qbew | lbwst | Curr. Valn Strat. | |
| PrevPlanProjSlsOrdValnStrategy | qbew | vbwst | Prev. Valn Strat. | |
| FutrPlanProjSlsOrdValnStrategy | qbew | fbwst | Fut. Valn Strat. | |
| ValnClsForSpclStkAtVndr | qbew | oklas | VC: Vendor | |
| _InventoryValuationType | _InventoryValuationType | |||
| _InventoryValnProcedure | _InventoryValnProcedure | |||
| _InventoryValnProcedureText | _InventoryValnProcedureText | |||
| _ValuationClass | _ValuationClass | |||
| _ValuationClassText | _ValuationClassText | |||
| _Product | _Product | |||
| _BaseUnitOfMeasure | _BaseUnitOfMeasure |
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 I_ProductProjectStockValuation.
-- 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 I_ProductProjectStockValuation AS
SELECT
ProjectStockValuation.matnr AS Product,
ProjectStockValuation.bwkey AS ValuationArea,
ProjectStockValuation.bwtar AS ValuationType,
ProjectStockValuation.sobkz AS InventorySpecialStockType,
cast( ProjectStockValuation.pspnr as ps_s4_pspnr preserving type ) AS WBSElementInternalID,
ProjectStockValuation.vprsv AS InventoryValuationProcedure,
t001.waers AS Currency,
_Product.BaseUnit AS BaseUnit,
ProjectStockValuation.verpr AS MovingAveragePrice,
ProjectStockValuation.stprs AS StandardPrice,
ProjectStockValuation.peinh AS ProductPriceUnitQuantity,
ProjectStockValuation.bklas AS ValuationClass,
cast ( ProjectStockValuation.vmvpr as cmd_prd_vmvpr_prev_perd preserving type ) AS ProdPrcControlInPreviousPeriod,
cast ( ProjectStockValuation.vmver as cmd_prd_vmver_prev_perd preserving type ) AS MvgAvgPriceInPreviousPeriod,
cast(ProjectStockValuation.vmstp as cmd_prd_vmstp_prev_perd preserving type ) AS StandardPriceInPreviousPeriod,
cast( ProjectStockValuation.vmpei as cmd_prd_vmpei_prev_perd preserving type ) AS ProdPrcUntQtyInPreviousPeriod,
cast( ProjectStockValuation.vmbkl as fml_vmbkl preserving type ) AS ValuationClassPreviousPeriod,
cast( ProjectStockValuation.vjvpr as cmd_prd_vjvpr_prev_year preserving type ) AS ProdPriceControlInPreviousYear,
cast ( ProjectStockValuation.vjver as cmd_prd_vjver_prev_year preserving type ) AS MvgAveragePriceInPreviousYear,
cast ( ProjectStockValuation.vjstp as cmd_prd_vjstp_prev_year preserving type ) AS StandardPricePrevYear,
cast ( ProjectStockValuation.vjpei as cmd_prd_vjpei_prev_year preserving type ) AS ProdPrcUntQtyInPreviousYear,
cast( ProjectStockValuation.vjbkl as fml_vjbkl preserving type ) AS ValuationClassPreviousYear,
ProjectStockValuation.lfgja AS FiscalYearCurrentPeriod,
cast ( ProjectStockValuation.lfmon as cmd_prd_lfmon_cur_perd preserving type ) AS FiscalMonthCurrentPeriod,
ProjectStockValuation.bwtty AS ValuationCategory,
ProjectStockValuation.stprv AS PrevInvtryPriceInCoCodeCrcy,
ProjectStockValuation.laepr AS PriceLastChangeDate,
ProjectStockValuation.zkprs AS FuturePrice,
ProjectStockValuation.zkdat AS FuturePriceValidityStartDate,
ProjectStockValuation.kalkz AS ProdHasStdCostEstForFutrPeriod,
ProjectStockValuation.kalkl AS ProdHasStdCostEstForCurPeriod,
ProjectStockValuation.kalkv AS ProdHasStdCostEstForPrevPeriod,
ProjectStockValuation.kaln1 AS ProdCostEstNumber,
cast ( ProjectStockValuation.bwva1 as cmd_prd_bwva1_futr_cost_est preserving type ) AS FutrCostEstValuationVariant,
cast ( ProjectStockValuation.bwva2 as cmd_prd_bwva2_cur_cost_est preserving type ) AS CurCostEstValuationVariant,
cast ( ProjectStockValuation.bwva3 as cmd_prd_bwva3_prev_cost_est preserving type ) AS PrevCostEstValuationVariant,
cast ( ProjectStockValuation.vers1 as cmd_prd_vers1_futr_cost_est preserving type ) AS FutureCostEstCostingVersion,
cast ( ProjectStockValuation.vers2 as cmd_prd_vers2_cur_cost_est preserving type ) AS CurrentCostEstCostingVersion,
cast ( ProjectStockValuation.vers3 as cmd_prd_vers3_prev_cost_est preserving type ) AS PreviousCostEstCostingVersion,
ProjectStockValuation.hrkft AS CostOriginGroup,
ProjectStockValuation.kosgr AS CostingOverheadGroup,
ProjectStockValuation.pprdz AS FutureCostEstimateFiscalPeriod,
cast ( ProjectStockValuation.pprdl as cmd_prd_pprdl_std_cost_est preserving type ) AS CurrentCostEstFiscalPeriod,
ProjectStockValuation.pprdv AS PreviousCostEstFiscalPeriod,
ProjectStockValuation.pdatz AS FutureCostEstFiscalYear,
ProjectStockValuation.pdatl AS CurrentCostEstFiscalYear,
ProjectStockValuation.pdatv AS PreviousCostEstFiscalYear,
ProjectStockValuation.ekalr AS ProductIsCostedWithQtyStruc,
ProjectStockValuation.vplpr AS PreviousPlanPriceInCoCodeCrcy,
ProjectStockValuation.mlmaa AS MLIsActiveAtProductLevel,
ProjectStockValuation.mlast AS PriceDeterminationControl,
ProjectStockValuation.lplpr AS CurrentPlanPriceInCoCodeCrcy,
ProjectStockValuation.hkmat AS ProductHasRelatedOrigin,
ProjectStockValuation.bwspa AS ValuationMarginPercent,
ProjectStockValuation.lplpx AS FxdPortnOfPlanPrcInCoCodeCrcy,
ProjectStockValuation.vplpx AS FxdPortOfPrevPlPrcInCoCodeCrcy,
ProjectStockValuation.fplpx AS FxdPortnOfFutPlPrcInCoCodeCrcy,
ProjectStockValuation.lbwst AS CurPlanProjSlsOrdValnStrategy,
ProjectStockValuation.vbwst AS PrevPlanProjSlsOrdValnStrategy,
ProjectStockValuation.fbwst AS FutrPlanProjSlsOrdValnStrategy,
ProjectStockValuation.oklas AS ValnClsForSpclStkAtVndr
FROM qbew AS ProjectStockValuation
INNER JOIN t001k ON /* join condition not captured in parsed metadata */
INNER JOIN t001 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_InventoryValuationType AS _InventoryValuationType ON ValuationType = _InventoryValuationType.InventoryValuationType -- association [0..1]
LEFT OUTER JOIN I_ProdValnPriceControl AS _InventoryValnProcedure ON InventoryValuationProcedure = _InventoryValnProcedure.InventoryValuationProcedure -- association [0..1]
LEFT OUTER JOIN I_ProdValnPriceControlText AS _InventoryValnProcedureText ON InventoryValuationProcedure = _InventoryValnProcedureText.InventoryValuationProcedure -- association [0..*]
LEFT OUTER JOIN I_Prodvaluationclass AS _ValuationClass ON ValuationClass = _ValuationClass.ValuationClass -- association [0..1]
LEFT OUTER JOIN I_Prodvaluationclasstxt AS _ValuationClassText ON ValuationClass = _ValuationClassText.ValuationClass -- association [0..*]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnitOfMeasure ON baseunit = _BaseUnitOfMeasure.UnitOfMeasure -- association [1..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