R_ProdValnLedgerAccountTP_2
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)
| Source | Alias | Join Type |
|---|---|---|
| I_Productvaluationprices_Union | I_Productvaluationprices_Union | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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