I_Withholdingtaxitem
Withholding Tax Item
I_Withholdingtaxitem (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Financial Operations
I_Withholdingtaxitem is a Basic CDS View (Fact) that provides data about "Withholding Tax Item" in SAP S/4HANA. It reads from 1 data source (with_item) and exposes 54 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem, WithholdingTaxType. It has 8 associations to related views.
SAP Help Documentation
| Category | CDS Views for Transaction Data |
|---|---|
| Data Category | Fact |
| Status | Released |
This CDS view provides the prerequisites for answering questions about all relevant aspects of your withholding tax item information. This CDS view provides the data to answer the following business questions: Based on which accounting document is the withholding tax item calculated? To which fiscal year does this accounting document belong? What is the company code of the accounting document containing this withholding tax item? What is the withholding tax amount for a given accounting document? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have read access: These restriction types are edited in the Maintain Business Roles app. Users who want to use this CDS view must have read access to the company code field via the F_BKPF_BUK authorization object.
Structure
Important fields Important fields in this view include the following: Field Name Description ACCOUNTINGDOCUMENT Accounting document ACCOUNTINGDOCUMENTITEM Accounting document item COMPANYCODE Company code COMPANYCODECURRENCY Company code currency COUNTRY Country/region DOCUMENTCURRENCY Document currency FISCALYEAR Fiscal year GLAACOUNT G/L account WHLDGTAXAMTINCOCODECRCY Withholding tax amount in company code currency WHLDGTAXAMTINTRANSACCRCY Withholding tax amount in transaction currency WHLDGTAXBASEAMTINCOCODECRCY Withholding tax base amount in company code currency WHLDGTAXBASEAMTINTRANSACCRCY Withholding tax base amount in transaction currency WITHHOLDINGTAXCODE Withholding tax code WHLDGTAXEXMPTAMTINCOCDECRCY Withholding tax exempt amount in company code currency WHLDTAXEXMPTAMTINTRANSACCRCY Withholding tax exempt amount in transaction currency WITHHOLDINGTAXTYPE Withholding tax type
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Financial Operations |
| Application Component | FI-AR-IS |
| Capabilities | Data Source in SQL Select, Data Source for Defining CDS Entities |
| Package | Financial Operations for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| with_item | with_item | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_AccountingDocument | _AccountingDocument | $projection.CompanyCode = _AccountingDocument.CompanyCode and $projection.AccountingDocument = _AccountingDocument.AccountingDocument and $projection.FiscalYear = _AccountingDocument.FiscalYear |
| [0..1] | I_GLAccount | _GLAccount | $projection.GLAccount = _GLAccount.GLAccount and $projection.CompanyCode = _GLAccount.CompanyCode |
| [0..1] | I_Extendedwhldgtaxcode | _WithholdingTaxCode | $projection.Country = _WithholdingTaxCode.Country and $projection.WithholdingTaxType = _WithholdingTaxCode.WithholdingTaxType and $projection.WithholdingTaxCode = _WithholdingTaxCode.WithholdingTaxCode |
| [0..1] | I_Currency | _CompanyCodeCurrency | $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency |
| [0..1] | I_Currency | _DocumentCurrency | $projection.DocumentCurrency = _DocumentCurrency.Currency |
| [0..1] | I_Currency | _AdditionalCurrency1 | $projection.AdditionalCurrency1 = _AdditionalCurrency1.Currency |
| [0..1] | I_Currency | _AdditionalCurrency2 | $projection.AdditionalCurrency2 = _AdditionalCurrency2.Currency |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Withholding Tax Item | view | |
| AbapCatalog.sqlViewName | IFIWTAXITEM | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| Analytics.dataCategory | #FACT | view | |
| Analytics.dataExtraction.enabled | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (54)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | bukrs | Company Code | |
| KEY | AccountingDocument | belnr | Document Number of an Accounting Document | |
| KEY | FiscalYear | gjahr | Settlement Year | |
| KEY | AccountingDocumentItem | buzei | Number of Line Item Within Accounting Document | |
| KEY | WithholdingTaxType | witht | Indicator for Withholding Tax Type | |
| WithholdingTaxCode | wt_withcd | Withholding Tax Code | ||
| WhldgTaxBaseAmtInCoCodeCrcy | wt_qsshh | Withholding Tax Base Amount (Local Currency) | ||
| WhldgTaxBaseAmtInTransacCrcy | wt_qsshb | Withholding Tax Base Amount in Document Currency | ||
| WhldgTaxBaseAmtInAddlCrcy2 | wt_qssh2 | Withholding Tax Base Amount in Second Local Currency | ||
| WhldgTaxBaseAmtInAddlCrcy3 | wt_qssh3 | Withholding Tax Base Amount in Third Local Currency | ||
| WhldgTaxBaseIsEnteredManually | wt_basman | Indicator: Withholding Tax Base Amount Entered Manually | ||
| WhldgTaxAmtInCoCodeCrcy | wt_qbshh | Withholding Tax Amount in Local Currency | ||
| WhldgTaxAmtInTransacCrcy | wt_qbshb | Withholding Tax Amount in Document Currency | ||
| WhldgTaxAmtInAddlCrcy2 | wt_qbsh2 | Withholding Tax Amount in Second Local Currency | ||
| WhldgTaxAmtInAddlCrcy3 | wt_qbsh3 | Withholding Tax Amount in Third Local Currency | ||
| WhldgTaxIsEnteredManually | wt_amnman | Indicator: Withholding Tax Amount Entered Manually | ||
| WhldgTaxItemStatus | wt_stat | Line Item Status | ||
| WhldgTaxExmptAmtInCoCodeCrcy | wt_qsfhh | Amount Exempt from Withholding Tax in Local Currency | ||
| WhldgTaxExmptAmtInTransacCrcy | wt_qsfhb | Amount Exempt from Withholding Tax in Document Currency | ||
| WhldgTaxExmptAmtInAddlCrcy2 | wt_qsfh2 | Amount Exempt from Withholding Tax in 2nd Local Currency | ||
| WhldgTaxExmptAmtInAddlCrcy3 | wt_qsfh3 | Amount Exempt from Withholding Tax in 3rd Local Currency | ||
| WhldgTaxExmptCertificate | wt_wtexmn | Exemption Certificate Number | ||
| FinancialAccountType | koart | Account type | ||
| CustomerSupplierAccount | wt_acco | Vendor/Customer Account Number | ||
| GLAccount | hkont | General Ledger Account | ||
| SupplierRecipientType | qsrec | Type of Recipient | ||
| ClearingAccountingDocument | augbl | Document Number of the Clearing Document | ||
| ClearingDate | augdt | Clearing Date | ||
| WithholdingTaxExmptPercent | wt_qszrt | Exemption Rate | ||
| WithholdingTaxPercent | qsatz | Withholding Tax Rate | ||
| IsSelfWhldgTax | wt_slfwtpd | Indicator: Entry Posted as Self-Withholding Tax | ||
| IsGrossingUp | wt_gruwtpd | Indicator: Entry Posted as "Grossing Up" | ||
| WithholdingTaxCertificate | ctnumber | Withholding Tax Certificate Number | ||
| WhldgTaxCertDate | ctissuedate | Issue or Print Date of Withholding Tax Certificate | ||
| IN_ClrgWithholdingTaxDocument | j_1iintchln | Challan Number | ||
| IN_ClrgWithholdingTaxDate | j_1iintchdt | Challan Date | ||
| IN_ReferenceDocumentNumber | j_1irebzg | Document No. of the Invoice to Which the Transaction Belongs | ||
| DownPaymentIsCleared | wt_downc | Indicator: Entry Belongs to a Down Payment Clearing Item | ||
| DocumentIsPartialExempted | fiwtin_par_exem | Partial Exemption | ||
| IN_WhldgTaxRecordTypeTrans | j_1iewtrec | Record type for EWT transactions-India | ||
| _CompanyCode | _CompanyCode | |||
| _AccountingDocument | _AccountingDocument | |||
| _GLAccount | _GLAccount | |||
| _WithholdingTaxCode | _WithholdingTaxCode | |||
| Country | _CompanyCode | Country | Country/Region Key | |
| CompanyCodeCurrency | _CompanyCode | Currency | Valuation Crcy | |
| DocumentCurrency | _AccountingDocument | Currency | Valuation Crcy | |
| AdditionalCurrency1 | _AccountingDocument | AdditionalCurrency1 | Additional Currency 1 | |
| AdditionalCurrency2 | _AccountingDocument | AdditionalCurrency2 | Additional Currency 2 | |
| RptgWhldgTxBaseAmtInCoCodeCrcy | j_1af_wt_repbs | Withholding tax base amount in local currency for reporting | ||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _AdditionalCurrency1 | _AdditionalCurrency1 | |||
| _AdditionalCurrency2 | _AdditionalCurrency2 |
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_Withholdingtaxitem.
-- 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: IFIWTAXITEM
CREATE VIEW I_Withholdingtaxitem AS
SELECT
bukrs AS CompanyCode,
belnr AS AccountingDocument,
gjahr AS FiscalYear,
buzei AS AccountingDocumentItem,
witht AS WithholdingTaxType,
wt_withcd AS WithholdingTaxCode,
wt_qsshh AS WhldgTaxBaseAmtInCoCodeCrcy,
wt_qsshb AS WhldgTaxBaseAmtInTransacCrcy,
wt_qssh2 AS WhldgTaxBaseAmtInAddlCrcy2,
wt_qssh3 AS WhldgTaxBaseAmtInAddlCrcy3,
wt_basman AS WhldgTaxBaseIsEnteredManually,
wt_qbshh AS WhldgTaxAmtInCoCodeCrcy,
wt_qbshb AS WhldgTaxAmtInTransacCrcy,
wt_qbsh2 AS WhldgTaxAmtInAddlCrcy2,
wt_qbsh3 AS WhldgTaxAmtInAddlCrcy3,
wt_amnman AS WhldgTaxIsEnteredManually,
wt_stat AS WhldgTaxItemStatus,
wt_qsfhh AS WhldgTaxExmptAmtInCoCodeCrcy,
wt_qsfhb AS WhldgTaxExmptAmtInTransacCrcy,
wt_qsfh2 AS WhldgTaxExmptAmtInAddlCrcy2,
wt_qsfh3 AS WhldgTaxExmptAmtInAddlCrcy3,
wt_wtexmn AS WhldgTaxExmptCertificate,
koart AS FinancialAccountType,
wt_acco AS CustomerSupplierAccount,
hkont AS GLAccount,
qsrec AS SupplierRecipientType,
augbl AS ClearingAccountingDocument,
augdt AS ClearingDate,
wt_qszrt AS WithholdingTaxExmptPercent,
qsatz AS WithholdingTaxPercent,
wt_slfwtpd AS IsSelfWhldgTax,
wt_gruwtpd AS IsGrossingUp,
ctnumber AS WithholdingTaxCertificate,
ctissuedate AS WhldgTaxCertDate,
j_1iintchln AS IN_ClrgWithholdingTaxDocument,
j_1iintchdt AS IN_ClrgWithholdingTaxDate,
j_1irebzg AS IN_ReferenceDocumentNumber,
wt_downc AS DownPaymentIsCleared,
fiwtin_par_exem AS DocumentIsPartialExempted,
j_1iewtrec AS IN_WhldgTaxRecordTypeTrans,
_CompanyCode.Country AS Country,
_CompanyCode.Currency AS CompanyCodeCurrency,
_AccountingDocument.Currency AS DocumentCurrency,
_AccountingDocument.AdditionalCurrency1 AS AdditionalCurrency1,
_AccountingDocument.AdditionalCurrency2 AS AdditionalCurrency2,
j_1af_wt_repbs AS RptgWhldgTxBaseAmtInCoCodeCrcy
FROM with_item
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_AccountingDocument AS _AccountingDocument ON CompanyCode = _AccountingDocument.CompanyCode AND AccountingDocument = _AccountingDocument.AccountingDocument AND FiscalYear = _AccountingDocument.FiscalYear -- association [0..1]
LEFT OUTER JOIN I_GLAccount AS _GLAccount ON GLAccount = _GLAccount.GLAccount AND CompanyCode = _GLAccount.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Extendedwhldgtaxcode AS _WithholdingTaxCode ON Country = _WithholdingTaxCode.Country AND WithholdingTaxType = _WithholdingTaxCode.WithholdingTaxType AND WithholdingTaxCode = _WithholdingTaxCode.WithholdingTaxCode -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _DocumentCurrency ON DocumentCurrency = _DocumentCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _AdditionalCurrency1 ON AdditionalCurrency1 = _AdditionalCurrency1.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _AdditionalCurrency2 ON AdditionalCurrency2 = _AdditionalCurrency2.Currency -- 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