I_TransBsdMatlValueChainItem
Transaction-Based Material Value Chain Item
I_TransBsdMatlValueChainItem (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Public Edition with built-in and side-by-side extension capabilities.
MaterialValuation · Accounting and Financial Close
I_TransBsdMatlValueChainItem is a Composite CDS View (Fact) that provides data about "Transaction-Based Material Value Chain Item" in SAP S/4HANA. It reads from 1 data source (P_TransacBsdMatlInvtry) and exposes 39 fields with key fields CostEstimate, CurrencyRole, Ledger, FiscalYearPeriod, MaterialLedgerCategory. It has 5 associations to related views. Part of development package FCML4H_DISPLAY.
SAP Help Documentation
| Category | CDS Views for Inventory Accounting |
|---|
This CDS view displays material inventory values for the materials with price determination control 2 within a selected range of periods. This CDS view provides the data to answer the following business questions: What were the inventory amounts and valuation quantities grouped at the MaterialLedgerCategory / Process Category ProcurementAlternative / ProductionProcess / MovementType / GLAccount level within the selected range of periods? Note When using this CDS view, note that: It only contains materials with Material Price Determination Control: 2 (Transaction-Based) . Signs are reversed in columns ( TotalVltdStockQuantity , InventoryAmtInDspCrcy , InvtryTransacAmtInDisplayCrcy , PriceDiffAmtInDisplayCrcy , ExchRateDiffAmtInDspCurrency ) of Consumption records ( MaterialLedgerCategory = VN ). Signs are reversed in the InvtryTransacAmtInDisplayCrcy column in Ending Inventory records ( MaterialLedgerCategory = EB ). To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: BUKRS_GLRLDNR_GLRRCTY_GLRVERS ( Company Code / Ledger / Record Type / Version ) BWKEY (Valuation Area) MTART (Material Type) You can use the Display Restriction Types app to find out in which business catalogs these restriction types are included. The CDS View is included in the business catalog SAP_A4C_BC_DEV_TST_FIN_IA0_PC .
Structure
Parameters The parameters of the CDS view are as follows: P_FromFiscalYearPeriod P_ToFiscalYearPeriod These parameters are used to define the fiscal period range. Example P_FromFiscalYearPeriod = 2024001 P_ToFiscalYearPeriod = 2024006 Important Fields Important fields in this view include the following: Field Attribute Field Name Description Key CostEstimate Cost Estimate Number Key CurrencyRole Currency/Valuation Key Ledger Ledger Key FiscalYearPeriod Fiscal Year Period Key MaterialLedgerCategory Material Ledger Category Key ProcessCategory Process Category Key MatlLdgrDocIsCostingRelevant Material Ledger Document Is Costing Relevant Key ProcurementAlternative Procurement Alternative/Process Key ProductionProcess Production Process Key MovementType Movement Type Key GLAccount General Ledger Account Attribute PriceDeterminationControl Material Price Determination: Control Attribute ValuationArea Valuation Area Attribute Material Material Attribute InventoryValuationType Valuation Type Attribute SalesOrder SD Document Attribute SalesOrderItem Item (SD) Attribute InventorySpecialStockType Special Stock Attribute Supplier Supplier Attribute WBSElementExternalID WBS Element Text MaterialLedgerCategoryText Material Ledger Category Text Text ProcessCategoryName Process Category Text Text MovementTypeName Movement Type Text Text GLAccountName General Ledger Account Name Text InventorySpecialStockTypeName Special Stock Description Value TotalVltdStockQuantity Quantity Unit ValuationQuantityUnit Quantity Unit Value InventoryAmtInDspCrcy Actual Value Value InvtryTransacAmtInDisplayCrcy Preliminary Value Value PriceDiffAmtInDisplayCrcy Price Difference Value ExchRateDiffAmtInDspCurrency Exch.Rate Diff. Unit Currency Currency Attribute ControllingArea Controlling Area Attribute ControllingValuationType Valuation View
SAP API Hub
| Category | Composite |
|---|---|
| State | C1 |
| Line of Business | Accounting and Financial Close |
| Application Component | CO-PC-ACT-2CL |
| Capabilities | Data Source for Data Extraction,Data Source in SQL Select,Data Source for Defining CDS Entities |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Accounting and Financial Close for SAP S/4HANA Cloud Public Edition |
| Description | <p>This CDS view displays material inventory values for the materials with price determination control 2 within a selected range of periods.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>What were the inventory amounts and valuation quantities grouped at the MaterialLedgerCategory/Process CategoryProcurementAlternative/ProductionProcess/MovementType/GLAccount level within the selected range of periods?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_TransacBsdMatlInvtry | P_TransacBsdMatlInvtry | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_FromFiscalYearPeriod | fml_fyearperiod_from | |
| P_ToFiscalYearPeriod | fml_fyearperiod_to |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Product | _Product | $projection.Material = _Product.Product |
| [0..1] | I_Plant | _Plant | $projection.ValuationArea = _Plant.Plant |
| [1..1] | I_Ledger | _Ledger | $projection.Ledger = _Ledger.Ledger |
| [1..1] | I_Currency | _Currency | $projection.Currency = _Currency.Currency |
| [1..1] | I_UnitOfMeasure | _QuantityUnit | $projection.ValuationQuantityUnit = _QuantityUnit.UnitOfMeasure |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_CUBE | view | |
| ObjectModel.sapObjectNodeType.name | MaterialValuation | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.dataCategory | #FACT | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Transaction-Based Material Value Chain Item | view |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | CostEstimate | Cost Estimate Number for Cost Est. w/o Qty Structure | |
| KEY | CurrencyRole | CurrencyRole | External Currency Type and Valuation View | |
| KEY | Ledger | Ledger | Ledger in General Ledger Accounting | |
| KEY | FiscalYearPeriod | Fiscal Year + Fiscal Period | ||
| KEY | MaterialLedgerCategory | MaterialLedgerCategory | Material Ledger Category | |
| KEY | ProcessCategory | ProcessCategory | Process Category | |
| KEY | MatlLdgrDocIsCostingRelevant | MatlLdgrDocIsCostingRelevant | Costing Document | |
| KEY | ProcurementAlternative | ProcurementAlternative | Procurement Alternative/Process | |
| KEY | ProductionProcess | ProductionProcess | Production Process | |
| KEY | MovementType | MovementType | Movement Type (Inventory Management) | |
| KEY | GLAccount | GLAccount | G/L Account Number | |
| PriceDeterminationControl | PriceDeterminationControl | Material Price Determination: Control | ||
| ValuationArea | ValuationArea | Valuation Area | ||
| Material | Material | Material Number | ||
| InventoryValuationType | InventoryValuationType | Valuation Type | ||
| SalesOrder | SalesOrder | Sales and Distribution Document Number | ||
| SalesOrderItem | SalesOrderItem | Item number of the SD document | ||
| InventorySpecialStockType | InventorySpecialStockType | Special Stock Indicator | ||
| Supplier | Supplier | Account Number of Supplier | ||
| WBSElementExternalID | WBSElementExternalID | Work Breakdown Structure Element (WBS Element) Edited | ||
| MaterialLedgerCategoryText | MaterialLedgerCategoryText | Material Ledger Category Text | ||
| ProcessCategoryName | ProcessCategoryName | Process Category Text | ||
| GoodsMovementTypeName | GoodsMovementTypeName | Movement Type Text (Inventory Management) | ||
| GLAccountName | GLAccountName | G/L Account Name | ||
| InventorySpecialStockTypeName | InventorySpecialStockTypeName | Special Stock Type Name | ||
| TotalVltdStockQuantity | TotalVltdStockQuantity | Transaction Quantity in Valuation Quantity Unit of Mesure | ||
| ValuationQuantityUnit | ValuationQuantityUnit | Quantity Unit for Valuation | ||
| InventoryAmtInDspCrcy | InventoryAmtInDspCrcy | Actual Value | ||
| InvtryTransacAmtInDisplayCrcy | InvtryTransacAmtInDisplayCrcy | Preliminary Value | ||
| PriceDiffAmtInDisplayCrcy | PriceDiffAmtInDisplayCrcy | Price Difference | ||
| ExchRateDiffAmtInDspCurrency | ExchRateDiffAmtInDspCurrency | Exchange Rate Difference | ||
| Currency | Currency | Valuation Crcy | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| ControllingValuationType | ControllingValuationType | Valuation View (for Transfer Prices) | ||
| _Product | _Product | |||
| _Plant | _Plant | |||
| _Ledger | _Ledger | |||
| _Currency | _Currency | |||
| _QuantityUnit | _QuantityUnit |
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 I_TransBsdMatlValueChainItem.
-- 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_FromFiscalYearPeriod : fml_fyearperiod_from, P_ToFiscalYearPeriod : fml_fyearperiod_to
CREATE VIEW I_TransBsdMatlValueChainItem AS
SELECT
CostEstimate,
CurrencyRole,
Ledger,
cast( FiscalYearPeriod as fins_fyearperiod ) AS FiscalYearPeriod,
MaterialLedgerCategory,
ProcessCategory,
MatlLdgrDocIsCostingRelevant,
ProcurementAlternative,
ProductionProcess,
MovementType,
GLAccount,
PriceDeterminationControl,
ValuationArea,
Material,
InventoryValuationType,
SalesOrder,
SalesOrderItem,
InventorySpecialStockType,
Supplier,
WBSElementExternalID,
MaterialLedgerCategoryText,
ProcessCategoryName,
GoodsMovementTypeName,
GLAccountName,
InventorySpecialStockTypeName,
TotalVltdStockQuantity,
ValuationQuantityUnit,
InventoryAmtInDspCrcy,
InvtryTransacAmtInDisplayCrcy,
PriceDiffAmtInDisplayCrcy,
ExchRateDiffAmtInDspCurrency,
Currency,
ControllingArea,
ControllingValuationType
FROM P_TransacBsdMatlInvtry
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON ValuationArea = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_Ledger AS _Ledger ON Ledger = _Ledger.Ledger -- association [1..1]
LEFT OUTER JOIN I_Currency AS _Currency ON Currency = _Currency.Currency -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _QuantityUnit ON ValuationQuantityUnit = _QuantityUnit.UnitOfMeasure -- association [1..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