P_ProductWorkSchedulingWD
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)
| Source | Alias | Join 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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA