P_AU_StRpTPARAggrgTaxLineItems

DDL: P_AU_STRPTPARAGGRGTAXLINEITEMS SQL: PAUSRTPARATXLITM Type: view COMPOSITE Package: GLO_FIN_IS_AU

Aggregrated Tax Items Per Accounting Doc

P_AU_StRpTPARAggrgTaxLineItems is a Composite CDS View that provides data about "Aggregrated Tax Items Per Accounting Doc" in SAP S/4HANA. It reads from 1 data source (P_AU_StRpTPARTaxLineItems) and exposes 19 fields with key fields StatryRptgEntity, StatryRptCategory, StatryRptRunID, CompanyCode, AccountingDocument. Part of development package GLO_FIN_IS_AU.

Data Sources (1)

SourceAliasJoin Type
P_AU_StRpTPARTaxLineItems P_AU_StRpTPARTaxLineItems from

Parameters (2)

NameTypeDefault
P_FromReportingDate figen_rep_date_from
P_ToReportingDate figen_rep_date_to

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PAUSRTPARATXLITM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY StatryRptgEntity StRpTPARTaxLineItems StatryRptgEntity Reporting Entity
KEY StatryRptCategory StRpTPARTaxLineItems StatryRptCategory Report ID
KEY StatryRptRunID StRpTPARTaxLineItems StatryRptRunID Report Run ID
KEY CompanyCode StRpTPARTaxLineItems CompanyCode Receiver Company Code
KEY AccountingDocument StRpTPARTaxLineItems AccountingDocument Journal Entry
KEY FiscalYear StRpTPARTaxLineItems FiscalYear G/L Fiscal Year
Supplier StRpTPARTaxLineItems Supplier Supplier
TotalGrossAmountInCoCodeCrcy
AU_TPARServiceType StRpTPARTaxLineItems AU_TPARServiceType Service Type
AU_TPARGrantName StRpTPARTaxLineItems AU_TPARGrantName
AU_TPARGrantDate
ClearingJournalEntry StRpTPARTaxLineItems ClearingJournalEntry Clrng doc.
PaymentDocument StRpTPARTaxLineItems PaymentDocument Payment Document Number
AU_TPARGrantObject StRpTPARTaxLineItems AU_TPARGrantObject TPAR Grant Obj
GLAccount StRpTPARTaxLineItems GLAccount General Ledger
ReportingCurrency StRpTPARTaxLineItems ReportingCurrency Currency
TotalVATAmtInCoCodeCrcy
TotalTaxAmountInCoCodeCrcy
TaxCode StRpTPARTaxLineItems TaxCode Tax Code

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_AU_StRpTPARAggrgTaxLineItems.
-- 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: PAUSRTPARATXLITM
-- Parameters: P_FromReportingDate : figen_rep_date_from, P_ToReportingDate : figen_rep_date_to

CREATE VIEW P_AU_StRpTPARAggrgTaxLineItems AS
SELECT
  StRpTPARTaxLineItems.StatryRptgEntity AS StatryRptgEntity,
  StRpTPARTaxLineItems.StatryRptCategory AS StatryRptCategory,
  StRpTPARTaxLineItems.StatryRptRunID AS StatryRptRunID,
  StRpTPARTaxLineItems.CompanyCode AS CompanyCode,
  StRpTPARTaxLineItems.AccountingDocument AS AccountingDocument,
  StRpTPARTaxLineItems.FiscalYear AS FiscalYear,
  StRpTPARTaxLineItems.Supplier AS Supplier,
  min( StRpTPARTaxLineItems.TotalGrossAmountInCoCodeCrcy ) AS TotalGrossAmountInCoCodeCrcy,
  StRpTPARTaxLineItems.AU_TPARServiceType AS AU_TPARServiceType,
  StRpTPARTaxLineItems.AU_TPARGrantName AS AU_TPARGrantName,
  max(StRpTPARTaxLineItems.AU_TPARGrantDate) AS AU_TPARGrantDate,
  StRpTPARTaxLineItems.ClearingJournalEntry AS ClearingJournalEntry,
  StRpTPARTaxLineItems.PaymentDocument AS PaymentDocument,
  StRpTPARTaxLineItems.AU_TPARGrantObject AS AU_TPARGrantObject,
  StRpTPARTaxLineItems.GLAccount AS GLAccount,
  StRpTPARTaxLineItems.ReportingCurrency AS ReportingCurrency,
  sum(StRpTPARTaxLineItems.IncgInvoiceVATAmtInTransCrcy) AS TotalVATAmtInCoCodeCrcy,
  sum(TaxAmountInCoCodeCrcy) AS TotalTaxAmountInCoCodeCrcy,
  StRpTPARTaxLineItems.TaxCode AS TaxCode
FROM P_AU_StRpTPARTaxLineItems
;