P_ProductPurchaseTaxWD

DDL: P_PRODUCTPURCHASETAXWD SQL: PPRDPURCHTAXWD Type: view COMPOSITE

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)

SourceAliasJoin Type
I_ProductPurchaseTax ActiveDocument from
P_ProductPurchaseTaxD DraftDocument left_outer
P_ProductPurchaseTaxD DraftDocument union_all
P_ProductD DraftRootDocument inner

Annotations (6)

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

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