R_ProdValnLedgerAccountTP_2

DDL: R_PRODVALNLEDGERACCOUNTTP_2 Type: view_entity TRANSACTIONAL Package: VDM_MD_PRODUCT_BO_V2

Product Valuation Ledger Account - TP

R_ProdValnLedgerAccountTP_2 is a Transactional CDS View that provides data about "Product Valuation Ledger Account - TP" in SAP S/4HANA. It reads from 1 data source (I_Productvaluationprices_Union) and exposes 17 fields with key fields Product, ValuationArea, ValuationType, CurrencyRole, Ledger. It has 2 associations to related views. Part of development package VDM_MD_PRODUCT_BO_V2.

Data Sources (1)

SourceAliasJoin Type
I_Productvaluationprices_Union I_Productvaluationprices_Union from

Associations (2)

CardinalityTargetAliasCondition
[1..1] R_ProductTP_2 _Product $projection.Product = _Product.Product
[1] E_Productvaluation _ActiveExtension $projection.Product = _ActiveExtension.Product and $projection.ValuationArea = _ActiveExtension.ValuationArea and $projection.ValuationType = _ActiveExtension.ValuationType

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
Search.searchable true view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label Product Valuation Ledger Account - TP view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY Product Product Sold
KEY ValuationArea Valuation Area
KEY ValuationType ValuationType Valuation Type
KEY CurrencyRole CurrencyRole Curr./Val. Type
KEY Ledger Ledger Ledger
ProductPriceControl ProductPriceControl Price control
ProductPriceUnitQuantity PriceUnitQty Price unit
Currency Currency Valuation Crcy
MovingAveragePrice MovingAveragePrice Per. Unit Price
StandardPrice StandardPrice Standard price
CompanyCode CompanyCode Receiver Company Code
BaseUnit _Product BaseUnit Unit of Measure
_Product _Product
_ProductValuation _ProductValuation
_BaseUnitOfMeasure _Product _BaseUnitOfMeasure
_ProdValnPriceControlText _ProdValnPriceControlText
_CurrencyText _CurrencyText

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 R_ProdValnLedgerAccountTP_2.
-- 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 R_ProdValnLedgerAccountTP_2 AS
SELECT
  cast ( Product as productnumber preserving type ) AS Product,
  cast ( ValuationArea as bwkey preserving type ) AS ValuationArea,
  ValuationType,
  CurrencyRole,
  Ledger,
  ProductPriceControl,
  PriceUnitQty AS ProductPriceUnitQuantity,
  Currency,
  MovingAveragePrice,
  StandardPrice,
  CompanyCode,
  _Product.BaseUnit AS BaseUnit,
  _Product._BaseUnitOfMeasure AS _BaseUnitOfMeasure
FROM I_Productvaluationprices_Union
LEFT OUTER JOIN R_ProductTP_2 AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN E_Productvaluation AS _ActiveExtension ON Product = _ActiveExtension.Product AND ValuationArea = _ActiveExtension.ValuationArea AND ValuationType = _ActiveExtension.ValuationType  -- association [1]
;