P_PL_SAFTTaxItemSumAmount

DDL: P_PL_SAFTTAXITEMSUMAMOUNT SQL: PPLSAFTTAXISUAMT Type: view CONSUMPTION Package: GLO_FIN_IS_SAFT_PL

SAF-T PL: Tax Item Amounts

P_PL_SAFTTaxItemSumAmount is a Consumption CDS View that provides data about "SAF-T PL: Tax Item Amounts" 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. Part of development package GLO_FIN_IS_SAFT_PL.

Data Sources (2)

SourceAliasJoin Type
P_PL_SAFTTaxItemBasic a from
P_PL_SAFTTaxItemBasic a union_all

Parameters (2)

NameTypeDefault
P_StartDate datum
P_EndDate datum

Annotations (10)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;