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

I_ZA_StRpRevenueExpenseLineC

DDL: I_ZA_STRPREVENUEEXPENSELINEC SQL: ISRZARVEXLINENC Type: view COMPOSITE

South Africa Revenue Expense Lines

I_ZA_StRpRevenueExpenseLineC is a Composite CDS View (Cube) that provides data about "South Africa Revenue Expense Lines" in SAP S/4HANA. It reads from 4 data sources (I_ReceivablesPayablesItem, I_StRpTaxItemBoxCube, P_T007B_GLO, P_TimeDepdntVersAssgmtNext) and exposes 32 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, TaxCode. It has 2 associations to related views.

Data Sources (4)

SourceAliasJoin Type
I_ReceivablesPayablesItem I_ReceivablesPayablesItem left_outer
I_StRpTaxItemBoxCube I_StRpTaxItemBoxCube from
P_T007B_GLO P_T007B_GLO left_outer
P_TimeDepdntVersAssgmtNext Taxgroupingversion left_outer

Associations (2)

CardinalityTargetAliasCondition
[1..*] I_MaterialText _MaterialText $projection.Material = _MaterialText.Material
[0..1] I_Currency _ReportingCurrency $projection.ReportingCurrency = _ReportingCurrency.Currency

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ISRZARVEXLINENC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label South Africa Revenue Expense Lines view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
Analytics.dataCategory #CUBE view
Metadata.allowExtensions true view
VDM.lifecycle.status #DEPRECATED view
AccessControl.blocking #BLOCKED_DATA_INCLUDED view

Fields (32)

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 TaxItem I_StRpTaxItemBoxCube TaxItem Tax Item
KEY TaxCode I_StRpTaxItemBoxCube TaxCode Tax Code
KEY TransactionTypeDetermination I_StRpTaxItemBoxCube TransactionTypeDetermination Transaction Key
KEY TaxBox I_StRpTaxItemBoxCube TaxBox Tax.Bs.Gp.No.
KEY TaxDeclnAmountType I_StRpTaxItemBoxCube TaxDeclnAmountType
KEY TaxItemGroupingVersion P_TimeDepdntVersAssgmtNext verstax Tax Grping Ver.
KEY DebitCreditCode I_StRpTaxItemBoxCube DebitCreditCode Single-Character Flag
TaxRate I_StRpTaxItemBoxCube TaxRate Tax Rate
TaxType I_StRpTaxItemBoxCube TaxType Tax Type
PostingDate I_StRpTaxItemBoxCube PostingDate Posting Date for GR
ReportingDate I_StRpTaxItemBoxCube ReportingDate
TaxCalculationProcedure I_StRpTaxItemBoxCube TaxCalculationProcedure Tax Procedure
CompanyCodeCurrency I_StRpTaxItemBoxCube CompanyCodeCurrency Local Currency
MaterialName _MaterialText MaterialName Material Description
VATRegistration
FinancialAccountType FinancialAccountType Fin. Account Type
Material I_ReceivablesPayablesItem Material Vehicle Model
CashDiscountIsDeductible stazf Not deductible
CashDiscountAmtInCoCodeCrcy CashDiscountAmtInCoCodeCrcy Discount Amt
ReportingCountry ReportingCountry
MaterialNameendendasDocumentItemText
ReportingCurrency ReportingCurrency Currency
Customer _Customer Customer Sold-to Party
Supplier _Supplier Supplier Supplier
AuthorizationGroup _Customer AuthorizationGroup AuthorizGroup
_TaxCodeText _TaxCodeText
_TaxTypeText _TaxTypeText
_ReportingCurrency _ReportingCurrency
BusinessPartnerName BusinessPartnerName Extracted Customer Name

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_StRpRevenueExpenseLineC.
-- 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: ISRZARVEXLINENC

CREATE VIEW I_ZA_StRpRevenueExpenseLineC AS
SELECT
  I_StRpTaxItemBoxCube.CompanyCode AS CompanyCode,
  I_StRpTaxItemBoxCube.AccountingDocument AS AccountingDocument,
  I_StRpTaxItemBoxCube.FiscalYear AS FiscalYear,
  I_StRpTaxItemBoxCube.TaxItem AS TaxItem,
  I_StRpTaxItemBoxCube.TaxCode AS TaxCode,
  I_StRpTaxItemBoxCube.TransactionTypeDetermination AS TransactionTypeDetermination,
  I_StRpTaxItemBoxCube.TaxBox AS TaxBox,
  I_StRpTaxItemBoxCube.TaxDeclnAmountType AS TaxDeclnAmountType,
  Taxgroupingversion.verstax AS TaxItemGroupingVersion,
  I_StRpTaxItemBoxCube.DebitCreditCode AS DebitCreditCode,
  I_StRpTaxItemBoxCube.TaxRate AS TaxRate,
  I_StRpTaxItemBoxCube.TaxType AS TaxType,
  I_StRpTaxItemBoxCube.PostingDate AS PostingDate,
  I_StRpTaxItemBoxCube.ReportingDate AS ReportingDate,
  I_StRpTaxItemBoxCube.TaxCalculationProcedure AS TaxCalculationProcedure,
  I_StRpTaxItemBoxCube.CompanyCodeCurrency AS CompanyCodeCurrency,
  _MaterialText.MaterialName AS MaterialName,
  _AccountingDocument._CompanyCode.VATRegistration AS VATRegistration,
  FinancialAccountType,
  I_ReceivablesPayablesItem.Material AS Material,
  stazf AS CashDiscountIsDeductible,
  CashDiscountAmtInCoCodeCrcy,
  ReportingCountry,
  case when DocumentItemText <> '' then DocumentItemText else case when AccountingDocumentHeaderText <> '' then AccountingDocumentHeaderText else _MaterialText.MaterialName end end as DocumentItemText AS MaterialNameendendasDocumentItemText,
  ReportingCurrency,
  _Customer.Customer AS Customer,
  _Supplier.Supplier AS Supplier,
  _Customer.AuthorizationGroup AS AuthorizationGroup,
  BusinessPartnerName
FROM I_StRpTaxItemBoxCube
LEFT OUTER JOIN I_ReceivablesPayablesItem 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_TimeDepdntVersAssgmtNext AS Taxgroupingversion ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material  -- association [1..*]
LEFT OUTER JOIN I_Currency AS _ReportingCurrency ON ReportingCurrency = _ReportingCurrency.Currency  -- association [0..1]
;