I_StRpTaxReturnCube

DDL: I_STRPTAXRETURNCUBE SQL: ISRTAXRETURNC Type: view COMPOSITE

Cube view to Return all types of Tax Details

I_StRpTaxReturnCube is a Composite CDS View (Cube) that provides data about "Cube view to Return all types of Tax Details" in SAP S/4HANA. It reads from 1 data source (P_StRpTaxReturnCube) and exposes 114 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, TaxCode.

Data Sources (1)

SourceAliasJoin Type
P_StRpTaxReturnCube P_StRpTaxReturnCube from

Parameters (6)

NameTypeDefault
P_TaxIsDeferredRelevant figen_deferred_check
P_TaxIsMossRelevant figen_moss_check
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id
P_ReportingCountry land1

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName ISRTAXRETURNC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Cube view to Return all types of Tax Details view
VDM.viewType #COMPOSITE view
Analytics.dataCategory #CUBE view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #NOT_REQUIRED view
Metadata.allowExtensions true view
AccessControl.blocking #BLOCKED_DATA_INCLUDED view

Fields (114)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_StRpTaxReturnItem CompanyCode Receiver Company Code
KEY AccountingDocument P_StRpTaxReturnItem AccountingDocument Journal Entry
KEY FiscalYear P_StRpTaxReturnItem FiscalYear G/L Fiscal Year
KEY TaxItem P_StRpTaxReturnItem TaxItem Tax Item
KEY TaxCode P_StRpTaxReturnItem TaxCode Tax Code
KEY TransactionTypeDetermination P_StRpTaxReturnItem TransactionTypeDetermination Transaction Key
KEY StatryRptgEntity P_StRpTaxReturnItem StatryRptgEntity Reporting Entity
KEY StatryRptCategory P_StRpTaxReturnItem StatryRptCategory Report ID
KEY StatryRptRunID P_StRpTaxReturnItem StatryRptRunID Report Run ID
BPTaxNumber BPTaxNumber Tax Number
ReportingVATRegistration ReportingVATRegistration Reporting VAT Number
TaxNumber1 TaxNumber1 VAT Reg. No.
Country Country Venue: Ctry/Reg
DebitCreditCode DebitCreditCode Single-Character Flag
TaxCalculationProcedure P_StRpTaxReturnItem TaxCalculationProcedure Tax Procedure
TaxRate TaxRate Tax Rate
IPITaxRate IPITaxRate
AdditionalTax1Rate AdditionalTax1Rate
ConditionAmount ConditionAmount Condition Value
TaxRateValidityStartDate TaxRateValidityStartDate Tax Rate Validity Start Date
Customer Customer Sold-to Party
GLAccount GLAccount General Ledger
TaxItemGroup TaxItemGroup Tax doc. item number
BusinessPlace BusinessPlace Business place
TaxJurisdiction TaxJurisdiction Tax Jurisdiction
LowestLevelTaxJurisdiction LowestLevelTaxJurisdiction Jurisdict. Code
AccountingDocumentType AccountingDocumentType Journal Entry Type
ReferenceDocumentType ReferenceDocumentType Reference Document Type
ReverseDocument ReverseDocument Reversed With
ReverseDocumentFiscalYear ReverseDocumentFiscalYear Year
ConditionRecord ConditionRecord Cond.Record No.
RoundingDecimalPlaces RoundingDecimalPlaces
DocumentReferenceID DocumentReferenceID Reference
Ledger Ledger Ledger
LedgerGroup LedgerGroup Ledger Group
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
TaxReportingDate TaxReportingDate Tax Reporting Date
ReportingDate ReportingDate
FiscalPeriod FiscalPeriod Tax period
OriginalFiscalPeriod FiscalPeriod Tax period
ExchangeRate ExchangeRate Exchange rate
IsReversal IsReversal Reversal doc.
IsReversed IsReversed Reversed?
AccountingDocumentHeaderText AccountingDocumentHeaderText Doc.Header Text
CompanyCodeCountry CompanyCodeCountry Reporting Ctry/Reg.
ReportingCountry ReportingCountry
TaxReturnCountry P_StRpTaxReturnItem TaxReturnCountry Reporting C/R
CompanyCodeCurrency CompanyCodeCurrency Local Currency
CountryCurrency CountryCurrency Currency
DocumentCurrency DocumentCurrency Document Currency
ReportingCurrency ReportingCurrency Currency
AdditionalCurrency1 AdditionalCurrency1 Local curr. 2
AdditionalCurrency2 AdditionalCurrency2 Local curr. 3
TaxBaseAmountInRptgCrcy TaxBaseAmountInRptgCrcy Base Amount
TaxAmountInRptgCrcy TaxAmountInRptgCrcy Tax Rept. Crcy
TaxBaseAmountInCoCodeCrcy TaxBaseAmountInCoCodeCrcy TxBaseAmt CoCodeCrcy
TaxAmountInCoCodeCrcy TaxAmountInCoCodeCrcy Tax Amount in Company Code Currency
TaxBaseAmountInTransCrcy TaxBaseAmountInTransCrcy Value-Added Tax
TaxAmount TaxAmount Tax Amt in Rptg Crcy
TaxBaseAmountInCountryCrcy TaxBaseAmountInCountryCrcy Base Amount
TaxAmountInCountryCrcy TaxAmountInCountryCrcy Tax Rept. Crcy
TaxBaseAmtInAdditionalCrcy1 TaxBaseAmtInAdditionalCrcy1 LC 2 Base
TaxBaseAmtInAdditionalCrcy2 TaxBaseAmtInAdditionalCrcy2 LC 3 Base
TaxAmountInAdditionalCurrency1 TaxAmountInAdditionalCurrency1 LC 2 Tax
TaxAmountInAdditionalCurrency2 TaxAmountInAdditionalCurrency2 LC 3 Tax
DifferenceTaxAmtInCoCodeCrcy DifferenceTaxAmtInCoCodeCrcy
DiffTaxBaseAmountInCoCodeCrcy DiffTaxBaseAmountInCoCodeCrcy
TaxType
TargetTaxCode P_StRpTaxReturnItem TargetTaxCode
TaxNumber2 TaxNumber2 Tax Number 2
ActiveTaxType ActiveTaxType
TaxNumber3 TaxNumber3
CalculatedTxAmtInCoCodeCrcy CalculatedTxAmtInCoCodeCrcy
CalculatedTaxAmountInTransCrcy CalculatedTaxAmountInTransCrcy
BusinessPartner BusinessPartner Issuing Authority
CalcdTxBaseAmtInCoCodeCrcy CalcdTxBaseAmtInCoCodeCrcy
CalculatedTxBaseAmtInTransCrcy CalculatedTxBaseAmtInTransCrcy
TotalGrossAmountInCoCodeCrcy
TotalGrossAmountInTransCrcy
TotalGrossAmount TotalGrossAmount Total Gross Amount
NonDeductibleInputTaxAmount NonDeductibleInputTaxAmount Non-deductible
DcblVATIncrdCostInRptgCrcy DcblVATIncrdCostInRptgCrcy
BusinessPartnerName BusinessPartnerName Extracted Customer Name
BusinessPartnerCountry BusinessPartnerCountry BP Ctry/Reg.
TaxTypeName TaxTypeName
CustomerSupplierAddress CustomerSupplierAddress
TaxIsNotDeductible TaxIsNotDeductible Non-Deductible
TaxReportingDocumentDate TaxReportingDocumentDate
BalanceAmountInTransacCurrency BalanceAmountInTransacCurrency
ConditionType ConditionType Condition type
TaxCountry TaxCountry Tax Ctry/Reg.
SupplierAccountGroup SupplierAccountGroup Account group
IsNegativePosting IsNegativePosting Negative Posting
AlternativeReferenceDocument AlternativeReferenceDocument Alternative Reference Document
NmbrOfChmlCmplncMktCountries NmbrOfChmlCmplncMktCountries
TaxCntryOrCompanyCodeCntry TaxCntryOrCompanyCodeCntry
CAReconciliationKey CAReconciliationKey Reconcil. Key
StatryRptRun StatryRptRun
_ReportingCurrency _ReportingCurrency
_AccountingDocument _AccountingDocument
_GLAccount _GLAccount
_TaxJurisdiction _TaxJurisdiction
_DebtorCreditorRblsPyblsItem _DebtorCreditorRblsPyblsItem
_ReceivablesPayablesItem _ReceivablesPayablesItem
_TaxReceivablesPayablesItem _TaxReceivablesPayablesItem
_CompanyCodeCountry _CompanyCodeCountry
_TaxTypeText
_TaxCode _TaxCode
_ReportedItemsLog _ReportedItemsLog
_JournalEntry _JournalEntry
_OneTimeAccountBP _OneTimeAccountBP
_TaxCodeText _TaxCodeText
_CustomerSupplierLineItem _CustomerSupplierLineItem

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 I_StRpTaxReturnCube.
-- 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: ISRTAXRETURNC
-- Parameters: P_TaxIsDeferredRelevant : figen_deferred_check, P_TaxIsMossRelevant : figen_moss_check, P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_ReportingCountry : land1

