C_CH_VATTaxItemCube

DDL: C_CH_VATTAXITEMCUBE SQL: CCHVATTXITEM Type: view CONSUMPTION Package: GLO_FIN_IS_VAT_CH

Tax Items log for Statutory Reporting for Switzerland

C_CH_VATTaxItemCube is a Consumption CDS View (Cube) that provides data about "Tax Items log for Statutory Reporting for Switzerland" in SAP S/4HANA. It reads from 2 data sources (I_StRpTaxItemBoxCube, I_TaxGroup) and exposes 48 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, StatryRptgEntity. It has 1 association to related views. Part of development package GLO_FIN_IS_VAT_CH.

Data Sources (2)

SourceAliasJoin Type
I_StRpTaxItemBoxCube I_StRpTaxItemBoxCube from
I_TaxGroup I_TaxGroup left_outer

Associations (1)

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

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CCHVATTXITEM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Tax Items log for Statutory Reporting for Switzerland view
VDM.viewType #CONSUMPTION view
Analytics.dataCategory #CUBE view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
Metadata.allowExtensions true view
AbapCatalog.preserveKey true view

Fields (48)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY TaxItem TaxItem Tax Item
KEY StatryRptgEntity
KEY StatryRptCategory
KEY StatryRptRunID
KEY TaxCode TaxCode Tax Code
KEY TransactionTypeDetermination TransactionTypeDetermination Transaction Key
KEY TaxBox TaxBox Tax.Bs.Gp.No.
KEY TaxDeclnAmountType
KEY TaxItemGroupingVersion I_StRpTaxItemBoxCube TaxItemGroupingVersion Tax Grping Ver.
KEY ValidFrom I_StRpTaxItemBoxCube ValidFrom Vers.Valid From
KEY TaxBoxStructureType I_StRpTaxItemBoxCube TaxBoxStructureType
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
TaxReportingDate TaxReportingDate Tax Reporting Date
TaxItemGroup TaxItemGroup Tax doc. item number
FiscalPeriod FiscalPeriod Tax period
AccountingDocumentType AccountingDocumentType Journal Entry Type
AccountingDocumentHeaderText AccountingDocumentHeaderText Doc.Header Text
DocumentReferenceID DocumentReferenceID Reference
CompanyCodeCountry CompanyCodeCountry Reporting Ctry/Reg.
ReportingCountry ReportingCountry
TaxReturnCountry TaxReturnCountry Reporting C/R
ReportingDate I_StRpTaxItemBoxCube ReportingDate
ExchangeRate ExchangeRate Exchange rate
TaxRateInPercentAsText
GLAccount GLAccount General Ledger
BusinessPlace BusinessPlace Business place
TaxJurisdiction TaxJurisdiction Tax Jurisdiction
LowestLevelTaxJurisdiction LowestLevelTaxJurisdiction Jurisdict. Code
TaxCalculationProcedure TaxCalculationProcedure Tax Procedure
BusinessPartner BusinessPartner Issuing Authority
BusinessPartnerName BusinessPartnerName Extracted Customer Name
TaxType TaxType Tax Type
CompanyCodeCurrency CompanyCodeCurrency Local Currency
CountryCurrency CountryCurrency Currency
DocumentCurrency DocumentCurrency Document Currency
ReportingCurrency ReportingCurrency Currency
AdditionalCurrency1 AdditionalCurrency1 Local curr. 2
AdditionalCurrency2 AdditionalCurrency2 Local curr. 3
TaxIsNotDeductible TaxIsNotDeductible Non-Deductible
MiniOneStopShopTxRptgCntry MiniOneStopShopTxRptgCntry
_ReportingCurrency _ReportingCurrency
_TaxTypeText _TaxTypeText
_TaxCodeText _TaxCodeText
TaxGroupExternalID I_TaxGroup TaxGroupExternalID Ext.Tax Grp No.

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 C_CH_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: CCHVATTXITEM

CREATE VIEW C_CH_VATTaxItemCube AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  TaxItem,
  I_StRpTaxItemBoxCube._ReportedItemsLog.StatryRptgEntity AS StatryRptgEntity,
  I_StRpTaxItemBoxCube._ReportedItemsLog.StatryRptCategory AS StatryRptCategory,
  I_StRpTaxItemBoxCube._ReportedItemsLog.StatryRptRunID AS StatryRptRunID,
  TaxCode,
  TransactionTypeDetermination,
  TaxBox,
  cast ( TaxDeclnAmountType as taxbox_ot) AS TaxDeclnAmountType,
  I_StRpTaxItemBoxCube.TaxItemGroupingVersion AS TaxItemGroupingVersion,
  I_StRpTaxItemBoxCube.ValidFrom AS ValidFrom,
  I_StRpTaxItemBoxCube.TaxBoxStructureType AS TaxBoxStructureType,
  PostingDate,
  DocumentDate,
  TaxReportingDate,
  TaxItemGroup,
  FiscalPeriod,
  AccountingDocumentType,
  AccountingDocumentHeaderText,
  DocumentReferenceID,
  CompanyCodeCountry,
  ReportingCountry,
  TaxReturnCountry,
  I_StRpTaxItemBoxCube.ReportingDate AS ReportingDate,
  ExchangeRate,
  cast(right(cast( I_StRpTaxItemBoxCube.TaxRate as char20 ), 10 ) as figen_taxrateinpercentastext ) AS TaxRateInPercentAsText,
  GLAccount,
  BusinessPlace,
  TaxJurisdiction,
  LowestLevelTaxJurisdiction,
  TaxCalculationProcedure,
  BusinessPartner,
  BusinessPartnerName,
  TaxType,
  CompanyCodeCurrency,
  CountryCurrency,
  DocumentCurrency,
  ReportingCurrency,
  AdditionalCurrency1,
  AdditionalCurrency2,
  TaxIsNotDeductible,
  MiniOneStopShopTxRptgCntry,
  I_TaxGroup.TaxGroupExternalID AS TaxGroupExternalID
FROM I_StRpTaxItemBoxCube
LEFT OUTER JOIN I_TaxGroup ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Currency AS _ReportingCurrency ON ReportingCurrency = _ReportingCurrency.Currency  -- association [0..1]
;