C_BusinessPartnerCustWhdgTax
Customer Withholding tax Consumption
C_BusinessPartnerCustWhdgTax is a Consumption CDS View that provides data about "Customer Withholding tax Consumption" in SAP S/4HANA. It reads from 1 data source (I_BusinessPartnerCustWhdgTaxTP) and exposes 29 fields with key fields BusinessPartner, CompanyCode, WithholdingTaxType. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BusinessPartnerCustWhdgTaxTP | BusinessPartnerCustWhdgTax | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_BusinessPartner | _BusinessPartner | $projection.BusinessPartner = _BusinessPartner.BusinessPartner |
| [1..1] | C_BusinessPartnerCustomer | _BusinessPartnerCustomer | $projection.BusinessPartner = _BusinessPartnerCustomer.BusinessPartner |
| [1..1] | C_BusinessPartnerCustCo | _BusinessPartnerCustomerCo | $projection.BusinessPartner = _BusinessPartnerCustomerCo.BusinessPartner and $projection.CompanyCode = _BusinessPartnerCustomerCo.CompanyCode |
| [1..*] | C_WhldgTaxCodeTextVHTemp | _WhldgTaxCodeText | $projection.WithholdingTaxCode = _WhldgTaxCodeText.WithholdingTaxCode and $projection.WithholdingTaxType = _WhldgTaxCodeText.WithholdingTaxType and $projection.CountryCode = _WhldgTaxCodeText.CountryCode |
| [0..1] | C_WhldgTaxTypeTextVHTemp | _WhldgTaxTypeText | $projection.WithholdingTaxTypeForEdit = _WhldgTaxTypeText.WithholdingTaxType and $projection.CountryCode = _WhldgTaxTypeText.CountryCode and _WhldgTaxTypeText.Language = $session.system_language |
| [0..*] | C_Exemptionreasontextvhtemp | _ExemptionReasonText | $projection.ExemptionReason = _ExemptionReasonText.ExemptionReason and $projection.CountryCode = _ExemptionReasonText.Country |
| [1..*] | I_WithholdingTaxRcpntTypeText | _RecipientTypeText | $projection.RecipientType = _RecipientTypeText.RecipientType and $projection.CountryCode = _RecipientTypeText.CountryCode and $projection.WithholdingTaxType = _RecipientTypeText.WithholdingTaxType |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| AbapCatalog.sqlViewName | CBUPACUSTWHT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Customer Withholding tax Consumption | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| UI.headerInfo.typeName | Withholding Tax | view | |
| UI.headerInfo.typeNamePlural | Withholding Taxes | view | |
| UI.headerInfo.title.label | Withholding Tax Type Description | view | |
| UI.headerInfo.title.value | WithholdingTaxTypeName | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessPartner | I_BusinessPartnerCustWhdgTaxTP | BusinessPartner | Issuing Authority |
| KEY | CompanyCode | I_BusinessPartnerCustWhdgTaxTP | CompanyCode | Receiver Company Code |
| KEY | WithholdingTaxType | I_BusinessPartnerCustWhdgTaxTP | WithholdingTaxType | WTax Type |
| Customer | I_BusinessPartnerCustWhdgTaxTP | Customer | Sold-to Party | |
| WithholdingTaxTypeForEdit | I_BusinessPartnerCustWhdgTaxTP | WithholdingTaxTypeForEdit | WTax Type | |
| CompanyCodeForEdit | I_BusinessPartnerCustWhdgTaxTP | CompanyCodeForEdit | Company Code | |
| BusinessPartnerForEdit | I_BusinessPartnerCustWhdgTaxTP | BusinessPartnerForEdit | Busn. Partner | |
| CountryCode | I_BusinessPartnerCustWhdgTaxTP | CountryCode | Country/Reg. | |
| WithholdingTaxCode | I_BusinessPartnerCustWhdgTaxTP | WithholdingTaxCode | WTax Code | |
| WithholdingTaxAgent | I_BusinessPartnerCustWhdgTaxTP | WithholdingTaxAgent | WTax Agent | |
| ObligationDateBegin | I_BusinessPartnerCustWhdgTaxTP | ObligationDateBegin | W/Tax Obligated Frm | |
| ObligationDateEnd | I_BusinessPartnerCustWhdgTaxTP | ObligationDateEnd | Oblig.to W/Tax Until | |
| WithholdingTaxNumber | I_BusinessPartnerCustWhdgTaxTP | WithholdingTaxNumber | W/tax number | |
| WithholdingTaxCertificate2 | I_BusinessPartnerCustWhdgTaxTP | WithholdingTaxCertificate2 | Exemption Number | |
| WithholdingTaxExmptPercent | I_BusinessPartnerCustWhdgTaxTP | WithholdingTaxExmptPercent | Exemption Rate | |
| ExemptionDateBegin | I_BusinessPartnerCustWhdgTaxTP | ExemptionDateBegin | Exempt From | |
| ExemptionDateEnd | I_BusinessPartnerCustWhdgTaxTP | ExemptionDateEnd | Exempt To | |
| RecipientType | I_BusinessPartnerCustWhdgTaxTP | RecipientType | Recipient Type | |
| ExemptionReason | I_BusinessPartnerCustWhdgTaxTP | ExemptionReason | Exempt. Reason | |
| ExtendedWhldgTaxIsActive | I_BusinessPartnerCustWhdgTaxTP | ExtendedWhldgTaxIsActive | Extended WTax Active | |
| AuthorizationGroup | _BusinessPartnerCustomerCo | AuthorizationGroup | AuthorizGroup | |
| Country | _BusinessPartnerCustomerCo | Country | Venue: Ctry/Reg | |
| _BusinessPartnerCustomer | _BusinessPartnerCustomer | |||
| _BusinessPartner | _BusinessPartner | |||
| _BusinessPartnerCustomerCo | _BusinessPartnerCustomerCo | |||
| _WhldgTaxTypeText | _WhldgTaxTypeText | |||
| _WhldgTaxCodeText | _WhldgTaxCodeText | |||
| _ExemptionReasonText | _ExemptionReasonText | |||
| _RecipientTypeText | _RecipientTypeText |
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_BusinessPartnerCustWhdgTax.
-- 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: CBUPACUSTWHT
CREATE VIEW C_BusinessPartnerCustWhdgTax AS
SELECT
BusinessPartnerCustWhdgTax.BusinessPartner AS BusinessPartner,
BusinessPartnerCustWhdgTax.CompanyCode AS CompanyCode,
BusinessPartnerCustWhdgTax.WithholdingTaxType AS WithholdingTaxType,
BusinessPartnerCustWhdgTax.Customer AS Customer,
BusinessPartnerCustWhdgTax.WithholdingTaxTypeForEdit AS WithholdingTaxTypeForEdit,
BusinessPartnerCustWhdgTax.CompanyCodeForEdit AS CompanyCodeForEdit,
BusinessPartnerCustWhdgTax.BusinessPartnerForEdit AS BusinessPartnerForEdit,
BusinessPartnerCustWhdgTax.CountryCode AS CountryCode,
BusinessPartnerCustWhdgTax.WithholdingTaxCode AS WithholdingTaxCode,
BusinessPartnerCustWhdgTax.WithholdingTaxAgent AS WithholdingTaxAgent,
BusinessPartnerCustWhdgTax.ObligationDateBegin AS ObligationDateBegin,
BusinessPartnerCustWhdgTax.ObligationDateEnd AS ObligationDateEnd,
BusinessPartnerCustWhdgTax.WithholdingTaxNumber AS WithholdingTaxNumber,
BusinessPartnerCustWhdgTax.WithholdingTaxCertificate2 AS WithholdingTaxCertificate2,
BusinessPartnerCustWhdgTax.WithholdingTaxExmptPercent AS WithholdingTaxExmptPercent,
BusinessPartnerCustWhdgTax.ExemptionDateBegin AS ExemptionDateBegin,
BusinessPartnerCustWhdgTax.ExemptionDateEnd AS ExemptionDateEnd,
BusinessPartnerCustWhdgTax.RecipientType AS RecipientType,
BusinessPartnerCustWhdgTax.ExemptionReason AS ExemptionReason,
BusinessPartnerCustWhdgTax.ExtendedWhldgTaxIsActive AS ExtendedWhldgTaxIsActive,
_BusinessPartnerCustomerCo.AuthorizationGroup AS AuthorizationGroup,
_BusinessPartnerCustomerCo.Country AS Country
FROM I_BusinessPartnerCustWhdgTaxTP AS BusinessPartnerCustWhdgTax
LEFT OUTER JOIN C_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner -- association [1..1]
LEFT OUTER JOIN C_BusinessPartnerCustomer AS _BusinessPartnerCustomer ON BusinessPartner = _BusinessPartnerCustomer.BusinessPartner -- association [1..1]
LEFT OUTER JOIN C_BusinessPartnerCustCo AS _BusinessPartnerCustomerCo ON BusinessPartner = _BusinessPartnerCustomerCo.BusinessPartner AND CompanyCode = _BusinessPartnerCustomerCo.CompanyCode -- association [1..1]
LEFT OUTER JOIN C_WhldgTaxCodeTextVHTemp AS _WhldgTaxCodeText ON WithholdingTaxCode = _WhldgTaxCodeText.WithholdingTaxCode AND WithholdingTaxType = _WhldgTaxCodeText.WithholdingTaxType AND CountryCode = _WhldgTaxCodeText.CountryCode -- association [1..*]
LEFT OUTER JOIN C_WhldgTaxTypeTextVHTemp AS _WhldgTaxTypeText ON WithholdingTaxTypeForEdit = _WhldgTaxTypeText.WithholdingTaxType AND CountryCode = _WhldgTaxTypeText.CountryCode AND _WhldgTaxTypeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN C_Exemptionreasontextvhtemp AS _ExemptionReasonText ON ExemptionReason = _ExemptionReasonText.ExemptionReason AND CountryCode = _ExemptionReasonText.Country -- association [0..*]
LEFT OUTER JOIN I_WithholdingTaxRcpntTypeText AS _RecipientTypeText ON RecipientType = _RecipientTypeText.RecipientType AND CountryCode = _RecipientTypeText.CountryCode AND WithholdingTaxType = _RecipientTypeText.WithholdingTaxType -- association [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