I_FR_VATTaxItemCube

DDL: I_FR_VATTAXITEMCUBE SQL: IFRVATTXITEM Type: view COMPOSITE

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)

SourceAliasJoin 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)

CardinalityTargetAliasCondition
[0..1] I_Currency _ReportingCurrency $projection.ReportingCurrency = _ReportingCurrency.Currency

Annotations (12)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;