@VDM.viewType: #COMPOSITE
@VDM.private: true
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #XXL,
dataClass: #MIXED
}
define view entity P_HR_CustomerItemPartPmnt as select from I_OperationalAcctgDocItem as PartialPayment
inner many to one join I_StRpJournalEntryHeaderLog as Log
on Log.CompanyCode = PartialPayment.CompanyCode
and Log.AccountingDocument = PartialPayment.AccountingDocument
and Log.FiscalYear = PartialPayment.FiscalYear
{
key Log.StatryRptCategory,
key Log.StatryRptgEntity,
key Log.StatryRptRunID,
key PartialPayment.CompanyCode,
key PartialPayment.InvoiceReference as AccountingDocument,
key PartialPayment.InvoiceReferenceFiscalYear as FiscalYear,
key PartialPayment.InvoiceItemReference as AccountingDocumentItem,
PartialPayment.CompanyCodeCurrency,
/*
Negative amount => partial payment; Positive amount => residual item
*/
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
sum(PartialPayment.AmountInCompanyCodeCurrency) as PartialPaymentAmountInCCCrcy
}
where
PartialPayment.FinancialAccountType ='D'
and PartialPayment.AccountingDocumentCategory <> 'D'
and PartialPayment.AccountingDocumentCategory <> 'M'
and PartialPayment.InvoiceReference is not initial
group by
Log.StatryRptCategory,
Log.StatryRptgEntity,
Log.StatryRptRunID,
PartialPayment.CompanyCode,
PartialPayment.InvoiceReference,
PartialPayment.InvoiceReferenceFiscalYear,
PartialPayment.InvoiceItemReference,
PartialPayment.CompanyCodeCurrency
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_OPERATIONALACCTGDOCITEM",
"I_STRPJOURNALENTRYHEADERLOG"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
P_HR_CustomerItemPartPmnt view_entity