Deprecated
This CDS view is deprecated in S/4HANA. View all deprecated CDS views →

I_ZA_StRpTaxItemCube

DDL: I_ZA_STRPTAXITEMCUBE SQL: ISRZATAXITEMC Type: view COMPOSITE

South Africa Tax Items for VAT Reporting

I_ZA_StRpTaxItemCube is a Composite CDS View (Cube) that provides data about "South Africa Tax Items for VAT Reporting" in SAP S/4HANA. It reads from 6 data sources and exposes 39 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TransactionTypeDetermination, TaxCode.

Data Sources (6)

SourceAliasJoin Type
P_KNAS_GLO Knas left_outer
P_LFAS_GLO Lfas left_outer
P_CountOfSameTaxCodeLines P_CountOfSameTaxCodeLines left_outer
P_RetrieveMRNValues P_RetrieveMRNValues left_outer
P_T007B_GLO P_T007B_GLO left_outer
P_TimeDepdntVersAssgmtNext Taxgroupingversion left_outer

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ISRZATAXITEMC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label South Africa Tax Items for VAT Reporting view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
Analytics.dataCategory #CUBE view
Metadata.allowExtensions true view
AccessControl.blocking #BLOCKED_DATA_INCLUDED view
VDM.lifecycle.status #DEPRECATED view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_StRpTaxItemBoxCube CompanyCode Receiver Company Code
KEY AccountingDocument I_StRpTaxItemBoxCube AccountingDocument Journal Entry
KEY FiscalYear I_StRpTaxItemBoxCube FiscalYear G/L Fiscal Year
KEY TransactionTypeDetermination I_StRpTaxItemBoxCube TransactionTypeDetermination Transaction Key
KEY TaxCode I_StRpTaxItemBoxCube TaxCode Tax Code
KEY TaxItem I_StRpTaxItemBoxCube TaxItem Tax Item
KEY TaxBox I_StRpTaxItemBoxCube TaxBox Tax.Bs.Gp.No.
KEY TaxDeclnAmountType I_StRpTaxItemBoxCube TaxDeclnAmountType
KEY TaxItemGroupingVersion P_TimeDepdntVersAssgmtNext verstax Tax Grping Ver.
AccountingDocumentType I_StRpTaxItemBoxCube AccountingDocumentType Journal Entry Type
DocumentDate I_StRpTaxItemBoxCube DocumentDate Journal Entry Date
PostingDate I_StRpTaxItemBoxCube PostingDate Posting Date for GR
ReportingDate I_StRpTaxItemBoxCube ReportingDate
VATRegistration
FinancialAccountType _DebtorCreditorRblsPyblsItem FinancialAccountType Fin. Account Type
TaxType I_StRpTaxItemBoxCube TaxType Tax Type
NumberOfDocuments NumberOfDocuments
CashDiscountIsDeductible stazf Not deductible
TaxCalculationProcedure I_StRpTaxItemBoxCube TaxCalculationProcedure Tax Procedure
stcegendendendasCustomerSupplierVATRegn
DocumentReferenceID DocumentReferenceID Reference
TaxRate TaxRate Tax Rate
ReportingCountry ReportingCountry
CompanyCodeCurrency I_StRpTaxItemBoxCube CompanyCodeCurrency Local Currency
DocumentCurrency I_StRpTaxItemBoxCube DocumentCurrency Document Currency
ReferenceDocumentType I_StRpTaxItemBoxCube ReferenceDocumentType Reference Document Type
Country
ReversalReason
CountryendasBusinessPartnerCountry
AuthorizationGroup
BusinessPartnerName BusinessPartnerName Extracted Customer Name
Reference1IDByBusinessPartner Reference1IDByBusinessPartner Reference Key 1
Reference2IDByBusinessPartner Reference2IDByBusinessPartner Reference Key 2
Reference3IDByBusinessPartner Reference3IDByBusinessPartner Reference Key 3
_AccountingDocument I_StRpTaxItemBoxCube _AccountingDocument
Customer
Supplier
_TaxTypeText _TaxTypeText
_TaxCodeText _TaxCodeText

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_ZA_StRpTaxItemCube.
-- 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: ISRZATAXITEMC

