I_FR_VATTaxItemCube
VAT Tax Item Cube
I_FR_VATTaxItemCube is a Composite CDS View (Cube) that provides data about "VAT Tax Item Cube" in SAP S/4HANA. It reads from 4 data sources (P_StRpTaxItemBoxPA, I_TaxGroup, I_TaxGroupText, P_T007B_GLO) and exposes 38 fields with key fields CompanyCode, FiscalYear, AccountingDocument, TaxCode, TaxItem. It has 1 association to related views.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| P_StRpTaxItemBoxPA | I_StRpTaxItemBoxCube | from |
| I_TaxGroup | I_TaxGroup | left_outer |
| I_TaxGroupText | I_TaxGroupText | left_outer |
| P_T007B_GLO | TransactionType | left_outer |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Currency | _ReportingCurrency | $projection.ReportingCurrency = _ReportingCurrency.Currency |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IFRVATTXITEM | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Analytics.dataCategory | #CUBE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| EndUserText.label | VAT Tax Item Cube | view | |
| Metadata.allowExtensions | true | view | |
| AbapCatalog.preserveKey | true | view |
Fields (38)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | TaxCode | TaxCode | Tax Code | |
| KEY | TaxItem | TaxItem | Tax Item | |
| KEY | TaxBox | TaxBox | Tax.Bs.Gp.No. | |
| KEY | TaxGroupExternalID | I_TaxGroup | TaxGroupExternalID | Ext.Tax Grp No. |
| KEY | TaxDeclnAmountType | TaxDeclnAmountType | ||
| KEY | TaxItemGroupingVersion | P_StRpTaxItemBoxPA | TaxItemGroupingVersion | Tax Grping Ver. |
| KEY | ValidFrom | P_StRpTaxItemBoxPA | ValidFrom | Vers.Valid From |
| KEY | TaxBoxStructureType | P_StRpTaxItemBoxPA | TaxBoxStructureType | |
| KEY | AccountingDocumentType | AccountingDocumentType | Journal Entry Type | |
| KEY | TransactionTypeDetermination | TransactionTypeDetermination | Transaction Key | |
| KEY | StatryRptgEntity | _ReportedItemsLog | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptCategory | _ReportedItemsLog | StatryRptCategory | Report ID |
| KEY | StatryRptRunID | _ReportedItemsLog | StatryRptRunID | Report Run ID |
| DocumentDate | DocumentDate | Journal Entry Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| ReportingDate | ReportingDate | |||
| CompanyCodeCurrency | ||||
| DocumentCurrency | ||||
| ReportingCurrency | ReportingCurrency | Currency | ||
| ReportingCountry | ReportingCountry | Venue: Ctry/Reg | ||
| TaxType | TaxType | Tax Type | ||
| TransactionTaxType | P_T007B_GLO | stgrp | Tax Type | |
| TaxGroupName | TaxGroupName | |||
| DocumentReferenceID | DocumentReferenceID | Reference | ||
| GLAccount | GLAccount | General Ledger | ||
| Country | CompanyCodeCountry | Reporting Ctry/Reg. | ||
| TaxInvoiceNumber | ||||
| TargetTaxCode | TargetTaxCode | |||
| TaxRate | TaxRate | Tax Rate | ||
| TaxAmountInCoCodeCrcy | ||||
| TaxBaseAmountInCoCodeCrcy | ||||
| TaxBaseAmountInTransCrcy | ||||
| TaxAmount | ||||
| AmountInReportingCurrency | AmountInReportingCurrency | |||
| _ReportingCurrency | _ReportingCurrency |
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_FR_VATTaxItemCube.
-- 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: IFRVATTXITEM
CREATE VIEW I_FR_VATTaxItemCube AS
SELECT
CompanyCode,
FiscalYear,
AccountingDocument,
TaxCode,
TaxItem,
TaxBox,
I_TaxGroup.TaxGroupExternalID AS TaxGroupExternalID,
TaxDeclnAmountType,
I_StRpTaxItemBoxCube.TaxItemGroupingVersion AS TaxItemGroupingVersion,
I_StRpTaxItemBoxCube.ValidFrom AS ValidFrom,
I_StRpTaxItemBoxCube.TaxBoxStructureType AS TaxBoxStructureType,
AccountingDocumentType,
TransactionTypeDetermination,
_ReportedItemsLog.StatryRptgEntity AS StatryRptgEntity,
_ReportedItemsLog.StatryRptCategory AS StatryRptCategory,
_ReportedItemsLog.StatryRptRunID AS StatryRptRunID,
DocumentDate,
PostingDate,
ReportingDate,
cast(I_StRpTaxItemBoxCube.CompanyCodeCurrency as hwaer) AS CompanyCodeCurrency,
cast(I_StRpTaxItemBoxCube.DocumentCurrency as /scmtms/doc_currency) AS DocumentCurrency,
ReportingCurrency,
ReportingCountry,
TaxType,
TransactionType.stgrp AS TransactionTaxType,
TaxGroupName,
DocumentReferenceID,
GLAccount,
CompanyCodeCountry AS Country,
substring(DocumentReferenceID,1,10) AS TaxInvoiceNumber,
TargetTaxCode,
TaxRate,
cast(I_StRpTaxItemBoxCube.TaxAmountInCoCodeCrcy as fis_mwsts ) AS TaxAmountInCoCodeCrcy,
cast(I_StRpTaxItemBoxCube.TaxBaseAmountInCoCodeCrcy as hwbas_shl ) AS TaxBaseAmountInCoCodeCrcy,
cast(I_StRpTaxItemBoxCube.TaxBaseAmountInTransCrcy as fwbas ) AS TaxBaseAmountInTransCrcy,
cast(I_StRpTaxItemBoxCube.TaxAmount as fwste_f05l ) AS TaxAmount,
AmountInReportingCurrency
FROM P_StRpTaxItemBoxPA AS I_StRpTaxItemBoxCube
LEFT OUTER JOIN I_TaxGroup ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_TaxGroupText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_T007B_GLO AS TransactionType ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Currency AS _ReportingCurrency ON ReportingCurrency = _ReportingCurrency.Currency -- association [0..1]
;
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