P_Matval_Manage_Max

DDL: P_MATVAL_MANAGE_MAX SQL: PMATVALMGMMAX Type: view BASIC

P_Matval_Manage_Max is a Basic CDS View in SAP S/4HANA. It reads from 15 data sources and exposes 16 fields with key fields CostEstimate, ValuationArea, period_type, ValuationArea, period_type.

Data Sources (15)

SourceAliasJoin Type
P_Matval_Manage_Max_Hdpp ckml inner
P_Matval_Manage_Max_Hdpp ckml inner
P_Matval_Manage_Max_Hdpp ckml inner
ckmlhd hd inner
ckmlhd hd inner
ckmlhd hd inner
marv mv inner
marv mv inner
marv mv inner
R_MatlPriceDataMigrationStatus tf inner
R_MatlPriceDataMigrationStatus tf inner
R_MatlPriceDataMigrationStatus tf inner
t001k tk from
t001k tk union_all
t001k tk union_all

Annotations (5)

NameValueLevelField
VDM.private true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName PMATVALMGMMAX view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY CostEstimate CostEstimate Cost EstimateNo
KEY ValuationArea ValuationArea Valuation Area
KEY period_type
MaxFiscPerCKMLPP
PeriodTypeFiscalYear marv lfgja FYear last per.
CostEstimatekeyCostEstimate
KEY ValuationArea ValuationArea Valuation Area
KEY period_type
MaxFiscPerCKMLPP
PeriodTypeFiscalYear marv vmgja FYear last per.
CostEstimatekeyCostEstimate
KEY ValuationArea ValuationArea Valuation Area
KEY period_type
MaxFiscPerCKMLPP
PeriodTypeFiscalYear marv vjgja FYear last per.
PeriodTypeFiscalPeriod

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_Max.
-- 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: PMATVALMGMMAX

CREATE VIEW P_Matval_Manage_Max AS
SELECT
  CostEstimate,
  ValuationArea,
  'LF' AS period_type,
  max(FiscalYearPeriod) AS MaxFiscPerCKMLPP,
  mv.lfgja AS PeriodTypeFiscalYear,
  concat('0',mv.lfmon) as PeriodTypeFiscalPeriod AS CostEstimatekeyCostEstimate,
  concat('0',mv.vjmon) AS PeriodTypeFiscalPeriod
FROM t001k AS tk
INNER JOIN R_MatlPriceDataMigrationStatus AS tf ON /* join condition not captured in parsed metadata */
INNER JOIN P_Matval_Manage_Max_Hdpp AS ckml ON /* join condition not captured in parsed metadata */
INNER JOIN marv AS mv ON /* join condition not captured in parsed metadata */
INNER JOIN ckmlhd AS hd ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): t001k
;