P_US_StRpFrgnVndrWhldgTax
US 1042S chapter 3 & 4 WHT exemption
P_US_StRpFrgnVndrWhldgTax is a Composite CDS View that provides data about "US 1042S chapter 3 & 4 WHT exemption" in SAP S/4HANA. It reads from 2 data sources (I_Extendedwhldgtaxcode, I_Extendedwhldgtaxcode) and exposes 17 fields with key fields BusinessPartner, Supplier, CompanyCode, WithholdingTaxType, Supplier. It has 2 associations to related views. Part of development package GLO_FIN_IS_WHT_US.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_Extendedwhldgtaxcode | _ExtendedTaxCode | from |
| I_Extendedwhldgtaxcode | _ExtendedTaxCodeCust | union_all |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Businesspartnerwhldgtax | Businesspartnerwhldgtax | Businesspartnerwhldgtax.CountryCode = _ExtendedTaxCode.Country and Businesspartnerwhldgtax.WithholdingTaxType = _ExtendedTaxCode.WithholdingTaxType and Businesspartnerwhldgtax.WithholdingTaxCode = _ExtendedTaxCode.WithholdingTaxCode |
| [1..1] | I_BusinessPartnerCustWhdgTax | Businesspartnercustwhldgtax | Businesspartnercustwhldgtax.CountryCode = _ExtendedTaxCodeCust.Country and Businesspartnercustwhldgtax.WithholdingTaxType = _ExtendedTaxCodeCust.WithholdingTaxType and Businesspartnercustwhldgtax.WithholdingTaxCode = _ExtendedTaxCodeCust.WithholdingTaxCode |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PBPWLDGTAXCHP | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | US 1042S chapter 3 & 4 WHT exemption | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessPartner | Businesspartnerwhldgtax | BusinessPartner | Issuing Authority |
| KEY | Supplier | Businesspartnerwhldgtax | Supplier | Sold-to Party |
| KEY | CompanyCode | Businesspartnerwhldgtax | CompanyCode | Receiver Company Code |
| KEY | WithholdingTaxType | Businesspartnerwhldgtax | WithholdingTaxType | WTax Type |
| WithholdingTaxCode | Businesspartnerwhldgtax | WithholdingTaxCode | WTax Code | |
| IsWithholdingTaxSubject | Businesspartnerwhldgtax | IsWithholdingTaxSubject | WTax Agent | |
| RecipientType | Businesspartnerwhldgtax | RecipientType | Recipient Type | |
| ExemptionReason | Businesspartnerwhldgtax | ExemptionReason | Exempt. Reason | |
| BusinessPartnerasBusinessPartner | ||||
| KEY | Supplier | Businesspartnercustwhldgtax | Customer | Sold-to Party |
| KEY | CompanyCode | Businesspartnercustwhldgtax | CompanyCode | Receiver Company Code |
| KEY | WithholdingTaxType | Businesspartnercustwhldgtax | WithholdingTaxType | WTax Type |
| WithholdingTaxCode | Businesspartnercustwhldgtax | WithholdingTaxCode | WTax Code | |
| IsWithholdingTaxSubject | Businesspartnercustwhldgtax | WithholdingTaxAgent | WTax Agent | |
| RecipientType | Businesspartnercustwhldgtax | RecipientType | Recipient Type | |
| ExemptionReason | Businesspartnercustwhldgtax | ExemptionReason | Exempt. Reason | |
| WithholdingTaxPercent | I_Extendedwhldgtaxcode | WithholdingTaxPercent | WTax Rate |
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 P_US_StRpFrgnVndrWhldgTax.
-- 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: PBPWLDGTAXCHP
CREATE VIEW P_US_StRpFrgnVndrWhldgTax AS
SELECT
Businesspartnerwhldgtax.BusinessPartner AS BusinessPartner,
Businesspartnerwhldgtax.Supplier AS Supplier,
Businesspartnerwhldgtax.CompanyCode AS CompanyCode,
Businesspartnerwhldgtax.WithholdingTaxType AS WithholdingTaxType,
Businesspartnerwhldgtax.WithholdingTaxCode AS WithholdingTaxCode,
Businesspartnerwhldgtax.IsWithholdingTaxSubject AS IsWithholdingTaxSubject,
Businesspartnerwhldgtax.RecipientType AS RecipientType,
Businesspartnerwhldgtax.ExemptionReason AS ExemptionReason,
_ExtendedTaxCode.WithholdingTaxPercent AS BusinessPartnerasBusinessPartner,
_ExtendedTaxCodeCust.WithholdingTaxPercent AS WithholdingTaxPercent
FROM I_Extendedwhldgtaxcode AS _ExtendedTaxCode
LEFT OUTER JOIN I_Businesspartnerwhldgtax AS Businesspartnerwhldgtax ON Businesspartnerwhldgtax.CountryCode = _ExtendedTaxCode.Country AND Businesspartnerwhldgtax.WithholdingTaxType = _ExtendedTaxCode.WithholdingTaxType AND Businesspartnerwhldgtax.WithholdingTaxCode = _ExtendedTaxCode.WithholdingTaxCode -- association [1..1]
LEFT OUTER JOIN I_BusinessPartnerCustWhdgTax AS Businesspartnercustwhldgtax ON Businesspartnercustwhldgtax.CountryCode = _ExtendedTaxCodeCust.Country AND Businesspartnercustwhldgtax.WithholdingTaxType = _ExtendedTaxCodeCust.WithholdingTaxType AND Businesspartnercustwhldgtax.WithholdingTaxCode = _ExtendedTaxCodeCust.WithholdingTaxCode -- association [1..1]
-- UNION ALL with additional select branch(es): I_Extendedwhldgtaxcode
;
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