//@EndUserText.label : 'Technical view '
@VDM.private: true
@VDM.viewType: #COMPOSITE
@AbapCatalog.sqlViewName : 'PFIAPVNDROPITM1'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
define view P_APVendorOpenItems1
as select from
P_APVendorOpenItems0 as AccountingDocumentItem
inner join
I_ReceivablesPayablesItem as GLAcctItems
on
AccountingDocumentItem.CompanyCode = GLAcctItems.CompanyCode
and AccountingDocumentItem.AccountingDocument = GLAcctItems.AccountingDocument
and AccountingDocumentItem.FiscalYear = GLAcctItems.FiscalYear
{
key AccountingDocumentItem.CompanyCode,
key AccountingDocumentItem.AccountingDocument,
key AccountingDocumentItem.FiscalYear,
key AccountingDocumentItem.AccountingDocumentItem,
AccountingDocumentItem.AmountInCompanyCodeCurrency,
AccountingDocumentItem.AmountInTransactionCurrency,
AccountingDocumentItem.DocumentCurrency,
AccountingDocumentItem.InvoiceReference,
AccountingDocumentItem.InvoiceReferenceFiscalYear,
AccountingDocumentItem.InvoiceItemReference,
AccountingDocumentItem.FollowOnDocumentType,
// AccountingDocumentItem.DebitCreditCode,
AccountingDocumentItem.Supplier,
AccountingDocumentItem.SpecialGLTransactionType,
AccountingDocumentItem.CompanyCodeCurrency,
_AccountingDocumentHeader,
_DocumentCurrency
}
where (AccountingDocumentItem.ClearingAccountingDocument = '')
and (AccountingDocumentItem.FinancialAccountType = 'K')
and ( not AccountingDocumentItem.SpecialGLTransactionType = 'A')
and (AccountingDocumentItem.AccountingDocumentCategory = '')
and (AccountingDocumentItem.IsUsedInPaymentTransaction = 'X')
and ( not AccountingDocumentItem.InvoiceReference = '')
and ( not (AccountingDocumentItem.FollowOnDocumentType = '' or AccountingDocumentItem.FollowOnDocumentType = 'V'))
and ( not AccountingDocumentItem.Supplier = '')
and (GLAcctItems.FinancialAccountType = 'S')
and ((GLAcctItems.TransactionTypeDetermination = '' or GLAcctItems.TransactionTypeDetermination = 'ZAH'))
and (GLAcctItems.AccountingDocumentCategory = '')
;
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_RECEIVABLESPAYABLESITEM",
"P_APVENDOROPENITEMS0"
],
"ASSOCIATED":
[
"I_ACCOUNTINGDOCUMENT",
"I_CURRENCY"
],
"BASE":
[
"P_APVENDOROPENITEMS0"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
P_APVendorOpenItems1 view