P_SAFTTaxAmountSum

DDL: P_SAFTTAXAMOUNTSUM SQL: PSAFTTAXAMNTSUM Type: view COMPOSITE Package: GLO_FIN_IS_SAFT_GEN

SAFT Get Sum Tax Amount

P_SAFTTaxAmountSum is a Composite CDS View that provides data about "SAFT Get Sum Tax Amount" in SAP S/4HANA. It reads from 1 data source (I_TaxItem) and exposes 9 fields with key fields CompanyCode, AccountingDocument, FiscalYear. Part of development package GLO_FIN_IS_SAFT_GEN.

Data Sources (1)

SourceAliasJoin Type
I_TaxItem I_TaxItem from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PSAFTTAXAMNTSUM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
TaxCode TaxCode Tax Code
TaxRate
TaxAmountInCoCodeCrcy
TaxBaseAmountInCoCodeCrcy
TaxAmount
TaxBaseAmountInTransCrcy

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_SAFTTaxAmountSum.
-- 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: PSAFTTAXAMNTSUM

CREATE VIEW P_SAFTTaxAmountSum AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  TaxCode,
  max(TaxRate) AS TaxRate,
  cast( sum(TaxAmountInCoCodeCrcy) as abap.dec(23,2)) AS TaxAmountInCoCodeCrcy,
  cast( max(TaxBaseAmountInCoCodeCrcy) as abap.dec(23,2)) AS TaxBaseAmountInCoCodeCrcy,
  cast( sum(TaxAmount) as abap.dec(23,2)) AS TaxAmount,
  cast( max(TaxBaseAmountInTransCrcy) as abap.dec(23,2)) AS TaxBaseAmountInTransCrcy
FROM I_TaxItem
;