I_CustomerWithTax

DDL: I_CUSTOMERWITHTAX SQL: ICUSTWHLDTAX Type: view BASIC Package: VDM_MD_COMMON

Customer WithHolding Tax

I_CustomerWithTax (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

CustomerWithHoldingTax · Database & Data Management

I_CustomerWithTax is a Basic CDS View (Dimension) that provides data about "Customer WithHolding Tax" in SAP S/4HANA. It reads from 1 data source (knbw) and exposes 17 fields with key fields Customer, CompanyCode, WithholdingTaxType. It has 3 associations to related views. Part of development package VDM_MD_COMMON.

SAP Help Documentation

CategoryCDS Views for Business Partner
StatusReleased
Purpose
This CDS view retrieves customer withholding tax data. It records the following information for your benefit: This CDS view provides the data to answer the following business questions: How much tax to withold from payments to a customer? 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 .

Structure
Object Types This view relates to the following SAP object types: Customer Business Partner Measures and attributes Some important measures and attributes are: Customer Withholding Tax

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessDatabase & Data Management
Application ComponentLO-MD-BP-2CL
CapabilitiesData Source for Data Extraction,Analytical Dimension,Association Target for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageDatabase and Data Management for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view retrieves customer withholding tax data. It records the following information for your benefit:</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li> <p>How much tax to withold from payments to a customer?</p></li> </ul> <p>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.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
knbw WithHoldingTax from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_CustomerCompany _CustomerCompany $projection.Customer = _CustomerCompany.Customer and $projection.CompanyCode = _CustomerCompany.CompanyCode
[1..1] I_Customer _Customer $projection.Customer = _Customer.Customer

Annotations (18)

NameValueLevelField
AbapCatalog.sqlViewName ICUSTWHLDTAX view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Customer WithHolding Tax view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
Analytics.dataExtraction.delta.changeDataCapture.automatic true view
ObjectModel.sapObjectNodeType.name CustomerWithHoldingTax view
ObjectModel.representativeKey WithholdingTaxType view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY Customer kunnr Customer Number
KEY CompanyCode bukrs Company Code
KEY WithholdingTaxType witht Indicator for Withholding Tax Type
WithholdingTaxCode wt_withcd Withholding Tax Code
WithholdingTaxAgent wt_agent Indicator: Withholding Tax Agent?
ObligationDateBegin wt_agtdf Obligated to Withhold Tax From
ObligationDateEnd wt_agtdt Obligated to Withhold Tax Until
WithholdingTaxNumber wt_wtstcd Withholding tax identification number
WithholdingTaxCertificate wt_exnr Exemption Certificate Number
WithholdingTaxExmptPercent wt_exrt Exemption Rate
ExemptionDateBegin wt_exdf Date on Which Exemption Begins
ExemptionDateEnd wt_exdt Date on Which Exemption Ends
ExemptionReason wt_wtexrs Reason for Exemption
RecipientType qsrec Type of Recipient
_CustomerCompany _CustomerCompany
_CompanyCode _CompanyCode
_Customer _Customer

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_CustomerWithTax.
-- 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: ICUSTWHLDTAX

CREATE VIEW I_CustomerWithTax AS
SELECT
  kunnr AS Customer,
  bukrs AS CompanyCode,
  witht AS WithholdingTaxType,
  wt_withcd AS WithholdingTaxCode,
  wt_agent AS WithholdingTaxAgent,
  wt_agtdf AS ObligationDateBegin,
  wt_agtdt AS ObligationDateEnd,
  wt_wtstcd AS WithholdingTaxNumber,
  wt_exnr AS WithholdingTaxCertificate,
  wt_exrt AS WithholdingTaxExmptPercent,
  wt_exdf AS ExemptionDateBegin,
  wt_exdt AS ExemptionDateEnd,
  wt_wtexrs AS ExemptionReason,
  qsrec AS RecipientType
FROM knbw AS WithHoldingTax
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_CustomerCompany AS _CustomerCompany ON Customer = _CustomerCompany.Customer AND CompanyCode = _CustomerCompany.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [1..1]
;