P_JP_ARDocumentHeaderList

DDL: P_JP_ARDOCUMENTHEADERLIST SQL: PJPARDOCHD Type: view COMPOSITE

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

Data Sources (1)

SourceAliasJoin Type
I_AccountingDocument Header inner

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PJPARDOCHD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger SourceLedger
KEY CompanyCode I_GLAccountLineItem CompanyCode
KEY FiscalYear I_GLAccountLineItem FiscalYear
KEY AccountingDocument I_GLAccountLineItem AccountingDocument
KEY Ledger I_GLAccountLineItem Ledger
Customer I_GLAccountLineItem Customer
AccountingDocumentHeaderText I_AccountingDocument AccountingDocumentHeaderText
@AbapCatalog.sqlViewName: 'PJPARDOCHD'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_JP_ARDocumentHeaderList
  as select distinct from I_GLAccountLineItem  as I_GLAccountLineItem
    inner join            I_AccountingDocument as Header on  I_GLAccountLineItem.CompanyCode        = Header.CompanyCode
                                                         and I_GLAccountLineItem.FiscalYear         = Header.FiscalYear
                                                         and I_GLAccountLineItem.AccountingDocument = Header.AccountingDocument
{
  key SourceLedger,
  key I_GLAccountLineItem.CompanyCode,
  key I_GLAccountLineItem.FiscalYear,
  key I_GLAccountLineItem.AccountingDocument,
  key I_GLAccountLineItem.Ledger,
      I_GLAccountLineItem.Customer,
      Header.AccountingDocumentHeaderText
}
where
      FinancialAccountType                   =  'D'
  and SpecialGLCode                          =  ''
  and I_GLAccountLineItem.AccountingDocument <> I_GLAccountLineItem.ClearingAccountingDocument
  and ( I_GLAccountLineItem.IsReversed = '' and I_GLAccountLineItem.IsReversal = '' )
  and FollowOnDocumentType is initial