P_ProductWorkSchedulingWD

DDL: P_PRODUCTWORKSCHEDULINGWD SQL: PPRDWORKSCHEDWD Type: view COMPOSITE

P_ProductWorkSchedulingWD is a Composite CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 24 fields with key fields Draftkey, ActiveProduct, ActivePlant, ActiveProduct, ActivePlant.

Data Sources (6)

SourceAliasJoin Type
I_ProductWorkScheduling ActiveDocument from
I_DraftAdministrativeData DraftAdministrativeData inner
P_ProductWorkSchedulingD DraftDocument left_outer
P_ProductWorkSchedulingD DraftDocument union_all
P_ProductPlantD DraftPlantDocument inner
P_ProductD DraftRootDocument inner

Annotations (6)

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

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY Draftkey
KEY ActiveProduct I_ProductWorkScheduling Product Product
KEY ActivePlant I_ProductWorkScheduling Plant Plant ID
ParentDraftKey NodeID
Product I_ProductWorkScheduling Product Product Sold
Plant I_ProductWorkScheduling Plant Valuation Area
MaterialBaseQuantity I_ProductWorkScheduling MaterialBaseQuantity Base quantity
UnlimitedOverDelivIsAllowed I_ProductWorkScheduling UnlimitedOverDelivIsAllowed Unlimited
OverDelivToleranceLimit I_ProductWorkScheduling OverDelivToleranceLimit Overdely tol.
UnderDelivToleranceLimit I_ProductWorkScheduling UnderDelivToleranceLimit Underdely tol.
IsActiveEntity
HasActiveEntity TRUE
RootDraftKey
DraftKey
KEY ActiveProduct P_ProductWorkSchedulingD ActiveProduct Product
KEY ActivePlant P_ProductWorkSchedulingD ActivePlant Plant ID
ParentDraftKey P_ProductWorkSchedulingD ParentDraftKey NodeID
product P_ProductD product Product Sold
plant P_ProductPlantD plant Valuation Area
IsActiveEntity
HasActiveEntity P_ProductWorkSchedulingD HasActiveEntity TRUE
HasDraftEntity
rootdraftkey P_ProductWorkSchedulingD rootdraftkey NodeID
DraftAdministrativeDataUUID

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_ProductWorkSchedulingWD.
-- 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: PPRDWORKSCHEDWD

CREATE VIEW P_ProductWorkSchedulingWD AS
SELECT
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS Draftkey,
  ActiveDocument.Product AS ActiveProduct,
  ActiveDocument.Plant AS ActivePlant,
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS ParentDraftKey,
  ActiveDocument.Product AS Product,
  ActiveDocument.Plant AS Plant,
  ActiveDocument.MaterialBaseQuantity AS MaterialBaseQuantity,
  ActiveDocument.UnlimitedOverDelivIsAllowed AS UnlimitedOverDelivIsAllowed,
  ActiveDocument.OverDelivToleranceLimit AS OverDelivToleranceLimit,
  ActiveDocument.UnderDelivToleranceLimit AS UnderDelivToleranceLimit,
  cast( 'X' as boole_d ) AS IsActiveEntity,
  cast( ' ' as boole_d ) AS HasActiveEntity,
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS RootDraftKey,
  cast( ' ' as boole_d ) AS HasDraftEntity,
  cast(DraftDocument.rootdraftkey as sysuuid_x ) AS DraftAdministrativeDataUUID
FROM I_ProductWorkScheduling AS ActiveDocument
LEFT OUTER JOIN P_ProductWorkSchedulingD AS DraftDocument ON /* join condition not captured in parsed metadata */
INNER JOIN P_ProductPlantD AS DraftPlantDocument ON /* join condition not captured in parsed metadata */
INNER JOIN P_ProductD AS DraftRootDocument ON /* join condition not captured in parsed metadata */
INNER JOIN I_DraftAdministrativeData AS DraftAdministrativeData ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_ProductWorkSchedulingD
;