P_ProductValuationWD
union
P_ProductValuationWD is a Composite CDS View that provides data about "union" in SAP S/4HANA. It reads from 5 data sources (I_ProductValuation, I_DraftAdministrativeData, P_ProductValuationD, P_ProductValuationD, P_ProductD) and exposes 35 fields with key fields Draftkey, ActiveProduct, ActiveValuationArea, ActiveInventoryValuationType, ActiveProduct. Part of development package VDM_MD_PRODUCT_OBSOLETE.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductValuation | ActiveDocument | from |
| I_DraftAdministrativeData | DraftAdministrativeData | inner |
| P_ProductValuationD | DraftDocument | left_outer |
| P_ProductValuationD | DraftDocument | union_all |
| P_ProductD | DraftRootDocument | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPRDVALUATIONWD | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ClientDependent | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Draftkey | |||
| KEY | ActiveProduct | I_ProductValuation | Product | Product |
| KEY | ActiveValuationArea | I_ProductValuation | ValuationArea | Valuation area |
| KEY | ActiveInventoryValuationType | I_ProductValuation | ValuationType | Valuation type |
| ParentDraftKey | NodeID | |||
| Product | I_ProductValuation | Product | Product Sold | |
| ValuationArea | I_ProductValuation | ValuationArea | Valuation Area | |
| ValuationType | I_ProductValuation | ValuationType | Valuation Type | |
| ValuationClass | I_ProductValuation | ValuationClass | Valuation Class | |
| PriceDeterminationControl | I_ProductValuation | PriceDeterminationControl | Price Determ. | |
| IsMarkedForDeletion | ||||
| StandardPrice | I_ProductValuation | StandardPrice | Standard price | |
| PriceUnitQty | I_ProductValuation | PriceUnitQty | Price unit | |
| InventoryValuationProcedure | I_ProductValuation | InventoryValuationProcedure | Price Control | |
| MovingAveragePrice | I_ProductValuation | MovingAveragePrice | Per. Unit Price | |
| ValuationCategory | I_ProductValuation | ValuationCategory | Valuation Cat. | |
| ProductUsageType | I_ProductValuation | ProductUsageType | Product Usage | |
| ProductOriginType | I_ProductValuation | ProductOriginType | Product Origin | |
| IsProducedInhouse | I_ProductValuation | IsProducedInhouse | Prod. in-house | |
| ProdCostEstNumber | I_ProductValuation | ProdCostEstNumber | ProdCostEst.No. | |
| ValuationMargin | I_ProductValuation | ValuationMargin | Val. margin | |
| IsActiveEntity | ||||
| HasActiveEntity | ||||
| DraftkeyasDraftkey | ||||
| KEY | ActiveProduct | P_ProductValuationD | ActiveProduct | Product |
| KEY | ActiveValuationArea | P_ProductValuationD | ActiveValuationArea | Valuation area |
| KEY | ActiveInventoryValuationType | P_ProductValuationD | ActiveInventoryValuationType | Valuation type |
| ParentDraftKey | P_ProductValuationD | ParentDraftKey | NodeID | |
| product | P_ProductD | product | Product Sold | |
| IsMarkedForDeletion | ||||
| priceunitqty | P_ProductValuationD | priceunitqty | Price unit | |
| IsActiveEntity | ||||
| HasActiveEntity | ||||
| HasDraftEntity | ||||
| DraftAdministrativeDataUUID |
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 P_ProductValuationWD.
-- 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: PPRDVALUATIONWD
CREATE VIEW P_ProductValuationWD AS
SELECT
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS Draftkey,
ActiveDocument.Product AS ActiveProduct,
ActiveDocument.ValuationArea AS ActiveValuationArea,
ActiveDocument.ValuationType AS ActiveInventoryValuationType,
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS ParentDraftKey,
ActiveDocument.Product AS Product,
ActiveDocument.ValuationArea AS ValuationArea,
ActiveDocument.ValuationType AS ValuationType,
ActiveDocument.ValuationClass AS ValuationClass,
ActiveDocument.PriceDeterminationControl AS PriceDeterminationControl,
cast(ActiveDocument.IsMarkedForDeletion as boole_d) AS IsMarkedForDeletion,
ActiveDocument.StandardPrice AS StandardPrice,
ActiveDocument.PriceUnitQty AS PriceUnitQty,
ActiveDocument.InventoryValuationProcedure AS InventoryValuationProcedure,
ActiveDocument.MovingAveragePrice AS MovingAveragePrice,
ActiveDocument.ValuationCategory AS ValuationCategory,
ActiveDocument.ProductUsageType AS ProductUsageType,
ActiveDocument.ProductOriginType AS ProductOriginType,
ActiveDocument.IsProducedInhouse AS IsProducedInhouse,
ActiveDocument.ProdCostEstNumber AS ProdCostEstNumber,
ActiveDocument.ValuationMargin AS ValuationMargin,
cast( 'X' as boole_d ) AS IsActiveEntity,
cast( ' ' as boole_d ) AS HasActiveEntity,
cast(DraftDocument.ParentDraftKey as sysuuid_x ) as DraftAdministrativeDataUUID AS DraftkeyasDraftkey,
cast( ' ' as boole_d ) AS HasDraftEntity,
cast(DraftDocument.ParentDraftKey as sysuuid_x ) AS DraftAdministrativeDataUUID
FROM I_ProductValuation AS ActiveDocument
LEFT OUTER JOIN P_ProductValuationD AS DraftDocument ON /* join condition not captured in parsed metadata */
INNER JOIN P_ProductD AS DraftRootDocument ON /* join condition not captured in parsed metadata */
INNER JOIN I_DraftAdministrativeData AS DraftAdministrativeData ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_ProductValuationD
;
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