I_RS_StRpWithholdingTaxItemC
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)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpWhldgTaxItem | wht | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- 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
- S/4HANA CDS View Deprecation: What You Need to Know
- 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