P_StRpBPTaxItem3
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)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryItem | I_JournalEntryItem | from |
| I_Ledger | I_Ledger | inner |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA