C_HU_StRpTaxItemBoxCube

DDL: C_HU_STRPTAXITEMBOXCUBE SQL: CHUSTRPTXTBITM Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_StRpTaxItemLog I_StRpTaxItemLog from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_StRpEntityText _Text $projection.StatryRptgEntity = _Text.StatryRptgEntity

Annotations (15)

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

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