P_ProductPlantD

DDL: P_PRODUCTPLANTD SQL: PPRDPLANTD Type: view BASIC Package: VDM_MD_PRODUCT_OBSOLETE

Draft

P_ProductPlantD is a Basic CDS View that provides data about "Draft" in SAP S/4HANA. It reads from 1 data source (prd_plant) and exposes 12 fields with key field Draftkey. Part of development package VDM_MD_PRODUCT_OBSOLETE.

Data Sources (1)

SourceAliasJoin Type
prd_plant DraftDocument from

Annotations (4)

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

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY Draftkey prd_plant draftkey NodeID
Parentdraftkey prd_plant parentdraftkey NodeID
HasActiveEntity prd_plant hasactiveentity TRUE
ActiveProduct prd_plant activeproduct Product
ActivePlant prd_plant activeplant Plant ID
product prd_plant product Product Sold
plant prd_plant plant Valuation Area
profilecode prd_plant profilecode Product Status
periodtype prd_plant periodtype PeriodIndicator
profitcenter prd_plant profitcenter Profit Center
commodity prd_plant commodity Commodity Code
iscoproduct prd_plant iscoproduct Co-product?

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_ProductPlantD.
-- 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: PPRDPLANTD

CREATE VIEW P_ProductPlantD AS
SELECT
  DraftDocument.draftkey AS Draftkey,
  DraftDocument.parentdraftkey AS Parentdraftkey,
  DraftDocument.hasactiveentity AS HasActiveEntity,
  DraftDocument.activeproduct AS ActiveProduct,
  DraftDocument.activeplant AS ActivePlant,
  DraftDocument.product AS product,
  DraftDocument.plant AS plant,
  DraftDocument.profilecode AS profilecode,
  DraftDocument.periodtype AS periodtype,
  DraftDocument.profitcenter AS profitcenter,
  DraftDocument.commodity AS commodity,
  DraftDocument.iscoproduct AS iscoproduct
FROM prd_plant AS DraftDocument
;