P_PL_SAFTTaxItemSumAmount
P_PL_SAFTTaxItemSumAmount is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (P_PL_SAFTTaxItemBasic, P_PL_SAFTTaxItemBasic) and exposes 27 fields with key fields CompanyCode, AccountingDocument, FiscalYear, PL_TaxCode, AccountingDocument.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_PL_SAFTTaxItemBasic | a | from |
| P_PL_SAFTTaxItemBasic | a | union_all |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | datum | |
| P_EndDate | datum |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPLSAFTTAXISUAMT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #CONSUMPTION | 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 (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_PL_SAFTTaxItemBasic | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | P_PL_SAFTTaxItemBasic | AccountingDocument | Journal Entry |
| KEY | FiscalYear | P_PL_SAFTTaxItemBasic | FiscalYear | G/L Fiscal Year |
| KEY | PL_TaxCode | P_PL_SAFTTaxItemBasic | PL_SAFTTaxAmountBox | |
| TaxType | P_PL_SAFTTaxItemBasic | TaxType | Tax Type | |
| PL_SAFTDocumentType | P_PL_SAFTTaxItemBasic | PL_SAFTDocumentType | ||
| PL_SAFTTaxItemHasMarginAmount | P_PL_SAFTTaxItemBasic | PL_SAFTTaxItemHasMarginAmount | ||
| PL_SAFTAddlClassification | P_PL_SAFTTaxItemBasic | PL_SAFTAddlClassification | ||
| PL_SAFTInvcExclRsnFromTotals | P_PL_SAFTTaxItemBasic | PL_SAFTInvcExclRsnFromTotals | ||
| CompanyCodeCurrency | P_PL_SAFTTaxItemBasic | CompanyCodeCurrency | Local Currency | |
| TotalAmountInCoCodeCrcy | ||||
| DocumentCurrency | P_PL_SAFTTaxItemBasic | DocumentCurrency | Document Currency | |
| TotalAmountInCountryCrcy | ||||
| CompanyCode | Receiver Company Code | |||
| KEY | AccountingDocument | P_PL_SAFTTaxItemBasic | AccountingDocument | Journal Entry |
| KEY | FiscalYear | P_PL_SAFTTaxItemBasic | FiscalYear | G/L Fiscal Year |
| KEY | PL_TaxCode | P_PL_SAFTTaxItemBasic | PL_SAFTBaseAmountBoxMultiple | |
| TaxType | P_PL_SAFTTaxItemBasic | TaxType | Tax Type | |
| PL_SAFTDocumentType | P_PL_SAFTTaxItemBasic | PL_SAFTDocumentType | ||
| PL_SAFTTaxItemHasMarginAmount | P_PL_SAFTTaxItemBasic | PL_SAFTTaxItemHasMarginAmount | ||
| PL_SAFTAddlClassification | P_PL_SAFTTaxItemBasic | PL_SAFTAddlClassification | ||
| PL_SAFTInvcExclRsnFromTotals | P_PL_SAFTTaxItemBasic | PL_SAFTInvcExclRsnFromTotals | ||
| CompanyCodeCurrency | P_PL_SAFTTaxItemBasic | CompanyCodeCurrency | Local Currency | |
| TotalAmountInCoCodeCrcy | ||||
| DocumentCurrency | P_PL_SAFTTaxItemBasic | DocumentCurrency | Document Currency | |
| TotalAmountInCountryCrcy | ||||
| _AccountingDocument | _AccountingDocument |
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_SAFTTaxItemSumAmount.
-- 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: PPLSAFTTAXISUAMT
-- Parameters: P_StartDate : datum, P_EndDate : datum
CREATE VIEW P_PL_SAFTTaxItemSumAmount AS
SELECT
a.CompanyCode AS CompanyCode,
a.AccountingDocument AS AccountingDocument,
a.FiscalYear AS FiscalYear,
a.PL_SAFTTaxAmountBox AS PL_TaxCode,
a.TaxType AS TaxType,
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.CompanyCodeCurrency AS CompanyCodeCurrency,
sum(a.TaxAmountInCoCodeCrcy) AS TotalAmountInCoCodeCrcy,
a.DocumentCurrency AS DocumentCurrency,
sum(a.TaxAmountInCountryCrcy) AS TotalAmountInCountryCrcy
FROM P_PL_SAFTTaxItemBasic AS a
-- UNION ALL with additional select branch(es): P_PL_SAFTTaxItemBasic
;
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