P_PL_SAFTMapTaxCode
P_PL_SAFTMapTaxCode is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_JournalEntry, I_OperationalAcctgDocItem, P_PL_SAFTINVOICETAXD) and exposes 5 fields with key fields CompanyCode, AccountingDocument, FiscalYear.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntry | Entry | from |
| I_OperationalAcctgDocItem | Item | inner |
| P_PL_SAFTINVOICETAXD | Tax | inner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPLSAFTMAPTXCD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_JournalEntry | CompanyCode | |
| KEY | AccountingDocument | I_JournalEntry | AccountingDocument | |
| KEY | FiscalYear | I_JournalEntry | FiscalYear | |
| AmountInTransactionCurrency | ||||
| AmountInCompanyCodeCurrency |
@AbapCatalog.sqlViewName: 'PPLSAFTMAPTXCD'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #COMPOSITE
@VDM.private: true
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #X
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_PL_SAFTMapTaxCode
as select from I_JournalEntry as Entry
inner join I_OperationalAcctgDocItem as Item on Item.CompanyCode = Entry.CompanyCode
and Item.AccountingDocument = Entry.AccountingDocument
and Item.FiscalYear = Entry.FiscalYear
and Item.FinancialAccountType <> 'D'
inner join P_PL_SAFTINVOICETAXD as Tax on Tax.CompanyCode = Item.CompanyCode
and Tax.AccountingDocument = Item.AccountingDocument
and Tax.FiscalYear = Item.FiscalYear
and Tax.TaxCode = Item.TaxCode
{
key Entry.CompanyCode,
key Entry.AccountingDocument,
key Entry.FiscalYear,
sum(AmountInTransactionCurrency) as AmountInTransactionCurrency,
sum(AmountInCompanyCodeCurrency) as AmountInCompanyCodeCurrency
// Tax.PL_SAFTTaxPercentageCode
}
group by
Entry.CompanyCode,
Entry.AccountingDocument,
Entry.FiscalYear
// Tax.PL_SAFTTaxPercentageCode
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