R_MatlValnEndgInvtryByKeyDate
Ending Invtry Qty and Amount by Date
R_MatlValnEndgInvtryByKeyDate is a Composite CDS View that provides data about "Ending Invtry Qty and Amount by Date" in SAP S/4HANA. It reads from 2 data sources (R_MatlLdgrCrcyTypeMappg, I_GLAccountLineItemRawData) and exposes 16 fields with key fields CompanyCode, CostEstimate, Ledger, CurrencyRole. Part of development package FINS_ML_VDM.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| R_MatlLdgrCrcyTypeMappg | c | inner |
| I_GLAccountLineItemRawData | m | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_ValidOnDate | fml_date_valid_on |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Ending Invtry Qty and Amount by Date | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_GLAccountLineItemRawData | CompanyCode | Receiver Company Code |
| KEY | CostEstimate | I_GLAccountLineItemRawData | CostEstimate | Cost EstimateNo |
| KEY | Ledger | I_GLAccountLineItemRawData | SourceLedger | Source Ledger |
| KEY | CurrencyRole | R_MatlLdgrCrcyTypeMappg | CurrencyRole | Curr./Val. Type |
| Material | I_GLAccountLineItemRawData | Product | Product Sold | |
| ValuationType | I_GLAccountLineItemRawData | InventoryValuationType | Valuation Type | |
| ValuationArea | I_GLAccountLineItemRawData | ValuationArea | Valuation Area | |
| SalesOrder | I_GLAccountLineItemRawData | InventorySpclStkSalesDocument | ||
| SalesOrderItem | I_GLAccountLineItemRawData | InventorySpclStkSalesDocItm | ||
| Supplier | I_GLAccountLineItemRawData | InventorySpecialStockSupplier | Vendor of Inv. | |
| InvtryValnSpecialStockType | I_GLAccountLineItemRawData | InventorySpecialStockType | Special Stock Type | |
| Currency | R_MatlLdgrCrcyTypeMappg | Currency | Valuation Crcy | |
| ValidOnDate | ||||
| WBSElementInternalID | I_GLAccountLineItemRawData | InvtrySpclStockWBSElmntIntID | ||
| ValuationQuantity | ||||
| UnitOfMeasure | I_GLAccountLineItemRawData | CostSourceUnit | Valuation UoM |
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_MatlValnEndgInvtryByKeyDate.
-- 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.
-- Parameters: P_ValidOnDate : fml_date_valid_on
CREATE VIEW R_MatlValnEndgInvtryByKeyDate AS
SELECT
m.CompanyCode AS CompanyCode,
m.CostEstimate AS CostEstimate,
m.SourceLedger AS Ledger,
c.CurrencyRole AS CurrencyRole,
m.Product AS Material,
m.InventoryValuationType AS ValuationType,
m.ValuationArea AS ValuationArea,
m.InventorySpclStkSalesDocument AS SalesOrder,
m.InventorySpclStkSalesDocItm AS SalesOrderItem,
m.InventorySpecialStockSupplier AS Supplier,
m.InventorySpecialStockType AS InvtryValnSpecialStockType,
c.Currency AS Currency,
$parameters.P_ValidOnDate AS ValidOnDate,
m.InvtrySpclStockWBSElmntIntID AS WBSElementInternalID,
sum(m.ValuationQuantity) AS ValuationQuantity,
m.CostSourceUnit AS UnitOfMeasure
FROM I_GLAccountLineItemRawData AS m
INNER JOIN R_MatlLdgrCrcyTypeMappg AS c ON /* join condition not captured in parsed metadata */
;
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