P_MLVALAREAMAXPERIOD

CDS View

P_MLVALAREAMAXPERIOD is a CDS View in S/4HANA. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
P_InvPricesMaxFis view from COMPOSITE
@AbapCatalog.sqlViewName: 'PMXFISCINVPPR'
@VDM.private: true
@VDM.viewType: #COMPOSITE
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.preserveKey:true 

//@EndUserText.label: 'Manage MAX FiscalYearPeriod for Inventory Price'

define view P_MLValAreaMaxPeriod with parameters
    P_CalendarDate : calendardate

  as select from I_MLInventoryFiscalPeriod(P_CalendarDate :
                     $parameters.P_CalendarDate) as hd
    inner join   I_MLInventoryPriceRawData      as cr on  cr.CostEstimate     =  hd.CostEstimate
                                                       and cr.FiscalYearPeriod <= hd.FiscalYearPeriod

{
  key  hd.CostEstimate,
       max(cr.FiscalYearPeriod ) as ToFiscalYearPeriod,
       ValuationArea

}
group by
  hd.CostEstimate,
  ValuationArea
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MLINVENTORYFISCALPERIOD",
"I_MLINVENTORYPRICERAWDATA"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/