I_ZA_StRpTaxItemCube
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)
| Source | Alias | Join 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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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