P_SchedProdnOperReln
Relations between phases and operations
P_SchedProdnOperReln is a Basic CDS View that provides data about "Relations between phases and operations" in SAP S/4HANA. It reads from 6 data sources and exposes 21 fields with key fields PredecessorInternalID, PredecessorActivityIntID, SuccessorInternalID, SuccessorActivityIntID, MaxTimeIntvlIsUsedForSchedg. Part of development package PPH_VDM_CAP_EVAL.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| P_SchedProdnPlndOrdReln | MaxChangePred | inner |
| I_CapacityRequirementItemCap | PredCapReq | inner |
| I_ProjectNetworkRelationship | Rel | from |
| plab | Rel | union |
| I_CapacityRequirementItemCap | SuccCapReq | inner |
| I_CapacityRequirementItemCap | SuccCapReq | inner |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PredecessorInternalID | |||
| KEY | PredecessorActivityIntID | plab | PredecessorNtwkActyIntID | Task list node |
| KEY | SuccessorInternalID | |||
| KEY | SuccessorActivityIntID | plab | SuccessorNtwkActyIntID | Node |
| KEY | MaxTimeIntvlIsUsedForSchedg | plab | MaxTimeIntvlIsUsedForSchedg | Max. interval |
| KEY | RelationshipCounter | Sort pos. | ||
| ChangeNumberDate | Valid-from date | |||
| OrderIDassapapoom_orderuidendasPredActID | ||||
| OrderIDassapapoom_orderuidendasSuccActID | ||||
| PredGroupCounter | I_CapacityRequirementItemCap | SuperiorOperationInternalID | Sup. Op. Node | |
| plnalasPredecessorInternalID | ||||
| KEY | PredecessorActivityIntID | plab | plnkn | Task list node |
| KEY | SuccessorInternalID | |||
| KEY | SuccessorActivityIntID | plab | knnrn | Node |
| KEY | MaxTimeIntvlIsUsedForSchedg | plab | mimax | Max. interval |
| KEY | RelationshipCounter | plab | zaehl | Sort pos. |
| ChangeNumberDate | plab | datuv | Valid-from date | |
| PredActID | P_SchedProdnPlndOrdReln | PredActID | ||
| SuccActID | ||||
| PredGroupCounter | P_SchedProdnPlndOrdReln | PredGroupCounter | Sup. Op. Node | |
| SuccGroupCounter | I_CapacityRequirementItemCap | SuperiorOperationInternalID | Sup. Op. Node |
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_SchedProdnOperReln.
-- 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.
CREATE VIEW P_SchedProdnOperReln AS
SELECT
cast(Rel.PredecessorProjNtwkIntID as abap.char( 10 )) AS PredecessorInternalID,
Rel.PredecessorNtwkActyIntID AS PredecessorActivityIntID,
cast(Rel.SuccessorProjNtwkIntID as abap.char( 10 )) AS SuccessorInternalID,
Rel.SuccessorNtwkActyIntID AS SuccessorActivityIntID,
Rel.MaxTimeIntvlIsUsedForSchedg AS MaxTimeIntvlIsUsedForSchedg,
cast('00000000' as cim_count) AS RelationshipCounter,
cast('00000000' as cim_date) AS ChangeNumberDate,
case PredCapReq._Order.OrderCategory when '40' then cast(concat(PredCapReq.CapacityRequirementItem, concat(PredCapReq.OrderID, '3')) as /sapapo/om_orderuid ) when '30' then cast(concat(PredCapReq.CapacityRequirementItem,concat(PredCapReq.OrderID, '4')) as /sapapo/om_orderuid ) else cast(PredCapReq.OrderID as /sapapo/om_orderuid ) end as PredActID AS OrderIDassapapoom_orderuidendasPredActID,
case SuccCapReq._Order.OrderCategory when '40' then cast(concat(SuccCapReq.CapacityRequirementItem, concat(SuccCapReq.OrderID, '3')) as /sapapo/om_orderuid ) when '30' then cast(concat(SuccCapReq.CapacityRequirementItem,concat(SuccCapReq.OrderID, '4')) as /sapapo/om_orderuid ) else cast(SuccCapReq.OrderID as /sapapo/om_orderuid ) end as SuccActID AS OrderIDassapapoom_orderuidendasSuccActID,
PredCapReq.SuperiorOperationInternalID AS PredGroupCounter,
SuccCapReq.SuperiorOperationInternalID as SuccGroupCounter AS plnalasPredecessorInternalID,
MaxChangePred.PredActID AS PredActID,
cast(concat(SuccCapReq.CapacityRequirementItem, concat(SuccCapReq.PlannedOrder, '1')) as /sapapo/om_orderuid ) AS SuccActID,
SuccCapReq.SuperiorOperationInternalID AS SuccGroupCounter
FROM I_ProjectNetworkRelationship AS Rel
INNER JOIN I_CapacityRequirementItemCap AS PredCapReq ON /* join condition not captured in parsed metadata */
INNER JOIN I_CapacityRequirementItemCap AS SuccCapReq ON /* join condition not captured in parsed metadata */
INNER JOIN P_SchedProdnPlndOrdReln AS MaxChangePred ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): plab
;
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