C_BusinessPartnerCustWhdgTax

DDL: C_BUSINESSPARTNERCUSTWHDGTAX SQL: CBUPACUSTWHT Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_BusinessPartnerCustWhdgTaxTP BusinessPartnerCustWhdgTax from

Associations (7)

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

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

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