VALUATIONLEADINGITEM

CDS View

VALUATIONLEADINGITEM is a CDS View in S/4HANA. It contains 1 fields. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
VALLEADINGITEMWITHGROUPID view inner

Fields (1)

KeyField CDS FieldsUsed in Views
KEY accountingdocumentitem accountingdocumentitem 1
@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":""
}
}*/