P_ProductSalesD

DDL: P_PRODUCTSALESD SQL: PPRDSALESD Type: view BASIC

P_ProductSalesD is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (prd_sales) and exposes 7 fields with key fields Draftkey, ActiveProduct.

Data Sources (1)

SourceAliasJoin Type
prd_sales DraftDocument from

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName PPRDSALESD view
VDM.private true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY Draftkey prd_sales draftkey NodeID
KEY ActiveProduct prd_sales activeproduct Product
ParentDraftKey prd_sales parentdraftkey NodeID
salesstatus prd_sales salesstatus X-DChain status
HasActiveEntity prd_sales hasactiveentity TRUE
salesunit prd_sales salesunit Unit
loadinggroup prd_sales loadinggroup Loading Group

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_ProductSalesD.
-- 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: PPRDSALESD

CREATE VIEW P_ProductSalesD AS
SELECT
  DraftDocument.draftkey AS Draftkey,
  DraftDocument.activeproduct AS ActiveProduct,
  DraftDocument.parentdraftkey AS ParentDraftKey,
  DraftDocument.salesstatus AS salesstatus,
  DraftDocument.hasactiveentity AS HasActiveEntity,
  DraftDocument.salesunit AS salesunit,
  DraftDocument.loadinggroup AS loadinggroup
FROM prd_sales AS DraftDocument
;