C_StRpWithholdingTaxItemQuery
Withholding Tax Item Query
C_StRpWithholdingTaxItemQuery is a Consumption CDS View that provides data about "Withholding Tax Item Query" in SAP S/4HANA. It reads from 1 data source (I_StRpWhldgTaxItem) and exposes 107 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem, WithholdingTaxType.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpWhldgTaxItem | I_StRpWhldgTaxItem | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| Analytics.query | true | view | |
| Analytics.technicalName | CSRWHLDGTXITMQ | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| EndUserText.label | Withholding Tax Item Query | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view |
Fields (107)
| 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 | |
| WithholdingTaxCode | WithholdingTaxCode | WTax Code | ||
| OfficialWhldgTaxCode | OfficialWhldgTaxCode | |||
| Country | Country | Venue: Ctry/Reg | ||
| BusinessPlace | BusinessPlace | Business place | ||
| BusinessArea | BusinessArea | Business Area | ||
| TaxSection | TaxSection | Tax Section | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| Debtor | Debtor | Debtor | ||
| Creditor | Creditor | Supplier | ||
| CustomerName | CustomerName | Name of Customer | ||
| BPCustomerName | BPCustomerName | Name of Customer | ||
| BusinessPartner | BusinessPartner | Customer/Supplier | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| ReportingDate | ReportingDate | |||
| WithholdingTaxReportingDate | WithholdingTaxReportingDate | Withholding Tax Reporting Date | ||
| ClearingDate | ClearingDate | Clearing Date | ||
| ClearingAccountingDocument | ClearingAccountingDocument | Clearing Journal Entry | ||
| ClearingJournalEntry | ClearingJournalEntry | Clrng doc. | ||
| PostingKey | PostingKey | Posting Key | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| DocumentReferenceID | DocumentReferenceID | Reference | ||
| SpecialGLCode | SpecialGLCode | Special G/L Ind | ||
| SpecialGLTransactionType | SpecialGLTransactionType | Transact.Type | ||
| IsReversed | IsReversed | Reversed? | ||
| IsReversal | IsReversal | Reversal doc. | ||
| ReverseDocument | ReverseDocument | Reversed With | ||
| ReportingCurrency | ReportingCurrency | Currency | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| AdditionalCurrency1 | AdditionalCurrency1 | Local curr. 2 | ||
| AdditionalCurrency2 | AdditionalCurrency2 | Local curr. 3 | ||
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | Local Crcy Amt | ||
| AmountInTransactionCurrency | AmountInTransactionCurrency | Pt Crcy Amt | ||
| AmountInAdditionalCurrency1 | AmountInAdditionalCurrency1 | Amount in Additional Currency 1 | ||
| AmountInAdditionalCurrency2 | AmountInAdditionalCurrency2 | LC2 Amount | ||
| TaxAmountInCoCodeCrcy | TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | ||
| TaxAmount | TaxAmount | Tax Amt in Rptg Crcy | ||
| TaxAmountInAdditionalCurrency1 | TaxAmountInAdditionalCurrency1 | LC 2 Tax | ||
| TaxAmountInAdditionalCurrency2 | TaxAmountInAdditionalCurrency2 | LC 3 Tax | ||
| WhldgTaxBaseAmtInCoCodeCrcy | WhldgTaxBaseAmtInCoCodeCrcy | With. Tax Base in Company Code Currency | ||
| WhldgTaxBaseAmtInAddlCrcy2 | WhldgTaxBaseAmtInAddlCrcy2 | With. Tax Base in Additional Currency 2 | ||
| WhldgTaxBaseAmtInAddlCrcy3 | WhldgTaxBaseAmtInAddlCrcy3 | With. Tax Base in Additional Currency 3 | ||
| WhldgTaxBaseAmtInTransacCrcy | WhldgTaxBaseAmtInTransacCrcy | With. Tax Base in Transaction Currency | ||
| WhldgTaxAmtInCoCodeCrcy | WhldgTaxAmtInCoCodeCrcy | With. Tax Amt. in Company Code Currency | ||
| WhldgTaxAmtInAddlCrcy2 | WhldgTaxAmtInAddlCrcy2 | With. Tax Amt. in Additional Currency 2 | ||
| WhldgTaxAmtInAddlCrcy3 | WhldgTaxAmtInAddlCrcy3 | With. Tax Amt. in Additional Currency 3 | ||
| WhldgTaxDeductedNetAmount | WhldgTaxDeductedNetAmount | With. Tax Net Deducted Amount | ||
| WhldgTaxAmtInTransacCrcy | WhldgTaxAmtInTransacCrcy | With. Tax Amt. in Transaction Currency | ||
| WhldgTaxBaseIsEnteredManually | WhldgTaxBaseIsEnteredManually | |||
| WhldgTaxIsEnteredManually | WhldgTaxIsEnteredManually | |||
| WhldgTaxItemStatus | WhldgTaxItemStatus | |||
| WhldgTaxExmptAmtInCoCodeCrcy | WhldgTaxExmptAmtInCoCodeCrcy | |||
| WhldgTaxExmptAmtInTransacCrcy | WhldgTaxExmptAmtInTransacCrcy | |||
| WhldgTaxExmptAmtInAddlCrcy2 | WhldgTaxExmptAmtInAddlCrcy2 | |||
| WhldgTaxExmptAmtInAddlCrcy3 | WhldgTaxExmptAmtInAddlCrcy3 | |||
| WhldgTaxExmptCertificate | WhldgTaxExmptCertificate | Exemption Number | ||
| GLAccount | GLAccount | General Ledger | ||
| SupplierRecipientType | SupplierRecipientType | |||
| WithholdingTaxExmptPercent | WithholdingTaxExmptPercent | Exemption Rate | ||
| WithholdingTaxPercent | WithholdingTaxPercent | |||
| IsSelfWhldgTax | IsSelfWhldgTax | |||
| IsGrossingUp | IsGrossingUp | |||
| WithholdingTaxCertificate | WithholdingTaxCertificate | WHT Certificate | ||
| WhldgTaxCertDate | WhldgTaxCertDate | |||
| WithholdingTaxIncomeType | WithholdingTaxIncomeType | |||
| WhldgTaxDocumentType | WhldgTaxDocumentType | Withholding Tax Document Type | ||
| Name | Name | Name | ||
| BusinessPartnerName | BusinessPartnerName | Business Partner Name | ||
| TaxNumber1 | TaxNumber1 | Tax Number 1 | ||
| TaxNumber2 | TaxNumber2 | Tax Number 2 | ||
| TaxNumber3 | TaxNumber3 | Tax Number 3 | ||
| TaxNumber4 | TaxNumber4 | Tax Number 4 | ||
| TaxNumber5 | TaxNumber5 | Tax Number 5 | ||
| VATRegistration | VATRegistration | VAT Registration No. | ||
| TaxNumberType | TaxNumberType | Tax number type | ||
| PostalCode | PostalCode | Postal Code | ||
| CityName | CityName | City Name | ||
| StreetName | StreetName | Street Name | ||
| HouseNumber | HouseNumber | House Number | ||
| HouseNumberSupplementText | HouseNumberSupplementText | House Number Supplement | ||
| OrganizationBPName1 | OrganizationBPName1 | Organization BP Name 1 | ||
| OrganizationBPName2 | OrganizationBPName2 | Organization BP Name 2 | ||
| SearchTerm1 | SearchTerm1 | Search Term | ||
| OrganizationFoundationDate | OrganizationFoundationDate | Organization Foundation Date | ||
| POBoxPostalCode | POBoxPostalCode | PO Box Postal Code | ||
| POBox | POBox | PO Box | ||
| Region | Region | Region | ||
| BusinessPartnerCountry | BusinessPartnerCountry | Business Partner Country/Region | ||
| PaymentIsNotified | PaymentIsNotified | Payment is Notified | ||
| DocumentItemText | DocumentItemText | Text | ||
| Language | Language | Report Text Language | ||
| IsNaturalPerson | IsNaturalPerson | Natural person | ||
| EmailAddress | EmailAddress | E-Mail Address | ||
| ItemIsReportingRelevant | ItemIsReportingRelevant | Item Is Reporting Relevant | ||
| TaxItemIsZeroRated | TaxItemIsZeroRated | Tax Item Is Zero Rated | ||
| BusinessPartnerNumber | BusinessPartnerNumber | |||
| AbsoluteExchangeRate | AbsoluteExchangeRate | Absolute Exchange Rate | ||
| ExchangeRateType | ExchangeRateType | Exch. Rate Type |
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_StRpWithholdingTaxItemQuery.
-- 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 C_StRpWithholdingTaxItemQuery AS
SELECT
CompanyCode,
AccountingDocument,
FiscalYear,
AccountingDocumentItem,
WithholdingTaxType,
StatryRptgEntity,
StatryRptCategory,
StatryRptRunID,
WithholdingTaxCode,
OfficialWhldgTaxCode,
Country,
BusinessPlace,
BusinessArea,
TaxSection,
FinancialAccountType,
Debtor,
Creditor,
CustomerName,
BPCustomerName,
BusinessPartner,
FiscalPeriod,
PostingDate,
DocumentDate,
ReportingDate,
WithholdingTaxReportingDate,
ClearingDate,
ClearingAccountingDocument,
ClearingJournalEntry,
PostingKey,
AccountingDocumentType,
DocumentReferenceID,
SpecialGLCode,
SpecialGLTransactionType,
IsReversed,
IsReversal,
ReverseDocument,
ReportingCurrency,
TransactionCurrency,
AdditionalCurrency1,
AdditionalCurrency2,
AmountInCompanyCodeCurrency,
AmountInTransactionCurrency,
AmountInAdditionalCurrency1,
AmountInAdditionalCurrency2,
TaxAmountInCoCodeCrcy,
TaxAmount,
TaxAmountInAdditionalCurrency1,
TaxAmountInAdditionalCurrency2,
WhldgTaxBaseAmtInCoCodeCrcy,
WhldgTaxBaseAmtInAddlCrcy2,
WhldgTaxBaseAmtInAddlCrcy3,
WhldgTaxBaseAmtInTransacCrcy,
WhldgTaxAmtInCoCodeCrcy,
WhldgTaxAmtInAddlCrcy2,
WhldgTaxAmtInAddlCrcy3,
WhldgTaxDeductedNetAmount,
WhldgTaxAmtInTransacCrcy,
WhldgTaxBaseIsEnteredManually,
WhldgTaxIsEnteredManually,
WhldgTaxItemStatus,
WhldgTaxExmptAmtInCoCodeCrcy,
WhldgTaxExmptAmtInTransacCrcy,
WhldgTaxExmptAmtInAddlCrcy2,
WhldgTaxExmptAmtInAddlCrcy3,
WhldgTaxExmptCertificate,
GLAccount,
SupplierRecipientType,
WithholdingTaxExmptPercent,
WithholdingTaxPercent,
IsSelfWhldgTax,
IsGrossingUp,
WithholdingTaxCertificate,
WhldgTaxCertDate,
WithholdingTaxIncomeType,
WhldgTaxDocumentType,
Name,
BusinessPartnerName,
TaxNumber1,
TaxNumber2,
TaxNumber3,
TaxNumber4,
TaxNumber5,
VATRegistration,
TaxNumberType,
PostalCode,
CityName,
StreetName,
HouseNumber,
HouseNumberSupplementText,
OrganizationBPName1,
OrganizationBPName2,
SearchTerm1,
OrganizationFoundationDate,
POBoxPostalCode,
POBox,
Region,
BusinessPartnerCountry,
PaymentIsNotified,
DocumentItemText,
Language,
IsNaturalPerson,
EmailAddress,
ItemIsReportingRelevant,
TaxItemIsZeroRated,
BusinessPartnerNumber,
AbsoluteExchangeRate,
ExchangeRateType
FROM I_StRpWhldgTaxItem
;
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