P_SAFTGLItems

DDL: P_SAFTGLITEMS SQL: PSAFTGLITEMS Type: view COMPOSITE

P_SAFTGLItems is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_JournalEntryItem) and exposes 7 fields with key fields SourceLedger, CompanyCode, AccountingDocument, AccountingDocumentItem, FiscalYear.

Data Sources (1)

SourceAliasJoin Type
I_JournalEntryItem GLEntryItem from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PSAFTGLITEMS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger I_JournalEntryItem SourceLedger
KEY CompanyCode I_JournalEntryItem CompanyCode
KEY AccountingDocument I_JournalEntryItem AccountingDocument
KEY AccountingDocumentItem I_JournalEntryItem AccountingDocumentItem
KEY FiscalYear I_JournalEntryItem FiscalYear
KEY Ledger I_JournalEntryItem Ledger
LedgerGLLineItem
@AbapCatalog.sqlViewName: 'PSAFTGLITEMS'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.private: true
@VDM.viewType: #COMPOSITE 
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass:  #MIXED
@ObjectModel.usageType.serviceQuality: #P
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking : #NOT_REQUIRED
define view P_SAFTGLItems as select from I_JournalEntryItem as GLEntryItem    
       
{
  key GLEntryItem.SourceLedger,
  key GLEntryItem.CompanyCode,
  key GLEntryItem.AccountingDocument,
  key GLEntryItem.AccountingDocumentItem,
  key GLEntryItem.FiscalYear,
  key GLEntryItem.Ledger,
  max(GLEntryItem.LedgerGLLineItem) as LedgerGLLineItem
  
} group by GLEntryItem.CompanyCode,
           GLEntryItem.AccountingDocument,
           GLEntryItem.AccountingDocumentItem,
           GLEntryItem.SourceLedger,
           GLEntryItem.FiscalYear,
           GLEntryItem.Ledger
           

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_JOURNALENTRYITEM"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/