I_RS_StRpWithholdingTaxItemC

DDL: I_RS_STRPWITHHOLDINGTAXITEMC Type: view_entity COMPOSITE

Serbia WHT Reporting - Cube

I_RS_StRpWithholdingTaxItemC is a Composite CDS View (Cube) that provides data about "Serbia WHT Reporting - Cube" in SAP S/4HANA. It reads from 1 data source (I_StRpWhldgTaxItem) and exposes 23 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem, WithholdingTaxType. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_StRpWhldgTaxItem wht from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_Extendedwhldgtaxcode _taxcode _taxcode.Country = wht.Country and _taxcode.WithholdingTaxType = wht.WithholdingTaxType and _taxcode.WithholdingTaxCode = wht.WithholdingTaxCode
[0..1] I_Businesspartnerwhldgtax lfbw lfbw.CompanyCode = wht.CompanyCode and lfbw.WithholdingTaxType = wht.WithholdingTaxType and lfbw.Supplier = wht.Creditor
[0..1] I_WhldgTaxCountryCategory _revcode _revcode.Country = 'RS' and _revcode.WithholdingRevenueCountry = wht.BusinessPartnerCountry

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Serbia WHT Reporting - Cube view
VDM.viewType #COMPOSITE view
Analytics.internalName #LOCAL view
Analytics.dataCategory #CUBE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
Metadata.allowExtensions true view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocumentItem AccountingDocumentItem Posting View Item
KEY WithholdingTaxType WithholdingTaxType WTax Type
KEY StatryRptgEntity StatryRptgEntity Reporting Entity
KEY StatryRptCategory StatryRptCategory Report ID
KEY StatryRptRunID StatryRptRunID Report Run ID
PostingDate PostingDate Posting Date for GR
ClearingDate ClearingDate Clearing Date
IsReversed IsReversed Reversed?
IsReversal IsReversal Reversal doc.
ReportingCurrency ReportingCurrency Currency
BusinessPartner BusinessPartner Issuing Authority
BusinessPartnerCountry BusinessPartnerCountry BP Ctry/Reg.
WhldgTaxAmtInCoCodeCrcy WhldgTaxAmtInCoCodeCrcy
curr232endasWhldgTaxBaseAmtInCoCodeCrcy
WithholdingTaxPercent _taxcode WithholdingTaxPercent
IsGrossingUp IsGrossingUp
WithholdingTaxIncomeType WithholdingTaxIncomeType
WhldgTaxDocumentType WhldgTaxDocumentType 3-Byte field
SupplierRecipientType I_StRpWhldgTaxItem SupplierRecipientType
SupplierFullName

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_RS_StRpWithholdingTaxItemC.
-- 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.

CREATE VIEW I_RS_StRpWithholdingTaxItemC AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  AccountingDocumentItem,
  WithholdingTaxType,
  StatryRptgEntity,
  StatryRptCategory,
  StatryRptRunID,
  PostingDate,
  ClearingDate,
  IsReversed,
  IsReversal,
  ReportingCurrency,
  BusinessPartner,
  BusinessPartnerCountry,
  WhldgTaxAmtInCoCodeCrcy,
  case BusinessPartnerCountry when 'RS' then WhldgTaxBaseAmtInCoCodeCrcy else cast(0 as abap.curr( 23, 2 )) end as WhldgTaxBaseAmtInCoCodeCrcy AS curr232endasWhldgTaxBaseAmtInCoCodeCrcy,
  _taxcode.WithholdingTaxPercent AS WithholdingTaxPercent,
  IsGrossingUp,
  WithholdingTaxIncomeType,
  WhldgTaxDocumentType,
  wht.SupplierRecipientType AS SupplierRecipientType,
  concat_with_space(wht._Supplier.BusinessPartnerName1,concat_with_space(wht._Supplier.BusinessPartnerName2,concat_with_space(wht._Supplier.BusinessPartnerName3,wht._Supplier.BusinessPartnerName4,1),1),1) AS SupplierFullName
FROM I_StRpWhldgTaxItem AS wht
LEFT OUTER JOIN I_Extendedwhldgtaxcode AS _taxcode ON _taxcode.Country = wht.Country AND _taxcode.WithholdingTaxType = wht.WithholdingTaxType AND _taxcode.WithholdingTaxCode = wht.WithholdingTaxCode  -- association [0..1]
LEFT OUTER JOIN I_Businesspartnerwhldgtax AS lfbw ON lfbw.CompanyCode = wht.CompanyCode AND lfbw.WithholdingTaxType = wht.WithholdingTaxType AND lfbw.Supplier = wht.Creditor  -- association [0..1]
LEFT OUTER JOIN I_WhldgTaxCountryCategory AS _revcode ON _revcode.Country = 'RS' AND _revcode.WithholdingRevenueCountry = wht.BusinessPartnerCountry  -- association [0..1]
;