VALUATIONLEADINGITEM

DDL: VALUATIONLEADINGITEM SQL: VALLEADING Type: view

VALUATIONLEADINGITEM is a CDS View in SAP S/4HANA. It reads from 1 data source (fins_cls_wl) and exposes 3 fields with key fields companycode, fiscalyear, ledger.

Data Sources (1)

SourceAliasJoin Type
fins_cls_wl fins_cls_wl from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName VALLEADING view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY companycode companycode
KEY fiscalyear fiscalyear
KEY ledger ledger
@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":""
}
}*/