P_ProductPurchaseTaxWD
P_ProductPurchaseTaxWD is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (I_ProductPurchaseTax, P_ProductPurchaseTaxD, P_ProductPurchaseTaxD, P_ProductD) and exposes 18 fields with key fields DraftKey, ActiveProduct, ActiveCountry, ActiveProduct, ActiveCountry.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductPurchaseTax | ActiveDocument | from |
| P_ProductPurchaseTaxD | DraftDocument | left_outer |
| P_ProductPurchaseTaxD | DraftDocument | union_all |
| P_ProductD | DraftRootDocument | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPRDPURCHTAXWD | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ClientDependent | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DraftKey | |||
| KEY | ActiveProduct | I_ProductPurchaseTax | Product | Product |
| KEY | ActiveCountry | I_ProductPurchaseTax | SourceLocationCountry | Supply C/R |
| ParentDraftKey | ||||
| Product | I_ProductPurchaseTax | Product | Product Sold | |
| SourceLocationCountry | I_ProductPurchaseTax | SourceLocationCountry | Dep. Ctry/Reg. | |
| TaxIndicator | I_ProductPurchaseTax | TaxIndicator | Tax indicator | |
| IsActiveEntity | ||||
| HasActiveEntity | ||||
| DraftKey | ||||
| KEY | ActiveProduct | P_ProductPurchaseTaxD | ActiveProduct | Product |
| KEY | ActiveCountry | P_ProductPurchaseTaxD | ActiveCountry | Supply C/R |
| Parentdraftkey | P_ProductPurchaseTaxD | Parentdraftkey | NodeID | |
| product | P_ProductD | product | Product Sold | |
| taxindicator | P_ProductPurchaseTaxD | taxindicator | Tax indicator | |
| IsActiveEntity | ||||
| HasActiveEntity | ||||
| HasDraftEntity |
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_ProductPurchaseTaxWD.
-- 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: PPRDPURCHTAXWD
CREATE VIEW P_ProductPurchaseTaxWD AS
SELECT
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS DraftKey,
ActiveDocument.Product AS ActiveProduct,
ActiveDocument.SourceLocationCountry AS ActiveCountry,
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS ParentDraftKey,
ActiveDocument.Product AS Product,
ActiveDocument.SourceLocationCountry AS SourceLocationCountry,
ActiveDocument.TaxIndicator AS TaxIndicator,
cast( 'X' as boole_d ) AS IsActiveEntity,
cast( ' ' as boole_d ) AS HasActiveEntity,
cast( ' ' as boole_d ) AS HasDraftEntity
FROM I_ProductPurchaseTax AS ActiveDocument
LEFT OUTER JOIN P_ProductPurchaseTaxD AS DraftDocument ON /* join condition not captured in parsed metadata */
INNER JOIN P_ProductD AS DraftRootDocument ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_ProductPurchaseTaxD
;
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