P_Matval_Manage_Bal
Base View for Mat.Val., Balances
P_Matval_Manage_Bal is a Composite CDS View that provides data about "Base View for Mat.Val., Balances" in SAP S/4HANA. It reads from 5 data sources (R_MatlValnInvtryPerFsclPerdBsc, R_MatlValnInvtryPerFsclPerdBsc, R_MatlValnInvtryPerFsclPerdBsc, P_MatlCtrlRecdLdgrFiscalPeriod, P_MatlCtrlRecdLdgrFiscalPeriod) and exposes 49 fields with key fields CostEstimate, Ledger, CompanyCode, ValuationArea, Material. Part of development package ODATA_MATVAL_MANAGE.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| R_MatlValnInvtryPerFsclPerdBsc | ex | from |
| R_MatlValnInvtryPerFsclPerdBsc | ex | union_all |
| R_MatlValnInvtryPerFsclPerdBsc | ex | union_all |
| P_MatlCtrlRecdLdgrFiscalPeriod | marvld | inner |
| P_MatlCtrlRecdLdgrFiscalPeriod | marvld | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMATVALMGMBAL | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (49)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | R_MatlValnInvtryPerFsclPerdBsc | CostEstimate | Cost EstimateNo |
| KEY | Ledger | |||
| KEY | CompanyCode | R_MatlValnInvtryPerFsclPerdBsc | CompanyCode | Receiver Company Code |
| KEY | ValuationArea | R_MatlValnInvtryPerFsclPerdBsc | ValuationArea | Valuation Area |
| KEY | Material | R_MatlValnInvtryPerFsclPerdBsc | Material | Vehicle Model |
| KEY | period_type | |||
| TotalVltdStockQuantity | ||||
| AmountInCompanyCodeCurrency | ||||
| AmountInGroupCurrency | ||||
| AmountInFreeDefinedCurrency1 | ||||
| AmountInFreeDefinedCurrency2 | ||||
| AmountInFreeDefinedCurrency3 | ||||
| AmountInFreeDefinedCurrency4 | ||||
| AmountInFreeDefinedCurrency5 | ||||
| AmountInFreeDefinedCurrency6 | ||||
| AmountInFreeDefinedCurrency7 | ||||
| CostEstimate | Cost EstimateNo | |||
| KEY | Ledger | |||
| KEY | CompanyCode | R_MatlValnInvtryPerFsclPerdBsc | CompanyCode | Receiver Company Code |
| KEY | ValuationArea | R_MatlValnInvtryPerFsclPerdBsc | ValuationArea | Valuation Area |
| KEY | Material | R_MatlValnInvtryPerFsclPerdBsc | Material | Vehicle Model |
| KEY | period_type | |||
| TotalVltdStockQuantity | ||||
| AmountInCompanyCodeCurrency | ||||
| AmountInGroupCurrency | ||||
| AmountInFreeDefinedCurrency1 | ||||
| AmountInFreeDefinedCurrency2 | ||||
| AmountInFreeDefinedCurrency3 | ||||
| AmountInFreeDefinedCurrency4 | ||||
| AmountInFreeDefinedCurrency5 | ||||
| AmountInFreeDefinedCurrency6 | ||||
| AmountInFreeDefinedCurrency7 | ||||
| CostEstimate | Cost EstimateNo | |||
| KEY | Ledger | |||
| KEY | CompanyCode | R_MatlValnInvtryPerFsclPerdBsc | CompanyCode | Receiver Company Code |
| KEY | ValuationArea | R_MatlValnInvtryPerFsclPerdBsc | ValuationArea | Valuation Area |
| KEY | Material | R_MatlValnInvtryPerFsclPerdBsc | Material | Vehicle Model |
| KEY | period_type | |||
| TotalVltdStockQuantity | ||||
| AmountInCompanyCodeCurrency | ||||
| AmountInGroupCurrency | ||||
| AmountInFreeDefinedCurrency1 | ||||
| AmountInFreeDefinedCurrency2 | ||||
| AmountInFreeDefinedCurrency3 | ||||
| AmountInFreeDefinedCurrency4 | ||||
| AmountInFreeDefinedCurrency5 | ||||
| AmountInFreeDefinedCurrency6 | ||||
| AmountInFreeDefinedCurrency7 | ||||
| AmountInFreeDefinedCurrency8 |
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_Matval_Manage_Bal.
-- 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: PMATVALMGMBAL
CREATE VIEW P_Matval_Manage_Bal AS
SELECT
ex.CostEstimate AS CostEstimate,
cast(ex.Ledger as fis_rldnr preserving type) AS Ledger,
ex.CompanyCode AS CompanyCode,
ex.ValuationArea AS ValuationArea,
ex.Material AS Material,
'LF' AS period_type,
cast (sum(ex.ValuationQuantity) as fin_qtyval) AS TotalVltdStockQuantity,
cast (sum(AmountInCompanyCodeCurrency) as fins_vhcur12) AS AmountInCompanyCodeCurrency,
cast (sum(AmountInGlobalCurrency) as fins_vkcur12) AS AmountInGroupCurrency,
cast (sum(AmountInFreeDefinedCurrency1) as fins_vocur12) AS AmountInFreeDefinedCurrency1,
cast (sum(AmountInFreeDefinedCurrency2) as fins_vvcur12) AS AmountInFreeDefinedCurrency2,
cast (sum(AmountInFreeDefinedCurrency3) as fins_vbcur12) AS AmountInFreeDefinedCurrency3,
cast (sum(AmountInFreeDefinedCurrency4) as fins_vccur12) AS AmountInFreeDefinedCurrency4,
cast (sum(AmountInFreeDefinedCurrency5) as fins_vdcur12) AS AmountInFreeDefinedCurrency5,
cast (sum(AmountInFreeDefinedCurrency6) as fins_vecur12) AS AmountInFreeDefinedCurrency6,
cast (sum(AmountInFreeDefinedCurrency7) as fins_vfcur12) AS AmountInFreeDefinedCurrency7,
cast (sum(AmountInFreeDefinedCurrency8) as fins_vgcur12) AS AmountInFreeDefinedCurrency8
FROM R_MatlValnInvtryPerFsclPerdBsc AS ex
INNER JOIN P_MatlCtrlRecdLdgrFiscalPeriod AS marvld ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): R_MatlValnInvtryPerFsclPerdBsc
;
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