R_MngJrnlEntrWhgdTaxItem
Withholding Tax Item
R_MngJrnlEntrWhgdTaxItem is a Composite CDS View that provides data about "Withholding Tax Item" in SAP S/4HANA. It reads from 1 data source (I_Withholdingtaxitem) and exposes 41 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem, WithholdingTaxType. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Withholdingtaxitem | _Item | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ExtendedWhldgTaxCodeText | _WithholdingTaxCodeText | $projection.WithholdingTaxType = _WithholdingTaxCodeText.WithholdingTaxType and $projection.WithholdingTaxCode = _WithholdingTaxCodeText.WithholdingTaxCode and $projection.Country = _WithholdingTaxCodeText.CountryCode and _WithholdingTaxCodeText.Language = $session.system_language |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Withholding Tax Item | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (41)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | FiscalYear | G/L Fiscal Year | ||
| KEY | AccountingDocumentItem | AccountingDocumentItem | Posting View Item | |
| KEY | WithholdingTaxType | WithholdingTaxType | WTax Type | |
| WithholdingTaxCode | WTax Code | |||
| WhldgTaxBaseAmtInCoCodeCrcy | ||||
| WhldgTaxBaseAmtInTransacCrcy | ||||
| WhldgTaxBaseAmtInAddlCrcy2 | ||||
| WhldgTaxBaseAmtInAddlCrcy3 | ||||
| WhldgTaxBaseIsEnteredManually | WhldgTaxBaseIsEnteredManually | W/Tax Base Man. | ||
| WhldgTaxAmtInCoCodeCrcy | ||||
| WhldgTaxAmtInTransacCrcy | ||||
| WhldgTaxAmtInAddlCrcy2 | ||||
| WhldgTaxAmtInAddlCrcy3 | ||||
| WhldgTaxIsEnteredManually | WhldgTaxIsEnteredManually | WTax Amt Ent. Man. | ||
| WhldgTaxItemStatus | WhldgTaxItemStatus | Line Item Status | ||
| WhldgTaxExmptAmtInCoCodeCrcy | WhldgTaxExmptAmtInCoCodeCrcy | WTax-Ex. Amt LC | ||
| WhldgTaxExmptAmtInTransacCrcy | WhldgTaxExmptAmtInTransacCrcy | WTax-Ex. Amt FC | ||
| WhldgTaxExmptAmtInAddlCrcy2 | WhldgTaxExmptAmtInAddlCrcy2 | WTax-Ex.Amt 2nd LC | ||
| WhldgTaxExmptAmtInAddlCrcy3 | WhldgTaxExmptAmtInAddlCrcy3 | WTax-Ex. Amt 3rd LC | ||
| WhldgTaxExmptCertificate | WhldgTaxExmptCertificate | Exemption Number | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| CustomerSupplierAccount | Cust./Vend. Acct | |||
| GLAccount | GLAccount | General Ledger | ||
| SupplierRecipientType | SupplierRecipientType | Recipient Type | ||
| ClearingAccountingDocument | ClearingAccountingDocument | Clearing Journal Entry | ||
| ClearingDate | ClearingDate | Clearing Date | ||
| WithholdingTaxExmptPercent | WithholdingTaxExmptPercent | Exemption Rate | ||
| WithholdingTaxPercent | WithholdingTaxPercent | WTax Rate | ||
| IsSelfWhldgTax | IsSelfWhldgTax | Posted Self-W/Tax | ||
| IsGrossingUp | IsGrossingUp | "Grossing Up" Pt | ||
| WithholdingTaxCertificate | WithholdingTaxCertificate | WHT Certificate | ||
| WhldgTaxCertDate | WhldgTaxCertDate | WTax Certicate Date | ||
| Country | Country | Venue: Ctry/Reg | ||
| CompanyCodeCurrency | Local Currency | |||
| DocumentCurrency | Document Currency | |||
| AdditionalCurrency1 | AdditionalCurrency1 | Local curr. 2 | ||
| AdditionalCurrency2 | AdditionalCurrency2 | Local curr. 3 | ||
| RptgWhldgTxBaseAmtInCoCodeCrcy | RptgWhldgTxBaseAmtInCoCodeCrcy | W/tax rep base LC | ||
| _WithholdingTaxCodeText | _WithholdingTaxCodeText |
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 R_MngJrnlEntrWhgdTaxItem.
-- 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 R_MngJrnlEntrWhgdTaxItem AS
SELECT
CompanyCode,
AccountingDocument,
cast(FiscalYear as fis_gjahr_no_conv preserving type) AS FiscalYear,
AccountingDocumentItem,
WithholdingTaxType,
cast(WithholdingTaxCode as fac_wt_withcd preserving type) AS WithholdingTaxCode,
cast(abs( WhldgTaxBaseAmtInCoCodeCrcy ) as fagl_ale_wt_bs preserving type) AS WhldgTaxBaseAmtInCoCodeCrcy,
cast(abs( WhldgTaxBaseAmtInTransacCrcy ) as fagl_ale_wt_bs1 preserving type) AS WhldgTaxBaseAmtInTransacCrcy,
cast(abs( WhldgTaxBaseAmtInAddlCrcy2 ) as fagl_ale_wt_bs2 preserving type) AS WhldgTaxBaseAmtInAddlCrcy2,
cast(abs( WhldgTaxBaseAmtInAddlCrcy3 ) as fagl_ale_wt_bs3 preserving type) AS WhldgTaxBaseAmtInAddlCrcy3,
WhldgTaxBaseIsEnteredManually,
cast(abs( WhldgTaxAmtInCoCodeCrcy ) as fis_qbshh preserving type) AS WhldgTaxAmtInCoCodeCrcy,
cast(abs( WhldgTaxAmtInTransacCrcy ) as fac_wt_wt1 preserving type) AS WhldgTaxAmtInTransacCrcy,
cast(abs( WhldgTaxAmtInAddlCrcy2 ) as fac_wt_wt2 preserving type) AS WhldgTaxAmtInAddlCrcy2,
cast(abs( WhldgTaxAmtInAddlCrcy3 ) as wt_wt3 preserving type) AS WhldgTaxAmtInAddlCrcy3,
WhldgTaxIsEnteredManually,
WhldgTaxItemStatus,
WhldgTaxExmptAmtInCoCodeCrcy,
WhldgTaxExmptAmtInTransacCrcy,
WhldgTaxExmptAmtInAddlCrcy2,
WhldgTaxExmptAmtInAddlCrcy3,
WhldgTaxExmptCertificate,
FinancialAccountType,
cast(CustomerSupplierAccount as farp_account_apar preserving type ) AS CustomerSupplierAccount,
GLAccount,
SupplierRecipientType,
ClearingAccountingDocument,
ClearingDate,
WithholdingTaxExmptPercent,
WithholdingTaxPercent,
IsSelfWhldgTax,
IsGrossingUp,
WithholdingTaxCertificate,
WhldgTaxCertDate,
Country,
cast(CompanyCodeCurrency as fis_hwaer preserving type) AS CompanyCodeCurrency,
cast(DocumentCurrency as fis_rwcur preserving type) AS DocumentCurrency,
AdditionalCurrency1,
AdditionalCurrency2,
RptgWhldgTxBaseAmtInCoCodeCrcy
FROM I_Withholdingtaxitem AS _Item
LEFT OUTER JOIN I_ExtendedWhldgTaxCodeText AS _WithholdingTaxCodeText ON WithholdingTaxType = _WithholdingTaxCodeText.WithholdingTaxType AND WithholdingTaxCode = _WithholdingTaxCodeText.WithholdingTaxCode AND Country = _WithholdingTaxCodeText.CountryCode AND _WithholdingTaxCodeText.Language = $session.system_language -- association [1..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