I_StRpTaxReturnBoxCube
Cube View to Return Tax Details with TaxBox configuration
I_StRpTaxReturnBoxCube is a Composite CDS View (Cube) that provides data about "Cube View to Return Tax Details with TaxBox configuration" in SAP S/4HANA. It reads from 1 data source (P_StRpCalTaxReturnBox) and exposes 137 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, TransactionTypeDetermination.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_StRpCalTaxReturnBox | P_StRpCalTaxReturnBox | from |
Parameters (7)
| Name | Type | Default |
|---|---|---|
| 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 | |
| P_TaxBoxConfiguration | figen_tdt_taxbox_config |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ISRTAXRETURNBOXC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Cube View to Return Tax Details with TaxBox configuration | view | |
| VDM.viewType | #COMPOSITE | view | |
| Analytics.dataCategory | #CUBE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.allowExtensions | true | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view |
Fields (137)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_StRpCalTaxReturnBox | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | P_StRpCalTaxReturnBox | AccountingDocument | Journal Entry |
| KEY | FiscalYear | P_StRpCalTaxReturnBox | FiscalYear | G/L Fiscal Year |
| KEY | TaxItem | P_StRpCalTaxReturnBox | TaxItem | Tax Item |
| KEY | TransactionTypeDetermination | P_StRpCalTaxReturnBox | TransactionTypeDetermination | Transaction Key |
| KEY | DebitCreditCode | P_StRpCalTaxReturnBox | DebitCreditCode | Single-Character Flag |
| KEY | AccountingDocumentType | P_StRpCalTaxReturnBox | AccountingDocumentType | Journal Entry Type |
| KEY | SupplierAccountGroup | |||
| KEY | TaxBox | P_StRpCalTaxReturnBox | TaxBox | Tax.Bs.Gp.No. |
| KEY | TaxDeclnAmountType | P_StRpCalTaxReturnBox | TaxDeclnAmountType | |
| KEY | TaxBoxStrucValidityStartDate | P_StRpCalTaxReturnBox | TaxBoxStrucValidityStartDate | |
| KEY | UnifiedTaxBoxStructureType | P_StRpCalTaxReturnBox | UnifiedTaxBoxStructureType | |
| KEY | TaxGroup | P_StRpCalTaxReturnBox | TaxGroup | Tax Group |
| KEY | TaxItemGrpgDebitCreditCode | P_StRpCalTaxReturnBox | TaxItemGrpgDebitCreditCode | Single-Character Flag |
| KEY | TaxItemGrpgAcctgDocumentType | |||
| KEY | TaxItemGrpgSupplierAcctGroup | |||
| KEY | TaxItemGrpgSpecialGLCode | P_StRpCalTaxReturnBox | TaxItemGrpgSpecialGLCode | Special G/L Ind |
| KEY | StatryRptgEntity | P_StRpCalTaxReturnBox | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptCategory | P_StRpCalTaxReturnBox | StatryRptCategory | Report ID |
| KEY | StatryRptRunID | P_StRpCalTaxReturnBox | StatryRptRunID | Report Run ID |
| StatryRptRun | P_StRpCalTaxReturnBox | StatryRptRun | ||
| ValidFrom | P_StRpCalTaxReturnBox | ValidFrom | Vers.Valid From | |
| Country | ||||
| TaxCode | P_StRpCalTaxReturnBox | TaxCode | Tax Code | |
| TaxItemGroupingVersion | P_StRpCalTaxReturnBox | TaxItemGroupingVersion | Tax Grping Ver. | |
| TaxItemGroupingAccountNumber | P_StRpCalTaxReturnBox | TaxItemGroupingAccountNumber | ||
| TaxBoxStructureType | P_StRpCalTaxReturnBox | TaxBoxStructureType | ||
| ValidTo | ValidTo | Vers.Valid To | ||
| TaxBoxStrucValidityEndDate | TaxBoxStrucValidityEndDate | |||
| TaxCalculationProcedure | TaxCalculationProcedure | Tax Procedure | ||
| TaxRate | TaxRate | Tax Rate | ||
| IPITaxRate | IPITaxRate | |||
| TaxCodeRatePointer | TaxCodeRatePointer | |||
| 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 | ||
| ReferenceDocumentType | ReferenceDocumentType | Reference Document Type | ||
| AlternativeReferenceDocument | AlternativeReferenceDocument | Alternative Reference Document | ||
| 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 | |||
| TaxReportingDocumentDate | TaxReportingDocumentDate | |||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| OriginalFiscalPeriod | OriginalFiscalPeriod | |||
| ExchangeRate | ExchangeRate | Exchange rate | ||
| IsReversal | IsReversal | Reversal doc. | ||
| IsReversed | IsReversed | Reversed? | ||
| AccountingDocumentHeaderText | AccountingDocumentHeaderText | Doc.Header Text | ||
| CompanyCodeCountry | CompanyCodeCountry | Reporting Ctry/Reg. | ||
| ReportingCountry | ||||
| TaxReturnCountry | 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 | |||
| TotalGrossAmountInCoCodeCrcy | TotalGrossAmountInCoCodeCrcy | Amount in LC | ||
| TotalGrossAmount | TotalGrossAmount | Total Gross Amount | ||
| TotalGrossAmountInTransCrcy | TotalGrossAmountInTransCrcy | Total Amt In Tr Crcy | ||
| TaxType | TaxType | Tax Type | ||
| BPTaxNumber | BPTaxNumber | Tax Number | ||
| ReportingVATRegistration | ReportingVATRegistration | Reporting VAT Number | ||
| TaxNumber1 | TaxNumber1 | VAT Reg. No. | ||
| ShippingPointCountry | Country | Venue: Ctry/Reg | ||
| TargetTaxCode | TargetTaxCode | |||
| TaxNumber2 | TaxNumber2 | Tax Number 2 | ||
| ActiveTaxType | ActiveTaxType | |||
| TaxNumber3 | TaxNumber3 | |||
| TaxIsDeferredRelevant | TaxIsDeferredRelevant | |||
| TaxIsMossRelevant | TaxIsMossRelevant | |||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| CAReconciliationKey | P_StRpCalTaxReturnBox | CAReconciliationKey | Reconcil. Key | |
| NonDeductibleInputTaxAmount | NonDeductibleInputTaxAmount | Non-deductible | ||
| DcblVATIncrdCostInRptgCrcy | DcblVATIncrdCostInRptgCrcy | |||
| BusinessPartnerName | BusinessPartnerName | Extracted Customer Name | ||
| BusinessPartnerCountry | BusinessPartnerCountry | BP Ctry/Reg. | ||
| TaxTypeName | TaxTypeName | |||
| CustomerSupplierAddress | CustomerSupplierAddress | |||
| TaxIsNotDeductible | TaxIsNotDeductible | Non-Deductible | ||
| SenderCompanyCode | SenderCompanyCode | Sender Company Code | ||
| SenderAccountingDocument | SenderAccountingDocument | Sender Journal Entry | ||
| SenderFiscalYear | SenderFiscalYear | Sender FiscalYr | ||
| BalanceAmountInTransacCurrency | BalanceAmountInTransacCurrency | |||
| TaxBoxStructure | TaxBoxStructure | |||
| TaxBoxStructureName | ||||
| TaxBoxName | TaxBoxName | |||
| TaxBoxCondition | TaxBoxCondition | |||
| TaxBoxAggregationOperation | TaxBoxAggregationOperation | |||
| TaxGroupOperation | TaxGroupOperation | |||
| ConditionType | ConditionType | Condition type | ||
| IsNegativePosting | IsNegativePosting | Negative Posting | ||
| TaxCountry | TaxCountry | Tax Ctry/Reg. | ||
| TaxCntryOrCompanyCodeCntry | TaxCntryOrCompanyCodeCntry | |||
| TaxGroupFreeClassification | TaxGroupFreeClassification | |||
| TaxFulfillmentDate | _JournalEntry | TaxFulfillmentDate | Tax Settlement Date | |
| JrnlEntryCntrySpecificRef4 | _JournalEntry | JrnlEntryCntrySpecificRef4 | Country/Region Specific Reference 4 | |
| JrnlEntryCntrySpecificRef5 | _JournalEntry | JrnlEntryCntrySpecificRef5 | Country/Region Specific Reference 5 | |
| _ReportedItemsLog | _ReportedItemsLog | |||
| _ReportingCurrency | _ReportingCurrency | |||
| _OneTimeAccountBP | _OneTimeAccountBP | |||
| _JournalEntry | _JournalEntry | |||
| _AccountingDocument | _AccountingDocument | |||
| _GLAccount | _GLAccount | |||
| _TaxJurisdiction | _TaxJurisdiction | |||
| _DebtorCreditorRblsPyblsItem | _DebtorCreditorRblsPyblsItem | |||
| _ReceivablesPayablesItem | _ReceivablesPayablesItem | |||
| _TaxReceivablesPayablesItem | _TaxReceivablesPayablesItem | |||
| _CompanyCodeCountry | _CompanyCodeCountry | |||
| _TaxTypeText | _TaxTypeText | |||
| _TaxCodeText | _TaxCodeText |
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_StRpTaxReturnBoxCube.
-- 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: ISRTAXRETURNBOXC
-- 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, P_TaxBoxConfiguration : figen_tdt_taxbox_config
CREATE VIEW I_StRpTaxReturnBoxCube AS
SELECT
P_StRpCalTaxReturnBox.CompanyCode AS CompanyCode,
P_StRpCalTaxReturnBox.AccountingDocument AS AccountingDocument,
P_StRpCalTaxReturnBox.FiscalYear AS FiscalYear,
P_StRpCalTaxReturnBox.TaxItem AS TaxItem,
P_StRpCalTaxReturnBox.TransactionTypeDetermination AS TransactionTypeDetermination,
P_StRpCalTaxReturnBox.DebitCreditCode AS DebitCreditCode,
P_StRpCalTaxReturnBox.AccountingDocumentType AS AccountingDocumentType,
cast( P_StRpCalTaxReturnBox.SupplierAccountGroup as farp_supplier_account_group ) AS SupplierAccountGroup,
P_StRpCalTaxReturnBox.TaxBox AS TaxBox,
P_StRpCalTaxReturnBox.TaxDeclnAmountType AS TaxDeclnAmountType,
P_StRpCalTaxReturnBox.TaxBoxStrucValidityStartDate AS TaxBoxStrucValidityStartDate,
P_StRpCalTaxReturnBox.UnifiedTaxBoxStructureType AS UnifiedTaxBoxStructureType,
P_StRpCalTaxReturnBox.TaxGroup AS TaxGroup,
P_StRpCalTaxReturnBox.TaxItemGrpgDebitCreditCode AS TaxItemGrpgDebitCreditCode,
cast( P_StRpCalTaxReturnBox.TaxItemGrpgAcctgDocumentType as glo_tax_item_grpg_acc_doc_type ) AS TaxItemGrpgAcctgDocumentType,
cast( P_StRpCalTaxReturnBox.TaxItemGrpgSupplierAcctGroup as glo_tax_itm_grpg_suplr_acc_grp ) AS TaxItemGrpgSupplierAcctGroup,
P_StRpCalTaxReturnBox.TaxItemGrpgSpecialGLCode AS TaxItemGrpgSpecialGLCode,
P_StRpCalTaxReturnBox.StatryRptgEntity AS StatryRptgEntity,
P_StRpCalTaxReturnBox.StatryRptCategory AS StatryRptCategory,
P_StRpCalTaxReturnBox.StatryRptRunID AS StatryRptRunID,
P_StRpCalTaxReturnBox.StatryRptRun AS StatryRptRun,
P_StRpCalTaxReturnBox.ValidFrom AS ValidFrom,
cast( P_StRpCalTaxReturnBox.Country as glo_country ) AS Country,
P_StRpCalTaxReturnBox.TaxCode AS TaxCode,
P_StRpCalTaxReturnBox.TaxItemGroupingVersion AS TaxItemGroupingVersion,
P_StRpCalTaxReturnBox.TaxItemGroupingAccountNumber AS TaxItemGroupingAccountNumber,
P_StRpCalTaxReturnBox.TaxBoxStructureType AS TaxBoxStructureType,
ValidTo,
TaxBoxStrucValidityEndDate,
TaxCalculationProcedure,
TaxRate,
IPITaxRate,
TaxCodeRatePointer,
TaxRateValidityStartDate,
Customer,
GLAccount,
TaxItemGroup,
BusinessPlace,
TaxJurisdiction,
LowestLevelTaxJurisdiction,
ReferenceDocumentType,
AlternativeReferenceDocument,
ReverseDocument,
ReverseDocumentFiscalYear,
ConditionRecord,
RoundingDecimalPlaces,
DocumentReferenceID,
Ledger,
LedgerGroup,
PostingDate,
DocumentDate,
TaxReportingDate,
ReportingDate,
TaxReportingDocumentDate,
FiscalPeriod,
OriginalFiscalPeriod,
ExchangeRate,
IsReversal,
IsReversed,
AccountingDocumentHeaderText,
CompanyCodeCountry,
cast( ReportingCountry as glo_tax_cntry_or_cocd_cntry ) AS ReportingCountry,
TaxReturnCountry,
CompanyCodeCurrency,
CountryCurrency,
DocumentCurrency,
ReportingCurrency,
AdditionalCurrency1,
AdditionalCurrency2,
TaxBaseAmountInRptgCrcy,
TaxAmountInRptgCrcy,
TaxBaseAmountInCoCodeCrcy,
TaxAmountInCoCodeCrcy,
TaxBaseAmountInTransCrcy,
TaxAmount,
TaxBaseAmountInCountryCrcy,
TaxAmountInCountryCrcy,
TaxBaseAmtInAdditionalCrcy1,
TaxBaseAmtInAdditionalCrcy2,
TaxAmountInAdditionalCurrency1,
TaxAmountInAdditionalCurrency2,
DifferenceTaxAmtInCoCodeCrcy,
DiffTaxBaseAmountInCoCodeCrcy,
TotalGrossAmountInCoCodeCrcy,
TotalGrossAmount,
TotalGrossAmountInTransCrcy,
TaxType,
BPTaxNumber,
ReportingVATRegistration,
TaxNumber1,
Country AS ShippingPointCountry,
TargetTaxCode,
TaxNumber2,
ActiveTaxType,
TaxNumber3,
TaxIsDeferredRelevant,
TaxIsMossRelevant,
BusinessPartner,
P_StRpCalTaxReturnBox.CAReconciliationKey AS CAReconciliationKey,
NonDeductibleInputTaxAmount,
DcblVATIncrdCostInRptgCrcy,
BusinessPartnerName,
BusinessPartnerCountry,
TaxTypeName,
CustomerSupplierAddress,
TaxIsNotDeductible,
SenderCompanyCode,
SenderAccountingDocument,
SenderFiscalYear,
BalanceAmountInTransacCurrency,
TaxBoxStructure,
cast( TaxBoxStructureName as taxboxsname ) AS TaxBoxStructureName,
TaxBoxName,
TaxBoxCondition,
TaxBoxAggregationOperation,
TaxGroupOperation,
ConditionType,
IsNegativePosting,
TaxCountry,
TaxCntryOrCompanyCodeCntry,
TaxGroupFreeClassification,
_JournalEntry.TaxFulfillmentDate AS TaxFulfillmentDate,
_JournalEntry.JrnlEntryCntrySpecificRef4 AS JrnlEntryCntrySpecificRef4,
_JournalEntry.JrnlEntryCntrySpecificRef5 AS JrnlEntryCntrySpecificRef5
FROM P_StRpCalTaxReturnBox
;
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