CREATE VIEW I_ZA_StRpTaxItemCube AS
SELECT
  I_StRpTaxItemBoxCube.CompanyCode AS CompanyCode,
  I_StRpTaxItemBoxCube.AccountingDocument AS AccountingDocument,
  I_StRpTaxItemBoxCube.FiscalYear AS FiscalYear,
  I_StRpTaxItemBoxCube.TransactionTypeDetermination AS TransactionTypeDetermination,
  I_StRpTaxItemBoxCube.TaxCode AS TaxCode,
  I_StRpTaxItemBoxCube.TaxItem AS TaxItem,
  I_StRpTaxItemBoxCube.TaxBox AS TaxBox,
  I_StRpTaxItemBoxCube.TaxDeclnAmountType AS TaxDeclnAmountType,
  Taxgroupingversion.verstax AS TaxItemGroupingVersion,
  I_StRpTaxItemBoxCube.AccountingDocumentType AS AccountingDocumentType,
  I_StRpTaxItemBoxCube.DocumentDate AS DocumentDate,
  I_StRpTaxItemBoxCube.PostingDate AS PostingDate,
  I_StRpTaxItemBoxCube.ReportingDate AS ReportingDate,
  _AccountingDocument._CompanyCode.VATRegistration AS VATRegistration,
  _DebtorCreditorRblsPyblsItem.FinancialAccountType AS FinancialAccountType,
  I_StRpTaxItemBoxCube.TaxType AS TaxType,
  NumberOfDocuments,
  stazf AS CashDiscountIsDeductible,
  I_StRpTaxItemBoxCube.TaxCalculationProcedure AS TaxCalculationProcedure,
  case when _DebtorCreditorRblsPyblsItem._Customer.Customer <> '' and I_StRpTaxItemBoxCube.TaxType = 'A' then case when Knas.stceg = '' then case when _DebtorCreditorRblsPyblsItem._Customer.VATRegistration = '' then case when _DebtorCreditorRblsPyblsItem._Customer.TaxNumber1 <> '' then _DebtorCreditorRblsPyblsItem._Customer.TaxNumber1 else case when _DebtorCreditorRblsPyblsItem._Customer.TaxNumber2 <> '' then _DebtorCreditorRblsPyblsItem._Customer.TaxNumber2 else case when _DebtorCreditorRblsPyblsItem._Customer.TaxNumber5 <> '' then _DebtorCreditorRblsPyblsItem._Customer.TaxNumber5 end end end else _DebtorCreditorRblsPyblsItem._Customer.VATRegistration end else Knas.stceg end else case when _DebtorCreditorRblsPyblsItem._Supplier.Supplier <> '' and I_StRpTaxItemBoxCube.TaxType = 'V' then case when Lfas.stceg = '' then case when _DebtorCreditorRblsPyblsItem._Supplier.VATRegistration = '' then case when _DebtorCreditorRblsPyblsItem._Supplier.TaxNumber1 <> '' then _DebtorCreditorRblsPyblsItem._Supplier.TaxNumber1 else case when _DebtorCreditorRblsPyblsItem._Supplier.TaxNumber2 <> '' then _DebtorCreditorRblsPyblsItem._Supplier.TaxNumber2 else case when _DebtorCreditorRblsPyblsItem._Supplier.TaxNumber5 <> '' then _DebtorCreditorRblsPyblsItem._Supplier.TaxNumber5 end end end else _DebtorCreditorRblsPyblsItem._Supplier.VATRegistration end else Lfas.stceg end end end as CustomerSupplierVATRegn AS stcegendendendasCustomerSupplierVATRegn,
  DocumentReferenceID,
  TaxRate,
  ReportingCountry,
  I_StRpTaxItemBoxCube.CompanyCodeCurrency AS CompanyCodeCurrency,
  I_StRpTaxItemBoxCube.DocumentCurrency AS DocumentCurrency,
  I_StRpTaxItemBoxCube.ReferenceDocumentType AS ReferenceDocumentType,
  _AccountingDocument._CompanyCode.Country AS Country,
  I_StRpTaxItemBoxCube._AccountingDocument.ReversalReason AS ReversalReason,
  case when _DebtorCreditorRblsPyblsItem._Customer.Customer <> '' then _DebtorCreditorRblsPyblsItem._Customer.Country when _DebtorCreditorRblsPyblsItem._Supplier.Supplier <> '' then _DebtorCreditorRblsPyblsItem._Supplier.Country end as BusinessPartnerCountry AS CountryendasBusinessPartnerCountry,
  _DebtorCreditorRblsPyblsItem._Customer.AuthorizationGroup AS AuthorizationGroup,
  BusinessPartnerName,
  Reference1IDByBusinessPartner,
  Reference2IDByBusinessPartner,
  Reference3IDByBusinessPartner,
  I_StRpTaxItemBoxCube._AccountingDocument AS _AccountingDocument,
  _DebtorCreditorRblsPyblsItem._Customer.Customer AS Customer,
  _DebtorCreditorRblsPyblsItem._Supplier.Supplier AS Supplier
LEFT OUTER JOIN P_CountOfSameTaxCodeLines ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_T007B_GLO ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_RetrieveMRNValues ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_KNAS_GLO AS Knas ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_LFAS_GLO AS Lfas ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_TimeDepdntVersAssgmtNext AS Taxgroupingversion ON /* join condition not captured in parsed metadata */
;