@AbapCatalog.sqlViewName: 'VALLEADING'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel: {
usageType.serviceQuality: #D,
usageType.sizeCategory: #XXL,
usageType.dataClass: #MIXED }
@ClientHandling.algorithm: #SESSION_VARIABLE
define view VALUATIONLEADINGITEM
as select from fins_cls_wl
{
//select the item with minimal docln in a splitted document group with same rburks, gjahr, buzei, belnr
key companycode,
key fiscalyear,
key accountingdocument,
key accountingdocumentitem,
key ledger,
min( ledgergllineitem ) as ledgergllineitem,
jrnlperiodendclosingrunloguuid
}
where
accountingdocumentitem is not initial
group by
companycode,
fiscalyear,
accountingdocument,
accountingdocumentitem,
ledger,
jrnlperiodendclosingrunloguuid
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"FINS_CLS_WL"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/