CREATE VIEW I_StRpTaxReturnCube AS
SELECT
  P_StRpTaxReturnItem.CompanyCode AS CompanyCode,
  P_StRpTaxReturnItem.AccountingDocument AS AccountingDocument,
  P_StRpTaxReturnItem.FiscalYear AS FiscalYear,
  P_StRpTaxReturnItem.TaxItem AS TaxItem,
  P_StRpTaxReturnItem.TaxCode AS TaxCode,
  P_StRpTaxReturnItem.TransactionTypeDetermination AS TransactionTypeDetermination,
  P_StRpTaxReturnItem.StatryRptgEntity AS StatryRptgEntity,
  P_StRpTaxReturnItem.StatryRptCategory AS StatryRptCategory,
  P_StRpTaxReturnItem.StatryRptRunID AS StatryRptRunID,
  BPTaxNumber,
  ReportingVATRegistration,
  TaxNumber1,
  Country,
  DebitCreditCode,
  P_StRpTaxReturnItem.TaxCalculationProcedure AS TaxCalculationProcedure,
  TaxRate,
  IPITaxRate,
  AdditionalTax1Rate,
  ConditionAmount,
  TaxRateValidityStartDate,
  Customer,
  GLAccount,
  TaxItemGroup,
  BusinessPlace,
  TaxJurisdiction,
  LowestLevelTaxJurisdiction,
  AccountingDocumentType,
  ReferenceDocumentType,
  ReverseDocument,
  ReverseDocumentFiscalYear,
  ConditionRecord,
  RoundingDecimalPlaces,
  DocumentReferenceID,
  Ledger,
  LedgerGroup,
  PostingDate,
  DocumentDate,
  TaxReportingDate,
  ReportingDate,
  FiscalPeriod,
  FiscalPeriod AS OriginalFiscalPeriod,
  ExchangeRate,
  IsReversal,
  IsReversed,
  AccountingDocumentHeaderText,
  CompanyCodeCountry,
  ReportingCountry,
  P_StRpTaxReturnItem.TaxReturnCountry AS TaxReturnCountry,
  CompanyCodeCurrency,
  CountryCurrency,
  DocumentCurrency,
  ReportingCurrency,
  AdditionalCurrency1,
  AdditionalCurrency2,
  TaxBaseAmountInRptgCrcy,
  TaxAmountInRptgCrcy,
  TaxBaseAmountInCoCodeCrcy,
  TaxAmountInCoCodeCrcy,
  TaxBaseAmountInTransCrcy,
  TaxAmount,
  TaxBaseAmountInCountryCrcy,
  TaxAmountInCountryCrcy,
  TaxBaseAmtInAdditionalCrcy1,
  TaxBaseAmtInAdditionalCrcy2,
  TaxAmountInAdditionalCurrency1,
  TaxAmountInAdditionalCurrency2,
  DifferenceTaxAmtInCoCodeCrcy,
  DiffTaxBaseAmountInCoCodeCrcy,
  _TaxCode._TaxType.TaxType AS TaxType,
  P_StRpTaxReturnItem.TargetTaxCode AS TargetTaxCode,
  TaxNumber2,
  ActiveTaxType,
  TaxNumber3,
  CalculatedTxAmtInCoCodeCrcy,
  CalculatedTaxAmountInTransCrcy,
  BusinessPartner,
  CalcdTxBaseAmtInCoCodeCrcy,
  CalculatedTxBaseAmtInTransCrcy,
  cast(CalcdTxBaseAmtInCoCodeCrcy + CalculatedTxAmtInCoCodeCrcy as glo_grossamount_tot_cocodecrcy ) AS TotalGrossAmountInCoCodeCrcy,
  cast(CalculatedTaxAmountInTransCrcy + CalculatedTxBaseAmtInTransCrcy as glo_grossamount_tot_intrancrcy ) AS TotalGrossAmountInTransCrcy,
  TotalGrossAmount,
  NonDeductibleInputTaxAmount,
  DcblVATIncrdCostInRptgCrcy,
  BusinessPartnerName,
  BusinessPartnerCountry,
  TaxTypeName,
  CustomerSupplierAddress,
  TaxIsNotDeductible,
  TaxReportingDocumentDate,
  BalanceAmountInTransacCurrency,
  ConditionType,
  TaxCountry,
  SupplierAccountGroup,
  IsNegativePosting,
  AlternativeReferenceDocument,
  NmbrOfChmlCmplncMktCountries,
  TaxCntryOrCompanyCodeCntry,
  CAReconciliationKey,
  StatryRptRun,
  _TaxCode._TaxType._Text AS _TaxTypeText
FROM P_StRpTaxReturnCube
;