C_WithholdingTaxTrace
EWHT Trace Withholding Tax Lines
C_WithholdingTaxTrace is a Consumption CDS View that provides data about "EWHT Trace Withholding Tax Lines" in SAP S/4HANA. It reads from 1 data source (I_WithholdingTaxTrace) and exposes 74 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem, WithholdingTaxType. It has 2 associations to related views. It is exposed through 2 OData services (UI_WITHHOLDINGANALYSISDISPLAY, UI_WITHHOLDINGTAXANALYSIS). Part of development package ODATA_EWHT_TRACE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_WithholdingTaxTrace | I_WithholdingTaxTrace | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | C_WithholdingTaxFormula | _Formula | $projection.AccountingDocument = _Formula.AccountingDocument and $projection.CompanyCode = _Formula.CompanyCode and $projection.FiscalYear = _Formula.FiscalYear and $projection.AccountingDocumentItem = _Formula.AccountingDocumentItem and $projection.WithholdingTaxType = _Formula.WithholdingTaxType |
| [1..*] | C_WhldgTaxRateByThreshold | _Rules | $projection.AccountingDocument = _Rules.AccountingDocument and $projection.CompanyCode = _Rules.CompanyCode and $projection.FiscalYear = _Rules.FiscalYear and $projection.AccountingDocumentItem = _Rules.AccountingDocumentItem and $projection.WithholdingTaxType = _Rules.WithholdingTaxType |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | EWHT Trace Withholding Tax Lines | view | |
| Search.searchable | true | view | |
| Metadata.allowExtensions | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.query.implementedBy | ABAP:CL_EWHT_TRACE_LIST_BUILDER | view |
OData Services (2)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| UI_WITHHOLDINGANALYSISDISPLAY | UI_WHTANALYSISDISPLAY | V2 | C1 | NOT_RELEASED |
| UI_WITHHOLDINGTAXANALYSIS | UI_WITHHOLDINGTAXANALYSIS | V4 | C1 | NOT_RELEASED |
Fields (74)
| 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 | |
| WithholdingTaxCode | WithholdingTaxCode | WTax Code | ||
| WhldgTaxBaseAmtInCoCodeCrcy | WhldgTaxBaseAmtInCoCodeCrcy | |||
| WhldgTaxBaseAmtInTransacCrcy | WhldgTaxBaseAmtInTransacCrcy | |||
| WhldgTaxBaseAmtInAddlCrcy2 | WhldgTaxBaseAmtInAddlCrcy2 | |||
| WhldgTaxBaseAmtInAddlCrcy3 | WhldgTaxBaseAmtInAddlCrcy3 | |||
| WhldgTaxBaseIsEnteredManually | WhldgTaxBaseIsEnteredManually | |||
| WhldgTaxAmtInCoCodeCrcy | WhldgTaxAmtInCoCodeCrcy | |||
| WhldgTaxAmtInTransacCrcy | WhldgTaxAmtInTransacCrcy | |||
| WhldgTaxAmtInAddlCrcy2 | WhldgTaxAmtInAddlCrcy2 | |||
| WhldgTaxAmtInAddlCrcy3 | WhldgTaxAmtInAddlCrcy3 | |||
| WhldgTaxIsEnteredManually | WhldgTaxIsEnteredManually | |||
| WhldgTaxItemStatus | WhldgTaxItemStatus | |||
| WhldgTaxExmptAmtInCoCodeCrcy | WhldgTaxExmptAmtInCoCodeCrcy | |||
| WhldgTaxExmptAmtInTransacCrcy | WhldgTaxExmptAmtInTransacCrcy | |||
| WhldgTaxExmptAmtInAddlCrcy2 | WhldgTaxExmptAmtInAddlCrcy2 | |||
| WhldgTaxExmptAmtInAddlCrcy3 | WhldgTaxExmptAmtInAddlCrcy3 | |||
| WhldgTaxExmptCertificate | WhldgTaxExmptCertificate | Exemption Number | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| CustomerSupplierAccount | CustomerSupplierAccount | |||
| GLAccount | GLAccount | General Ledger | ||
| SupplierRecipientType | SupplierRecipientType | |||
| ClearingAccountingDocument | ClearingAccountingDocument | Clearing Journal Entry | ||
| ClearingDate | ClearingDate | Clearing Date | ||
| WithholdingTaxExmptPercent | WithholdingTaxExmptPercent | Exemption Rate | ||
| WithholdingTaxPercent | WithholdingTaxPercent | |||
| IsSelfWhldgTax | IsSelfWhldgTax | |||
| IsGrossingUp | IsGrossingUp | |||
| WithholdingTaxCertificate | WithholdingTaxCertificate | WHT Certificate | ||
| WhldgTaxCertDate | WhldgTaxCertDate | |||
| IN_ClrgWithholdingTaxDocument | IN_ClrgWithholdingTaxDocument | |||
| IN_ClrgWithholdingTaxDate | IN_ClrgWithholdingTaxDate | |||
| IN_ReferenceDocumentNumber | IN_ReferenceDocumentNumber | |||
| DownPaymentIsCleared | DownPaymentIsCleared | |||
| DocumentIsPartialExempted | DocumentIsPartialExempted | |||
| IN_WhldgTaxRecordTypeTrans | IN_WhldgTaxRecordTypeTrans | |||
| PostingDate | PostingDate | Posting Date for GR | ||
| IsReversed | IsReversed | Reversed? | ||
| DiscountAmtInCoCodeCrcy | DiscountAmtInCoCodeCrcy | |||
| WhldgTaxPostingTimePoint | WhldgTaxPostingTimePoint | |||
| Country | Country | Venue: Ctry/Reg | ||
| CompanyCodeCurrency | _CompanyCode | Currency | Valuation Crcy | |
| DocumentCurrency | _AccountingDocument | Currency | Valuation Crcy | |
| AdditionalCurrency1 | _AccountingDocument | AdditionalCurrency1 | Local curr. 2 | |
| AdditionalCurrency2 | _AccountingDocument | AdditionalCurrency2 | Local curr. 3 | |
| RptgWhldgTxBaseAmtInCoCodeCrcy | RptgWhldgTxBaseAmtInCoCodeCrcy | |||
| WhgdTaxPostingIsRequired | WhgdTaxPostingIsRequired | Post WTax Amount | ||
| IsUsedInPaymentTransaction | IsUsedInPaymentTransaction | Is Used In Payment Transaction | ||
| RequiredStartDate | RequiredStartDate | Req. Start Date | ||
| RequiredEndDate | RequiredEndDate | Req. End Date | ||
| WithholdingTaxValidFromDate | WithholdingTaxValidFromDate | Valid From | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| ExemptionDateBegin | ExemptionDateBegin | Exempt From | ||
| ExemptionDateEnd | ExemptionDateEnd | Exempt To | ||
| WhldgTaxRelevantPercent | WhldgTaxRelevantPercent | Percentage Subject to Tax | ||
| NoWhldgTaxReasonCode | NoWhldgTaxReasonCode | |||
| WhgdTxBaseAmtIsReduced | WhgdTxBaseAmtIsReduced | Base amnt reductn | ||
| ReferentialWhldgTaxType | ReferentialWhldgTaxType | |||
| ReversalJournalEntryFiscalYear | ReversalJournalEntryFiscalYear | Year | ||
| CountryName | CountryName | Country | ||
| WithholdingTaxTypeName | WithholdingTaxTypeName | |||
| WhldgTaxCodeName | WhldgTaxCodeName | |||
| BusinessPartnerName | BusinessPartnerName | Extracted Customer Name | ||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| _CompanyCode | _CompanyCode | |||
| _AccountingDocument | _AccountingDocument | |||
| _GLAccount | _GLAccount | |||
| _Formula | _Formula | |||
| _Rules | _Rules | |||
| _Country | _Country |
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_WithholdingTaxTrace.
-- 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_WithholdingTaxTrace AS
SELECT
CompanyCode,
AccountingDocument,
FiscalYear,
AccountingDocumentItem,
WithholdingTaxType,
WithholdingTaxCode,
WhldgTaxBaseAmtInCoCodeCrcy,
WhldgTaxBaseAmtInTransacCrcy,
WhldgTaxBaseAmtInAddlCrcy2,
WhldgTaxBaseAmtInAddlCrcy3,
WhldgTaxBaseIsEnteredManually,
WhldgTaxAmtInCoCodeCrcy,
WhldgTaxAmtInTransacCrcy,
WhldgTaxAmtInAddlCrcy2,
WhldgTaxAmtInAddlCrcy3,
WhldgTaxIsEnteredManually,
WhldgTaxItemStatus,
WhldgTaxExmptAmtInCoCodeCrcy,
WhldgTaxExmptAmtInTransacCrcy,
WhldgTaxExmptAmtInAddlCrcy2,
WhldgTaxExmptAmtInAddlCrcy3,
WhldgTaxExmptCertificate,
FinancialAccountType,
CustomerSupplierAccount,
GLAccount,
SupplierRecipientType,
ClearingAccountingDocument,
ClearingDate,
WithholdingTaxExmptPercent,
WithholdingTaxPercent,
IsSelfWhldgTax,
IsGrossingUp,
WithholdingTaxCertificate,
WhldgTaxCertDate,
IN_ClrgWithholdingTaxDocument,
IN_ClrgWithholdingTaxDate,
IN_ReferenceDocumentNumber,
DownPaymentIsCleared,
DocumentIsPartialExempted,
IN_WhldgTaxRecordTypeTrans,
PostingDate,
IsReversed,
DiscountAmtInCoCodeCrcy,
WhldgTaxPostingTimePoint,
Country,
_CompanyCode.Currency AS CompanyCodeCurrency,
_AccountingDocument.Currency AS DocumentCurrency,
_AccountingDocument.AdditionalCurrency1 AS AdditionalCurrency1,
_AccountingDocument.AdditionalCurrency2 AS AdditionalCurrency2,
RptgWhldgTxBaseAmtInCoCodeCrcy,
WhgdTaxPostingIsRequired,
IsUsedInPaymentTransaction,
RequiredStartDate,
RequiredEndDate,
WithholdingTaxValidFromDate,
ValidityEndDate,
ExemptionDateBegin,
ExemptionDateEnd,
WhldgTaxRelevantPercent,
NoWhldgTaxReasonCode,
WhgdTxBaseAmtIsReduced,
ReferentialWhldgTaxType,
ReversalJournalEntryFiscalYear,
CountryName,
WithholdingTaxTypeName,
WhldgTaxCodeName,
BusinessPartnerName,
_CompanyCode.CompanyCodeName AS CompanyCodeName
FROM I_WithholdingTaxTrace
LEFT OUTER JOIN C_WithholdingTaxFormula AS _Formula ON AccountingDocument = _Formula.AccountingDocument AND CompanyCode = _Formula.CompanyCode AND FiscalYear = _Formula.FiscalYear AND AccountingDocumentItem = _Formula.AccountingDocumentItem AND WithholdingTaxType = _Formula.WithholdingTaxType -- association [1..*]
LEFT OUTER JOIN C_WhldgTaxRateByThreshold AS _Rules ON AccountingDocument = _Rules.AccountingDocument AND CompanyCode = _Rules.CompanyCode AND FiscalYear = _Rules.FiscalYear AND AccountingDocumentItem = _Rules.AccountingDocumentItem AND WithholdingTaxType = _Rules.WithholdingTaxType -- association [1..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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