P_Matval_Manage_Bal

DDL: P_MATVAL_MANAGE_BAL SQL: PMATVALMGMBAL Type: view COMPOSITE Package: ODATA_MATVAL_MANAGE

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)

Annotations (6)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;