I_CustomerWithHoldingTaxTP

DDL: I_CUSTOMERWITHHOLDINGTAXTP Type: view_entity TRANSACTIONAL

Customer WH Tax - TP

I_CustomerWithHoldingTaxTP is a Transactional CDS View that provides data about "Customer WH Tax - TP" in SAP S/4HANA. It reads from 1 data source (I_BusinessPartnerCustWhdgTax) and exposes 25 fields with key fields BusinessPartner, CompanyCode, WithholdingTaxType, Customer. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_BusinessPartnerCustWhdgTax I_BusinessPartnerCustWhdgTax from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_CustomerCompanyCodeTP _CustomerCompanyCode $projection.BusinessPartner = _CustomerCompanyCode.BusinessPartner and $projection.Customer = _CustomerCompanyCode.Customer and $projection.CompanyCode = _CustomerCompanyCode.CompanyCode
[1..1] I_BusinessPartnerCustomerTP_2 _BusinessPartnerCustomer $projection.BusinessPartner = _BusinessPartnerCustomer.BusinessPartner and $projection.Customer = _BusinessPartnerCustomer.Customer
[1..1] I_BusinessPartnerTP_2 _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner

Annotations (7)

NameValueLevelField
EndUserText.label Customer WH Tax - TP view
VDM.viewType #TRANSACTIONAL view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner BusinessPartner Issuing Authority
KEY CompanyCode CompanyCode Receiver Company Code
KEY WithholdingTaxType WithholdingTaxType WTax Type
KEY Customer Customer Sold-to Party
WithholdingTaxTypeForEdit WithholdingTaxType WTax Type
CompanyCodeForEdit CompanyCode Receiver Company Code
BusinessPartnerForEdit BusinessPartner Issuing Authority
CountryCode CountryCode Country/Reg.
WithholdingTaxCode WithholdingTaxCode WTax Code
WithholdingTaxAgent WithholdingTaxAgent WTax Agent
ObligationDateBegin ObligationDateBegin W/Tax Obligated Frm
ObligationDateEnd ObligationDateEnd Oblig.to W/Tax Until
WithholdingTaxNumber WithholdingTaxNumber W/tax number
WithholdingTaxCertificate2 WithholdingTaxCertificate2 Exemption Number
WithholdingTaxExmptPercent WithholdingTaxExmptPercent Exemption Rate
ExemptionDateBegin ExemptionDateBegin Exempt From
ExemptionDateEnd ExemptionDateEnd Exempt To
ExemptionReason ExemptionReason Exempt. Reason
BPHasActiveEntity
CustomerCompanyAuthznGroup _CustomerCompanyCode AuthorizationGroup AuthorizGroup
AuthorizationGroup _BusinessPartner AuthorizationGroup AuthorizGroup
IsBusinessPurposeCompleted _BusinessPartner IsBusinessPurposeCompleted Purpose Completed
_CustomerCompanyCode _CustomerCompanyCode
_BusinessPartnerCustomer _BusinessPartnerCustomer
_BusinessPartner _BusinessPartner

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_CustomerWithHoldingTaxTP.
-- 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 I_CustomerWithHoldingTaxTP AS
SELECT
  BusinessPartner,
  CompanyCode,
  WithholdingTaxType,
  Customer,
  WithholdingTaxType AS WithholdingTaxTypeForEdit,
  CompanyCode AS CompanyCodeForEdit,
  BusinessPartner AS BusinessPartnerForEdit,
  CountryCode,
  WithholdingTaxCode,
  WithholdingTaxAgent,
  ObligationDateBegin,
  ObligationDateEnd,
  WithholdingTaxNumber,
  WithholdingTaxCertificate2,
  WithholdingTaxExmptPercent,
  ExemptionDateBegin,
  ExemptionDateEnd,
  ExemptionReason,
  cast( 'X' as sdraft_is_active preserving type ) AS BPHasActiveEntity,
  _CustomerCompanyCode.AuthorizationGroup AS CustomerCompanyAuthznGroup,
  _BusinessPartner.AuthorizationGroup AS AuthorizationGroup,
  _BusinessPartner.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted
FROM I_BusinessPartnerCustWhdgTax
LEFT OUTER JOIN I_CustomerCompanyCodeTP AS _CustomerCompanyCode ON BusinessPartner = _CustomerCompanyCode.BusinessPartner AND Customer = _CustomerCompanyCode.Customer AND CompanyCode = _CustomerCompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_BusinessPartnerCustomerTP_2 AS _BusinessPartnerCustomer ON BusinessPartner = _BusinessPartnerCustomer.BusinessPartner AND Customer = _BusinessPartnerCustomer.Customer  -- association [1..1]
LEFT OUTER JOIN I_BusinessPartnerTP_2 AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner  -- association [1..1]
;