VALUATIONLEADINGITEM

DDL: VALUATIONLEADINGITEM SQL: VALLEADING Type: view

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

Data Sources (1)

SourceAliasJoin Type
VALUATIONREMAINVALWL VALUATIONREMAINVALWL 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 (4)

KeyFieldSource TableSource FieldDescription
KEY companycode companycode
KEY Fiscalyear Fiscalyear
KEY ledger ledger
Jrnlperiodendclosingrunloguuid Jrnlperiodendclosingrunloguuid
@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 VALUATIONREMAINVALWL
{
        //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,
        finclosinglineitemprocessstep
}
where
  accountingdocumentitem is not initial
group by
  companycode,
  Fiscalyear,
  accountingdocument,
  accountingdocumentitem,
  ledger,
  Jrnlperiodendclosingrunloguuid,
  finclosinglineitemprocessstep