@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
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ACCOUNTINGDOCUMENT",
"I_GLACCOUNTLINEITEM"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/