I_Businesspartnerwhldgtax

DDL: I_BUSINESSPARTNERWHLDGTAX SQL: IBPWHLDGTAX Type: view BASIC Package: VDM_MD_BP

Company code Whldg tax Core CDS

I_Businesspartnerwhldgtax is a Basic CDS View that provides data about "Company code Whldg tax Core CDS" in SAP S/4HANA. It reads from 1 data source (lfbw) and exposes 18 fields with key fields BusinessPartner, Supplier, CompanyCode, WithholdingTaxType. It has 3 associations to related views. Part of development package VDM_MD_BP.

Data Sources (1)

SourceAliasJoin Type
lfbw BusinessPartnerWhldgTax from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_Supplier_to_BusinessPartner _SupplierToBusinessPartner $projection.Supplier = _SupplierToBusinessPartner.Supplier
[1..1] I_SupplierCompany _SupplierCo $projection.CompanyCode = _SupplierCo.CompanyCode and $projection.Supplier = _SupplierCo.Supplier

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IBPWHLDGTAX view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Company code Whldg tax Core CDS view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner
KEY Supplier lifnr Vendor no.
KEY CompanyCode bukrs Value
KEY WithholdingTaxType witht WTax Type
BusinessPartnerUUID _SupplierToBusinessPartner BusinessPartnerUUID UUID
CountryCode _CompanyCode Country Venue: Ctry/Reg
WithholdingTaxNumber wt_wtstcd W/tax number
WithholdingTaxCode wt_withcd W/Tax Code
IsWithholdingTaxSubject wt_subjct Subject to w/tx
RecipientType qsrec Recipient Type
WithholdingTaxCertificate wt_exnr Exemption Number
WithholdingTaxExmptPercent wt_exrt Exemption Rate
ExemptionDateBegin wt_exdf Exempt From
ExemptionDateEnd wt_exdt Exempt To
ExemptionReason wt_wtexrs Exempt. Reason
_SupplierToBusinessPartner _SupplierToBusinessPartner
_CompanyCode _CompanyCode
_SupplierCo _SupplierCo

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_Businesspartnerwhldgtax.
-- 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: IBPWHLDGTAX

CREATE VIEW I_Businesspartnerwhldgtax AS
SELECT
  _SupplierToBusinessPartner._BusinessPartner.BusinessPartner AS BusinessPartner,
  lifnr AS Supplier,
  bukrs AS CompanyCode,
  witht AS WithholdingTaxType,
  _SupplierToBusinessPartner.BusinessPartnerUUID AS BusinessPartnerUUID,
  _CompanyCode.Country AS CountryCode,
  wt_wtstcd AS WithholdingTaxNumber,
  wt_withcd AS WithholdingTaxCode,
  wt_subjct AS IsWithholdingTaxSubject,
  qsrec AS RecipientType,
  wt_exnr AS WithholdingTaxCertificate,
  wt_exrt AS WithholdingTaxExmptPercent,
  wt_exdf AS ExemptionDateBegin,
  wt_exdt AS ExemptionDateEnd,
  wt_wtexrs AS ExemptionReason
FROM lfbw AS BusinessPartnerWhldgTax
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_Supplier_to_BusinessPartner AS _SupplierToBusinessPartner ON Supplier = _SupplierToBusinessPartner.Supplier  -- association [1..1]
LEFT OUTER JOIN I_SupplierCompany AS _SupplierCo ON CompanyCode = _SupplierCo.CompanyCode AND Supplier = _SupplierCo.Supplier  -- association [1..1]
;