P_SAFTGLMaxCustomer

DDL: P_SAFTGLMAXCUSTOMER SQL: PSAFTGLMAXCUST Type: view COMPOSITE Package: GLO_FIN_IS_SAFT_GEN

SAFT GL Max Customer

P_SAFTGLMaxCustomer is a Composite CDS View that provides data about "SAFT GL Max Customer" in SAP S/4HANA. It reads from 1 data source (I_JournalEntryItem) and exposes 12 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument, Ledger. Part of development package GLO_FIN_IS_SAFT_GEN.

Data Sources (1)

SourceAliasJoin Type
I_JournalEntryItem I_JournalEntryItem from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PSAFTGLMAXCUST 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 (12)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger SourceLedger
KEY CompanyCode CompanyCode
KEY FiscalYear FiscalYear
KEY AccountingDocument AccountingDocument
KEY Ledger Ledger
LedgerGLLineItem
Customer
_SourceLedger _SourceLedger
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
_JournalEntry _JournalEntry
_Ledger _Ledger
@AbapCatalog.sqlViewName: 'PSAFTGLMAXCUST'
@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_SAFTGLMaxCustomer as select from I_JournalEntryItem
{
  @ObjectModel.foreignKey.association: '_SourceLedger'
  key SourceLedger as SourceLedger,
  @ObjectModel.foreignKey.association: '_CompanyCode'
  key CompanyCode as CompanyCode,
  @ObjectModel.foreignKey.association: '_FiscalYear'
  key FiscalYear as FiscalYear,
  @ObjectModel.foreignKey.association: '_JournalEntry'
  key AccountingDocument as AccountingDocument,
  @ObjectModel.foreignKey.association: '_Ledger'
  key Ledger as Ledger,
  max(LedgerGLLineItem) as LedgerGLLineItem,
  max(Customer) as Customer,
  
  _SourceLedger,
  _CompanyCode,
  _FiscalYear,
  _JournalEntry,
  _Ledger
  
} where FinancialAccountType = 'D'

group by SourceLedger,
         CompanyCode,
         FiscalYear,
         AccountingDocument,
         Ledger