P_ProductValuationWD

DDL: P_PRODUCTVALUATIONWD SQL: PPRDVALUATIONWD Type: view COMPOSITE Package: VDM_MD_PRODUCT_OBSOLETE

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)

SourceAliasJoin 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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;