C_QA_StRpWhldgTaxItemCube
Whitholding TaxItem Cube for Qatar
C_QA_StRpWhldgTaxItemCube is a Consumption CDS View (Cube) that provides data about "Whitholding TaxItem Cube for Qatar" in SAP S/4HANA. It reads from 1 data source (C_QA_StRpAggrgdWhldgTaxItem) and exposes 33 fields with key fields CompanyCode, AccountingDocument, FiscalYear, WithholdingTaxType, StatryRptgEntity.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| C_QA_StRpAggrgdWhldgTaxItem | WHTAggrItem | from |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSRQAWHLDGTXITMC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Whitholding TaxItem Cube for Qatar | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | 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 | |
| AbapCatalog.preserveKey | true | view |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | C_QA_StRpAggrgdWhldgTaxItem | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | C_QA_StRpAggrgdWhldgTaxItem | AccountingDocument | Journal Entry |
| KEY | FiscalYear | C_QA_StRpAggrgdWhldgTaxItem | FiscalYear | G/L Fiscal Year |
| KEY | WithholdingTaxType | C_QA_StRpAggrgdWhldgTaxItem | WithholdingTaxType | WTax Type |
| KEY | StatryRptgEntity | C_QA_StRpAggrgdWhldgTaxItem | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptCategory | C_QA_StRpAggrgdWhldgTaxItem | StatryRptCategory | Report ID |
| KEY | StatryRptRunID | C_QA_StRpAggrgdWhldgTaxItem | StatryRptRunID | Report Run ID |
| BusinessPartner | C_QA_StRpAggrgdWhldgTaxItem | BusinessPartner | Issuing Authority | |
| BusinessPartnerNumber | C_QA_StRpAggrgdWhldgTaxItem | BusinessPartnerNumber | ||
| BusinessPartnerName | C_QA_StRpAggrgdWhldgTaxItem | BusinessPartnerName | Extracted Customer Name | |
| WithholdingTaxCode | C_QA_StRpAggrgdWhldgTaxItem | WithholdingTaxCode | WTax Code | |
| WhldgTaxCodeName | _whtcode | WhldgTaxCodeName | ||
| OfficialWhldgTaxCode | C_QA_StRpAggrgdWhldgTaxItem | OfficialWhldgTaxCode | ||
| OfficialWhldgTaxCodeDesc | ||||
| ReferenceDocumentTypeName | pay | ReferenceDocumentTypeName | ||
| DocumentReferenceID | C_QA_StRpAggrgdWhldgTaxItem | DocumentReferenceID | Reference | |
| DocumentDate | C_QA_StRpAggrgdWhldgTaxItem | DocumentDate | Journal Entry Date | |
| PostingDate | C_QA_StRpAggrgdWhldgTaxItem | PostingDate | Posting Date for GR | |
| ReportingDate | C_QA_StRpAggrgdWhldgTaxItem | ReportingDate | ||
| ReportingCurrency | C_QA_StRpAggrgdWhldgTaxItem | ReportingCurrency | Currency | |
| DisplayCurrencyName | ||||
| WhldgTaxBaseAmtInCoCodeCrcy | C_QA_StRpAggrgdWhldgTaxItem | WhldgTaxBaseAmtInCoCodeCrcy | ||
| WhldgTaxAmtInCoCodeCrcy | C_QA_StRpAggrgdWhldgTaxItem | WhldgTaxAmtInCoCodeCrcy | ||
| WithholdingTaxPercent | C_QA_StRpAggrgdWhldgTaxItem | WithholdingTaxPercent | ||
| ItemIsReportingRelevant | C_QA_StRpAggrgdWhldgTaxItem | ItemIsReportingRelevant | Item Reporting Relv | |
| OrganizationBPName1 | C_QA_StRpAggrgdWhldgTaxItem | OrganizationBPName1 | Name 1 | |
| OrganizationBPName2 | C_QA_StRpAggrgdWhldgTaxItem | OrganizationBPName2 | Name 2 | |
| BusinessPartnerCountryName | ||||
| Language | ||||
| BPIdentificationType | idtype | BPIdentificationType | ID Type | |
| BPIdentificationNumber | idtype | BPIdentificationNumber | Logical System | |
| DocumentDate14asDocumentDateAsText | ||||
| PostingDate14asPostingDateAsText |
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 C_QA_StRpWhldgTaxItemCube.
-- 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: CSRQAWHLDGTXITMC
CREATE VIEW C_QA_StRpWhldgTaxItemCube AS
SELECT
WHTAggrItem.CompanyCode AS CompanyCode,
WHTAggrItem.AccountingDocument AS AccountingDocument,
WHTAggrItem.FiscalYear AS FiscalYear,
WHTAggrItem.WithholdingTaxType AS WithholdingTaxType,
WHTAggrItem.StatryRptgEntity AS StatryRptgEntity,
WHTAggrItem.StatryRptCategory AS StatryRptCategory,
WHTAggrItem.StatryRptRunID AS StatryRptRunID,
WHTAggrItem.BusinessPartner AS BusinessPartner,
WHTAggrItem.BusinessPartnerNumber AS BusinessPartnerNumber,
WHTAggrItem.BusinessPartnerName AS BusinessPartnerName,
WHTAggrItem.WithholdingTaxCode AS WithholdingTaxCode,
_whtcode.WhldgTaxCodeName AS WhldgTaxCodeName,
WHTAggrItem.OfficialWhldgTaxCode AS OfficialWhldgTaxCode,
concat(WHTAggrItem.OfficialWhldgTaxCode,concat_with_space(' -',offwtax.OfficialWhldgTaxCodeDesc,1)) AS OfficialWhldgTaxCodeDesc,
pay.ReferenceDocumentTypeName AS ReferenceDocumentTypeName,
WHTAggrItem.DocumentReferenceID AS DocumentReferenceID,
WHTAggrItem.DocumentDate AS DocumentDate,
WHTAggrItem.PostingDate AS PostingDate,
WHTAggrItem.ReportingDate AS ReportingDate,
WHTAggrItem.ReportingCurrency AS ReportingCurrency,
concat(WHTAggrItem.ReportingCurrency,concat_with_space(' -',WHTAggrItem.ReportingCurrency,1)) AS DisplayCurrencyName,
WHTAggrItem.WhldgTaxBaseAmtInCoCodeCrcy AS WhldgTaxBaseAmtInCoCodeCrcy,
WHTAggrItem.WhldgTaxAmtInCoCodeCrcy AS WhldgTaxAmtInCoCodeCrcy,
WHTAggrItem.WithholdingTaxPercent AS WithholdingTaxPercent,
WHTAggrItem.ItemIsReportingRelevant AS ItemIsReportingRelevant,
WHTAggrItem.OrganizationBPName1 AS OrganizationBPName1,
WHTAggrItem.OrganizationBPName2 AS OrganizationBPName2,
concat(_COUNTRY.Country,concat_with_space(' -',_COUNTRY.CountryName,1)) AS BusinessPartnerCountryName,
cast('E' as abap.lang(1)) AS Language,
idtype.BPIdentificationType AS BPIdentificationType,
idtype.BPIdentificationNumber AS BPIdentificationNumber,
concat(concat(concat(concat(substring(WHTAggrItem.DocumentDate,7,2),'/') ,substring(WHTAggrItem.DocumentDate,5,2)),'/') ,substring(WHTAggrItem.DocumentDate,1,4)) as DocumentDateAsText AS DocumentDate14asDocumentDateAsText,
concat(concat(concat(concat(substring(WHTAggrItem.PostingDate,7,2),'/') ,substring(WHTAggrItem.PostingDate,5,2)),'/') ,substring(WHTAggrItem.PostingDate,1,4)) as PostingDateAsText AS PostingDate14asPostingDateAsText
FROM C_QA_StRpAggrgdWhldgTaxItem AS WHTAggrItem
;
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