P_ProductSalesTaxWD

DDL: P_PRODUCTSALESTAXWD SQL: PPRDSALESTAXWD Type: view COMPOSITE

P_ProductSalesTaxWD is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_ProductSalesTax, P_Dchain_Salestax) and exposes 11 fields with key fields Draftkey, ActiveProduct, ActiveCountry, ActiveTaxCategory.

Data Sources (2)

SourceAliasJoin Type
I_ProductSalesTax ActiveDocument from
P_Dchain_Salestax SalesTax left_outer

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PPRDSALESTAXWD view
VDM.viewType #COMPOSITE view
VDM.private true view
ClientDependent true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY Draftkey
KEY ActiveProduct I_ProductSalesTax Product Product Sold
KEY ActiveCountry I_ProductSalesTax Country Venue: Ctry/Reg
KEY ActiveTaxCategory I_ProductSalesTax TaxCategory Tax Code
ParentDraftKey
Product I_ProductSalesTax Product Product Sold
TaxClassification I_ProductSalesTax TaxClassification Tax class.
IsActiveEntity
HasActiveEntity
ProductSalesOrg P_Dchain_Salestax ProductSalesOrg Sales Org.
ProductDistributionChnl P_Dchain_Salestax ProductDistributionChnl Distr. Channel

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_ProductSalesTaxWD.
-- 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: PPRDSALESTAXWD

CREATE VIEW P_ProductSalesTaxWD AS
SELECT
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS Draftkey,
  ActiveDocument.Product AS ActiveProduct,
  ActiveDocument.Country AS ActiveCountry,
  ActiveDocument.TaxCategory AS ActiveTaxCategory,
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS ParentDraftKey,
  ActiveDocument.Product AS Product,
  ActiveDocument.TaxClassification AS TaxClassification,
  cast( 'X' as boole_d ) AS IsActiveEntity,
  cast( ' ' as boole_d ) AS HasActiveEntity,
  SalesTax.ProductSalesOrg AS ProductSalesOrg,
  SalesTax.ProductDistributionChnl AS ProductDistributionChnl
FROM I_ProductSalesTax AS ActiveDocument
LEFT OUTER JOIN P_Dchain_Salestax AS SalesTax ON /* join condition not captured in parsed metadata */
;