I_Withholdingtaxitem

DDL: I_WITHHOLDINGTAXITEM SQL: IFIWTAXITEM Type: view BASIC

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

CategoryCDS Views for Transaction Data
Data CategoryFact
StatusReleased
Purpose
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

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessFinancial Operations
Application ComponentFI-AR-IS
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities
PackageFinancial Operations for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
with_item with_item from

Associations (8)

CardinalityTargetAliasCondition
[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)

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

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