C_HU_StRpTaxItemBoxCube
Hungary VAT: Tax Items
C_HU_StRpTaxItemBoxCube is a Consumption CDS View (Cube) that provides data about "Hungary VAT: Tax Items" in SAP S/4HANA. It reads from 1 data source (I_StRpTaxItemLog) and exposes 79 fields with key fields CompanyCode, FiscalYear, AccountingDocument, StatryRptgEntity, StatryRptCategory. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpTaxItemLog | I_StRpTaxItemLog | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_StRpEntityText | _Text | $projection.StatryRptgEntity = _Text.StatryRptgEntity |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CHUSTRPTXTBITM | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.dataCategory | #CUBE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Hungary VAT: Tax Items | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| Analytics.readClassName | CL_VAT_HU_CDS_READCLASS | view |
Fields (79)
| 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 | StatryRptgEntity | StatryRptgEntity | Reporting Entity | |
| KEY | StatryRptCategory | StatryRptCategory | Report ID | |
| KEY | StatryRptRunID | StatryRptRunID | Report Run ID | |
| KEY | TaxAmountTaxBox | Tax Amount/Base Tax Box | ||
| TaxReportingDate | TaxReportingDate | Tax Reporting Date | ||
| ReportingPeriodStartDate | TaxReportingDate | Reporting Period Start | ||
| ReportingPeriodEndDate | TaxReportingDate | Reporting Period End | ||
| ReportingCurrency | Currency | |||
| TaxAmountInRptgCrcy | TaxAmountInRptgCrcy | Tax Box Amount in Rptg Crcy | ||
| US_Level1TaxAmountInRptgCrcy | TaxAmountInRptgCrcy | 5% tax deducted in Rptg Crcy | ||
| CustomerTaxID1 | ||||
| US_Level2TaxAmountInRptgCrcy | TaxAmountInRptgCrcy | 18% tax deducted in Rptg Crcy | ||
| CustomerTaxID2 | ||||
| US_Level3TaxAmountInRptgCrcy | TaxAmountInRptgCrcy | 27% tax deducted in Rptg Crcy | ||
| CustomerTaxID3 | ||||
| US_Level4TaxAmountInRptgCrcy | TaxAmountInRptgCrcy | Proportional Tax Deducted in Rptg Crcy | ||
| CustomerTaxID4 | ||||
| CalculatedTaxAmountInRptgCrcy | TaxAmountInRptgCrcy | Tax Amount in Rptg Crcy | ||
| TaxBaseAmountInRptgCrcy | TaxBaseAmountInRptgCrcy | Base Amount | ||
| TaxBaseAmountTaxBox | ||||
| CompanyCodeCurrency | Currency | |||
| TaxBaseAmtInAdditionalCrcy1 | TaxBaseAmtInAdditionalCrcy1 | LC 2 Base | ||
| TaxAmountInAdditionalCurrency1 | TaxAmountInAdditionalCurrency1 | LC 2 Tax | ||
| AFDFLocalCurrency | Currency | |||
| TaxBaseAmtInAdditionalCrcy2 | TaxBaseAmtInAdditionalCrcy2 | LC 3 Base | ||
| TaxAmountInAdditionalCurrency2 | TaxAmountInAdditionalCurrency2 | LC 3 Tax | ||
| DocumentReferenceID | DocumentReferenceID | Reference | ||
| StatryRptgEntityName | _Text | StatryRptgEntity | Reporting Entity Name | |
| TaxInvoiceItemNetAmount | TaxAmountInRptgCrcy | Tax Rept. Crcy | ||
| TotalGrossAmountInRptgCrcy | TaxAmountInRptgCrcy | Tax Rept. Crcy | ||
| ReportingVATRegistration | Reporting Entity Tax Number | |||
| NaturalPersonVATRegistration | BP Group Tax Number | |||
| CompanyVATRegistration | BP VAT ID | |||
| FormattedPostalAddressText | BP Address | |||
| TaxBoxName | TaxBoxName | Tax Box Name | ||
| OriginalReferenceDocument | Root Invoice ID | |||
| IsltnCertItmUntaggingType | VAT Invoice Type | |||
| IsReversal | IsReversal | Reversal doc. | ||
| IsReversed | IsReversed | Reversed? | ||
| ReverseDocument | ReverseDocument | Reversed With | ||
| ReverseDocumentFiscalYear | Reverse Document Fiscal Year | |||
| BR_NFIsCanceled | IsReversed | Indicator:Technical Canceled | ||
| VATRegistration | TaxNumber1 | BP Declarable Tax Number | ||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| BusinessPartnerName | BusinessPartnerName | BP Name | ||
| InvoiceNumber | Journal Entry | |||
| RU_IncomingInvoiceNumber | Journal Entry | |||
| InvoiceNumberTaxBox | ||||
| InvoiceIssueDate | Journal Entry Date | |||
| InvoiceIssueDateTaxBox | ||||
| HU_InvoiceCorrectionType | ||||
| InvoiceCorrectionTypeTaxBox | ||||
| OriginalInvoiceNumber | Journal Entry | |||
| OriginalInvoiceNumberTaxBox | ||||
| InvoiceFulfillmentDate | Tax Fulfillment Date | |||
| FulfillmentDateTaxBox | Tax Fulfillment Date TBox | |||
| DocumentDate | DocumentDate | Document Date | ||
| PostingDate | PostingDate | Posting Date | ||
| HU_VATReturnPage | ||||
| TaxCountry | TaxCountry | Tax Ctry/Reg. | ||
| TaxCode | TaxCode | Tax Code | ||
| TaxCodeName | _TaxCodeText | TaxCodeName | Tax Code Name | |
| TaxCalculationProcedure | TaxCalculationProcedure | Tax Procedure | ||
| TaxType | TaxType | Tax Type | ||
| TaxRate | Tax Rate | |||
| TransactionTypeDetermination | TransactionTypeDetermination | Transaction Key | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| SpecialGLCode | _ReceivablesPayablesItem | SpecialGLCode | Special G/L Ind | |
| TaxDeclnAmountType | ||||
| TaxIsNotDeductible | TaxIsNotDeductible | Non-Deductible | ||
| MaterialDescription | ||||
| MaterialDesc | ||||
| CommodityCode | Custom Tariff Number | |||
| WeightUnit | ||||
| NetWeight | ||||
| _Text | _Text |
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_HU_StRpTaxItemBoxCube.
-- 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: CHUSTRPTXTBITM
CREATE VIEW C_HU_StRpTaxItemBoxCube AS
SELECT
CompanyCode,
FiscalYear,
AccountingDocument,
StatryRptgEntity,
StatryRptCategory,
StatryRptRunID,
cast(TaxBox as idhu_tax_amount_tb) AS TaxAmountTaxBox,
TaxReportingDate,
TaxReportingDate AS ReportingPeriodStartDate,
TaxReportingDate AS ReportingPeriodEndDate,
cast( ReportingCurrency as glo_reporting_currency) AS ReportingCurrency,
TaxAmountInRptgCrcy,
TaxAmountInRptgCrcy AS US_Level1TaxAmountInRptgCrcy,
cast('' as stcd1) AS CustomerTaxID1,
TaxAmountInRptgCrcy AS US_Level2TaxAmountInRptgCrcy,
cast('' as stcd1) AS CustomerTaxID2,
TaxAmountInRptgCrcy AS US_Level3TaxAmountInRptgCrcy,
cast('' as stcd3) AS CustomerTaxID3,
TaxAmountInRptgCrcy AS US_Level4TaxAmountInRptgCrcy,
cast('' as stcd4) AS CustomerTaxID4,
TaxAmountInRptgCrcy AS CalculatedTaxAmountInRptgCrcy,
TaxBaseAmountInRptgCrcy,
cast('' as idhu_tax_base_amount_tb) AS TaxBaseAmountTaxBox,
cast( ReportingCurrency as glo_reporting_currency) AS CompanyCodeCurrency,
TaxBaseAmtInAdditionalCrcy1,
TaxAmountInAdditionalCurrency1,
cast( ReportingCurrency as glo_reporting_currency) AS AFDFLocalCurrency,
TaxBaseAmtInAdditionalCrcy2,
TaxAmountInAdditionalCurrency2,
DocumentReferenceID,
_Text.StatryRptgEntity AS StatryRptgEntityName,
TaxAmountInRptgCrcy AS TaxInvoiceItemNetAmount,
TaxAmountInRptgCrcy AS TotalGrossAmountInRptgCrcy,
cast(TaxNumber1 as bptaxnum) AS ReportingVATRegistration,
cast(TaxNumber1 as bptaxnum) AS NaturalPersonVATRegistration,
cast(TaxNumber1 as bptaxnum) AS CompanyVATRegistration,
cast('' as ftvv_partner_address) AS FormattedPostalAddressText,
TaxBoxName,
cast('' as fac_awkey) AS OriginalReferenceDocument,
cast( _AccountingDocument.AccountingDocumentType as fihuvat_invtyp ) AS IsltnCertItmUntaggingType,
IsReversal,
IsReversed,
ReverseDocument,
cast( ReverseDocumentFiscalYear as fis_stjah_no_conv preserving type ) AS ReverseDocumentFiscalYear,
IsReversed AS BR_NFIsCanceled,
TaxNumber1 AS VATRegistration,
BusinessPartner,
BusinessPartnerName,
cast( AccountingDocument as idhu_issued_invoice_id) AS InvoiceNumber,
cast( AccountingDocument as idhu_issued_invoice_id) AS RU_IncomingInvoiceNumber,
cast('' as idhu_invoice_nr_tb) AS InvoiceNumberTaxBox,
cast(DocumentDate as idhu_issued_invoice_date) AS InvoiceIssueDate,
cast('' as idhu_issued_inv_date_tb) AS InvoiceIssueDateTaxBox,
cast( _AccountingDocument.AccountingDocumentType as fihuvat_invtyp) AS HU_InvoiceCorrectionType,
cast('' as idhu_inv_corr_type_tb) AS InvoiceCorrectionTypeTaxBox,
cast(AccountingDocument as idhu_root_invoice_id) AS OriginalInvoiceNumber,
cast('' as idhu_root_invoice_tb) AS OriginalInvoiceNumberTaxBox,
cast(DocumentDate as idhu_fulf_dat) AS InvoiceFulfillmentDate,
cast('' as idhu_fulf_dat_tb) AS FulfillmentDateTaxBox,
DocumentDate,
PostingDate,
cast('' as idhu_form_key) AS HU_VATReturnPage,
TaxCountry,
TaxCode,
_TaxCodeText.TaxCodeName AS TaxCodeName,
TaxCalculationProcedure,
TaxType,
cast(TaxRate as fiaapt_tax_rate) AS TaxRate,
TransactionTypeDetermination,
AccountingDocumentType,
_ReceivablesPayablesItem.SpecialGLCode AS SpecialGLCode,
cast('S' as glo_amount_type) AS TaxDeclnAmountType,
TaxIsNotDeductible,
cast('' as txz01) AS MaterialDescription,
cast('' as custom_tariffdsc) AS MaterialDesc,
cast('' as /sapsll/comco) AS CommodityCode,
cast('KG' as gewei) AS WeightUnit,
cast(0 as netweight) AS NetWeight
FROM I_StRpTaxItemLog
LEFT OUTER JOIN I_StRpEntityText AS _Text ON StatryRptgEntity = _Text.StatryRptgEntity -- association [0..*]
;
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