@AbapCatalog:
{
sqlViewName: 'PMNTOBJSTLASTCHG',
preserveKey: true,
compiler.compareFilter:true
}
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view P_MaintObjStatusLatestChg
-- Select the highest change number of a status object / code / inactive
as select from I_StatusObjectStatusChange_2
{
key StatusObject,
key StatusCode,
StatusIsInactive,
max(StatusObjectStatusChangeNumber) as StatusObjectStatusChangeNumber
}
group by
StatusObject,
StatusCode,
StatusIsInactive
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_STATUSOBJECTSTATUSCHANGE_2"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/