P_StRpBPTaxItem3

DDL: P_STRPBPTAXITEM3 SQL: PSTRPBPTAXITEM3 Type: view COMPOSITE

P_StRpBPTaxItem3 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_JournalEntryItem, I_Ledger) and exposes 4 fields with key fields CompanyCode, FiscalYear, AccountingDocument.

Data Sources (2)

SourceAliasJoin Type
I_JournalEntryItem I_JournalEntryItem from
I_Ledger I_Ledger inner

Annotations (7)

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

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_JournalEntryItem CompanyCode
KEY FiscalYear I_JournalEntryItem FiscalYear
KEY AccountingDocument I_JournalEntryItem AccountingDocument
FinancialAccountTypeCount
@AbapCatalog.sqlViewName: 'PSTRPBPTAXITEM3'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.private: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE

define view P_StRpBPTaxItem3
  as select from    I_JournalEntryItem
    inner join      I_Ledger                   on  I_JournalEntryItem.Ledger = I_Ledger.Ledger
                                               and I_Ledger.IsLeadingLedger  = 'X'

{
  key I_JournalEntryItem.CompanyCode,
  key I_JournalEntryItem.FiscalYear,
  key I_JournalEntryItem.AccountingDocument,
  count(distinct I_JournalEntryItem.FinancialAccountType) as FinancialAccountTypeCount
}
where
  (
       I_JournalEntryItem.FinancialAccountType =  'K'
    or I_JournalEntryItem.FinancialAccountType =  'D'
  )
--  and  I_JournalEntryItem.TaxCode              <> ''
group by
  I_JournalEntryItem.CompanyCode,
  I_JournalEntryItem.FiscalYear,
  I_JournalEntryItem.AccountingDocument 
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_JOURNALENTRYITEM",
"I_LEDGER"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/