P_Productplantsalesd

DDL: P_PRODUCTPLANTSALESD SQL: PPRDPLANTSALES Type: view BASIC

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

Data Sources (1)

SourceAliasJoin Type
prd_plant_sales DraftDocument from

Annotations (4)

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

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY DraftKey prd_plant_sales draftkey NodeID
KEY ActiveProduct prd_plant_sales activeproduct Product
KEY ActivePlant prd_plant_sales activeplant Plant ID
ParentDraftKey prd_plant_sales parentdraftkey NodeID
loadinggroup prd_plant_sales loadinggroup Loading Group
HasActiveEntity prd_plant_sales hasactiveentity TRUE
RootDraftKey prd_plant_sales rootdraftkey NodeID

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_Productplantsalesd.
-- 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: PPRDPLANTSALES

CREATE VIEW P_Productplantsalesd AS
SELECT
  DraftDocument.draftkey AS DraftKey,
  DraftDocument.activeproduct AS ActiveProduct,
  DraftDocument.activeplant AS ActivePlant,
  DraftDocument.parentdraftkey AS ParentDraftKey,
  DraftDocument.loadinggroup AS loadinggroup,
  DraftDocument.hasactiveentity AS HasActiveEntity,
  DraftDocument.rootdraftkey AS RootDraftKey
FROM prd_plant_sales AS DraftDocument
;