P_PL_SAFTTaxItemAgg
SAF-T PL Tax Item Basic
P_PL_SAFTTaxItemAgg is a Composite CDS View that provides data about "SAF-T PL Tax Item Basic" in SAP S/4HANA. It reads from 1 data source (P_PL_SAFTTaxItemBasicAgg) and exposes 34 fields with key fields TaxType, CompanyCode, AccountingDocument, FiscalYear. It has 1 association to related views. Part of development package GLO_FIN_IS_SAFT_PL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_PL_SAFTTaxItemBasicAgg | a | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Country | _Country | $projection.BusinessPartnerCountry = _Country.Country |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPLSAFTTAXITMAGG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TaxType | P_PL_SAFTTaxItemBasicAgg | TaxType | Tax Type |
| KEY | CompanyCode | P_PL_SAFTTaxItemBasicAgg | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | P_PL_SAFTTaxItemBasicAgg | AccountingDocument | Journal Entry |
| KEY | FiscalYear | P_PL_SAFTTaxItemBasicAgg | FiscalYear | G/L Fiscal Year |
| PL_SAFTTaxAmountBox | P_PL_SAFTTaxItemBasicAgg | PL_SAFTTaxAmountBox | ||
| PL_SAFTBaseAmountBoxMultiple | P_PL_SAFTTaxItemBasicAgg | PL_SAFTBaseAmountBoxMultiple | ||
| PL_SAFTDocumentType | P_PL_SAFTTaxItemBasicAgg | PL_SAFTDocumentType | ||
| PL_SAFTTaxItemHasMarginAmount | P_PL_SAFTTaxItemBasicAgg | PL_SAFTTaxItemHasMarginAmount | ||
| PL_SAFTAddlClassification | P_PL_SAFTTaxItemBasicAgg | PL_SAFTAddlClassification | ||
| PL_SAFTInvcExclRsnFromTotals | P_PL_SAFTTaxItemBasicAgg | PL_SAFTInvcExclRsnFromTotals | ||
| TaxReportingDate | P_PL_SAFTTaxItemBasicAgg | TaxReportingDate | Tax Reporting Date | |
| TaxReturnCountry | P_PL_SAFTTaxItemBasicAgg | TaxReturnCountry | Reporting C/R | |
| TaxCalculationProcedure | P_PL_SAFTTaxItemBasicAgg | TaxCalculationProcedure | Tax Procedure | |
| Customer | P_PL_SAFTTaxItemBasicAgg | Customer | Sold-to Party | |
| Supplier | P_PL_SAFTTaxItemBasicAgg | Supplier | Supplier | |
| ReferenceDocumentType | P_PL_SAFTTaxItemBasicAgg | ReferenceDocumentType | Reference Document Type | |
| OriginalReferenceDocument | P_PL_SAFTTaxItemBasicAgg | OriginalReferenceDocument | Reference Key | |
| DocumentItemText | t | DocumentItemText | Text | |
| BusinessPartnerCountry | P_PL_SAFTTaxItemBasicAgg | BusinessPartnerCountry | BP Ctry/Reg. | |
| VATRegistration | P_PL_SAFTTaxItemBasicAgg | VATRegistration | VAT Registration No. | |
| BusinessPartnerName | P_PL_SAFTTaxItemBasicAgg | BusinessPartnerName | Extracted Customer Name | |
| CustomerSupplierAddress | P_PL_SAFTTaxItemBasicAgg | CustomerSupplierAddress | ||
| DocumentReferenceID | P_PL_SAFTTaxItemBasicAgg | DocumentReferenceID | Reference | |
| DocumentDate | P_PL_SAFTTaxItemBasicAgg | DocumentDate | Journal Entry Date | |
| CompanyCodeCurrency | P_PL_SAFTTaxItemBasicAgg | CompanyCodeCurrency | Local Currency | |
| TaxAmountInCoCodeCrcy | ||||
| TaxBaseAmountInCoCodeCrcy | ||||
| DocumentCurrency | P_PL_SAFTTaxItemBasicAgg | DocumentCurrency | Document Currency | |
| TaxBaseAmountInCountryCrcy | ||||
| TaxAmountInCountryCrcy | ||||
| BillingDocument | P_PL_SAFTTaxItemBasicAgg | BillingDocument | SD Document | |
| VATCountry | ||||
| _AccountingDocument | P_PL_SAFTTaxItemBasicAgg | _AccountingDocument | ||
| _Country | _Country |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_PL_SAFTTaxItemAgg.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PPLSAFTTAXITMAGG
CREATE VIEW P_PL_SAFTTaxItemAgg AS
SELECT
a.TaxType AS TaxType,
a.CompanyCode AS CompanyCode,
a.AccountingDocument AS AccountingDocument,
a.FiscalYear AS FiscalYear,
a.PL_SAFTTaxAmountBox AS PL_SAFTTaxAmountBox,
a.PL_SAFTBaseAmountBoxMultiple AS PL_SAFTBaseAmountBoxMultiple,
a.PL_SAFTDocumentType AS PL_SAFTDocumentType,
a.PL_SAFTTaxItemHasMarginAmount AS PL_SAFTTaxItemHasMarginAmount,
a.PL_SAFTAddlClassification AS PL_SAFTAddlClassification,
a.PL_SAFTInvcExclRsnFromTotals AS PL_SAFTInvcExclRsnFromTotals,
a.TaxReportingDate AS TaxReportingDate,
a.TaxReturnCountry AS TaxReturnCountry,
a.TaxCalculationProcedure AS TaxCalculationProcedure,
a.Customer AS Customer,
a.Supplier AS Supplier,
a.ReferenceDocumentType AS ReferenceDocumentType,
a.OriginalReferenceDocument AS OriginalReferenceDocument,
t.DocumentItemText AS DocumentItemText,
a.BusinessPartnerCountry AS BusinessPartnerCountry,
a.VATRegistration AS VATRegistration,
a.BusinessPartnerName AS BusinessPartnerName,
a.CustomerSupplierAddress AS CustomerSupplierAddress,
a.DocumentReferenceID AS DocumentReferenceID,
a.DocumentDate AS DocumentDate,
a.CompanyCodeCurrency AS CompanyCodeCurrency,
sum(a.TaxAmountInCoCodeCrcy) AS TaxAmountInCoCodeCrcy,
sum(a.TaxBaseAmountInCoCodeCrcy) AS TaxBaseAmountInCoCodeCrcy,
a.DocumentCurrency AS DocumentCurrency,
sum(a.TaxBaseAmountInCountryCrcy) AS TaxBaseAmountInCountryCrcy,
sum(a.TaxAmountInCountryCrcy) AS TaxAmountInCountryCrcy,
a.BillingDocument AS BillingDocument,
substring(a.VATRegistration,1,2) AS VATCountry,
a._AccountingDocument AS _AccountingDocument
FROM P_PL_SAFTTaxItemBasicAgg AS a
LEFT OUTER JOIN I_Country AS _Country ON BusinessPartnerCountry = _Country.Country -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA