P_PL_SAFTJournalEntry

DDL: P_PL_SAFTJOURNALENTRY SQL: PSAFTPLJRNLENTRY Type: view COMPOSITE

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

Data Sources (1)

SourceAliasJoin Type
I_JournalEntryItem I_JournalEntryItem from

Annotations (11)

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

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger SourceLedger
KEY CompanyCode CompanyCode
KEY FiscalYear FiscalYear
KEY AccountingDocument AccountingDocument
KEY Ledger Ledger
GLAccount GLAccount
CompanyCodeCurrency CompanyCodeCurrency
TotalGrossAmountInCoCodeCrcy
_JournalEntry _JournalEntry
_Ledger _Ledger
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
_SourceLedger _SourceLedger
_CompanyCodeCurrency _CompanyCodeCurrency
@AbapCatalog.sqlViewName: 'PSAFTPLJRNLENTRY'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED
@ObjectModel.usageType.serviceQuality: #P
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MIXED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view P_PL_SAFTJournalEntry
  as select from I_JournalEntryItem
{
  key SourceLedger                     as SourceLedger,
  key CompanyCode                      as CompanyCode,
  key FiscalYear                       as FiscalYear,
  key AccountingDocument               as AccountingDocument,
  key Ledger                           as Ledger,

      GLAccount,
      @Semantics.currencyCode: true
      CompanyCodeCurrency,
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      sum(AmountInCompanyCodeCurrency) as TotalGrossAmountInCoCodeCrcy,
      _JournalEntry,
      _Ledger,

      //Associations

      _CompanyCode,
      _FiscalYear,
      _SourceLedger,
      _CompanyCodeCurrency
}
where
  DebitCreditCode = 'S'
group by
  SourceLedger,
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  Ledger,
  CompanyCodeCurrency,
  GLAccount