C_QA_StRpWhldgTaxItemCube

DDL: C_QA_STRPWHLDGTAXITEMCUBE SQL: CSRQAWHLDGTXITMC Type: view CONSUMPTION

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)

SourceAliasJoin Type
C_QA_StRpAggrgdWhldgTaxItem WHTAggrItem from

Annotations (14)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;