C_GLDisplayItemChangeLog

DDL: C_GLDISPLAYITEMCHANGELOG SQL: CGLITEMCHGLOG Type: view CONSUMPTION Package: ODATA_GL_OVP

Display G/L Item ChangeLog Ovw

C_GLDisplayItemChangeLog is a Consumption CDS View that provides data about "Display G/L Item ChangeLog Ovw" in SAP S/4HANA. It reads from 1 data source (P_GLDisplayItemChangeLog) and exposes 18 fields with key fields Ledger, AccountingDocument, FiscalYear, DatabaseTable, DatabaseTableField. Part of development package ODATA_GL_OVP.

Data Sources (1)

SourceAliasJoin Type
P_GLDisplayItemChangeLog P_GLDisplayItemChangeLog from

Parameters (1)

NameTypeDefault
P_IntervalStartDate dats

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CGLITEMCHGLOG view
EndUserText.label Display G/L Item ChangeLog Ovw view
AbapCatalog.compiler.compareFilter true view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view

Fields (18)

KeyFieldSource TableSource FieldDescription
lookupEntityP_GLFiscalYearByKeyDate
resultElementIntervalStartDate
KEY Ledger Ledger
KEY AccountingDocument AccountingDocument
KEY FiscalYear FiscalYear
KEY DatabaseTable DatabaseTable
KEY DatabaseTableField DatabaseTableField
KEY ChangeDocument ChangeDocument
LastChangeDate LastChangeDate
LastChangeTime LastChangeTime
NewFieldContent NewFieldContent
OldFieldContent OldFieldContent
UserName UserName
FreeDefinedAttribute01Label
JournalEntryItemText
FreeDefinedAttribute02Label
LastChangeDateYearMonthName
DatabaseTableFieldText
@AbapCatalog.sqlViewName: 'CGLITEMCHGLOG'
@EndUserText.label: 'Display G/L Item ChangeLog Ovw'
@AbapCatalog.compiler.compareFilter: true
@Metadata.ignorePropagatedAnnotations: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #MIXED

@Consumption.dbHints: ['USE_HEX_PLAN']
//@Consumption.dbHints: ['NO_SUBPLAN_SHARING','USE_OLAP_PLAN','NO_JOIN_THRU_JOIN','NO_CYCLIC_JOIN','NO_JOIN_THRU_AGGR']


@VDM.viewType: #CONSUMPTION

@UI.presentationVariant: [{
    qualifier: 'presentVar',
  sortOrder: [
    { by: 'LastChangeDate', direction: #DESC },
    { by: 'LastChangeTime', direction: #DESC },
    { by: 'ChangeDocument', direction: #DESC } ]
    }]

define view C_GLDisplayItemChangeLog
  with parameters
    @Consumption.hidden: true
    @Consumption.derivation: {
      lookupEntity : 'P_GLFiscalYearByKeyDate',
      resultElement : 'IntervalStartDate',
      binding : [
      {
        targetParameter : 'P_KeyDate',
        type :  #SYSTEM_FIELD,
        value : '#SYSTEM_DATE'
      }]
    }
    P_IntervalStartDate : dats
  as select from P_GLDisplayItemChangeLog //I_JournalEntryHistory //

{
      @Consumption.semanticObject: 'AccountingJournalList'
      @UI.identification: {
        importance: #HIGH,
        type: #FOR_INTENT_BASED_NAVIGATION,
        semanticObjectAction: 'displayAuditJournal'
      }
  key CompanyCode,
  key Ledger,
      //      GLAccount,

  key AccountingDocument,
  key FiscalYear,
  key DatabaseTable,
  key DatabaseTableField,
  key ChangeDocument,
      //  key ChangeDocTableKey,

      //  key AccountingDocumentItem,

      LastChangeDate,
      LastChangeTime,
      NewFieldContent,
      OldFieldContent,
      @UI.lineItem:[{position: 20}]
      UserName,

      @UI.lineItem:[{position: 40}]
      cast ('' as abap.char(50)) as FreeDefinedAttribute01Label,
      @UI.lineItem:[{position: 10}]
      //      cast ('' as abap.char(31))       as GLAccountInfo,

      cast ('' as abap.char(25)) as JournalEntryItemText,      
      
      @UI.lineItem:[{position: 30}]
      cast ('' as abap.char(30)) as FreeDefinedAttribute02Label,
      @UI.lineItem:[{position: 60}]
      cast ('' as abap.char(20)) as LastChangeDateYearMonthName,
      @UI.lineItem:[{position: 50}]
      cast ('' as abap.char(60)) as DatabaseTableFieldText
}
where
      CompanyCode        <> ''
  and AccountingDocument <> ''
  and Ledger             <> ''
  and LastChangeDate     >  :P_IntervalStartDate
group by
  CompanyCode,
  Ledger,
  AccountingDocument,
  LastChangeDate,
  LastChangeTime,
  NewFieldContent,
  OldFieldContent,
  UserName,
  DatabaseTableField,
  DatabaseTable,
  FiscalYear,
  ChangeDocument
//  ChangeDocTableKey,

//  AccountingDocumentItem