R_ProcessOrderRelationshipTP
Process Order Relationship - TP
R_ProcessOrderRelationshipTP is a Transactional CDS View that provides data about "Process Order Relationship - TP" in SAP S/4HANA. It reads from 1 data source (I_MfgOrderOpRelationship) and exposes 26 fields with key fields PredecessorOrderInternalID, PredecessorPhaseInternalID, SuccessorOrderInternalID, SuccessorPhaseInternalID, OrderPhaseRelationshipIntType. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MfgOrderOpRelationship | Relationship | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | R_ProcessOrderTP | _SuccessorOrder | _SuccessorOrder.ProcessOrder = $projection.SuccessorOrder |
| [1..1] | R_ProcessOrderPhaseTP | _PredecessorPhase | _PredecessorPhase.OrderInternalID = $projection.PredecessorOrderInternalID and _PredecessorPhase.OrderPhaseInternalID = $projection.PredecessorPhaseInternalID |
| [1..1] | R_ProcessOrderTP | _PredecessorOrder | _PredecessorOrder.ProcessOrder = $projection.PredecessorOrder |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| EndUserText.label | Process Order Relationship - TP | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PredecessorOrderInternalID | PredecessorOrderInternalID | ||
| KEY | PredecessorPhaseInternalID | PredecessorOperationInternalID | ||
| KEY | SuccessorOrderInternalID | SuccessorOrderInternalID | ||
| KEY | SuccessorPhaseInternalID | SuccessorOperationInternalID | ||
| KEY | OrderPhaseRelationshipIntType | OrderOpRelationshipIntType | ||
| KEY | MaxTimeIntvlIsUsedForSchedg | MaxTimeIntvlIsUsedForSchedg | ||
| PredecessorOrder | PredecessorOrder | |||
| PredecessorOrderPhase | PredecessorOrderOperation | |||
| SuccessorOrder | SuccessorOrder | |||
| SuccessorOrderPhase | SuccessorOrderOperation | |||
| ManufacturingOrderCategory | ManufacturingOrderCategory | |||
| PhaseRelshpTimeIntervalUnit | OpRelationshipTimeIntervalUnit | |||
| PhaseRelshpTimeIntervalDurn | OpRelationshipTimeIntervalDurn | |||
| PhaseRelshpTimeIntervalDurnMax | MaxTimeIntvlBtwnRelshp | |||
| TimeIntvlBtwnRelshpInPct | TimeIntvlBtwnRelshpInPct | |||
| TimeInterval | TimeInterval | Time Interval | ||
| ObjectInternalID | ObjectInternalID | Object number | ||
| ObjectIsDeleted | ObjectIsDeleted | |||
| FactoryCalendar | FactoryCalendar | Factory Calendar | ||
| Plant | Plant | Valuation Area | ||
| ProductionResourceInternalID | WorkCenterInternalID | Work Center | ||
| ProductionResource | ||||
| _SuccessorPhase | _SuccessorPhase | |||
| _SuccessorOrder | _SuccessorOrder | |||
| _PredecessorPhase | _PredecessorPhase | |||
| _PredecessorOrder | _PredecessorOrder |
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 R_ProcessOrderRelationshipTP.
-- 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 R_ProcessOrderRelationshipTP AS
SELECT
PredecessorOrderInternalID,
PredecessorOperationInternalID AS PredecessorPhaseInternalID,
SuccessorOrderInternalID,
SuccessorOperationInternalID AS SuccessorPhaseInternalID,
OrderOpRelationshipIntType AS OrderPhaseRelationshipIntType,
MaxTimeIntvlIsUsedForSchedg,
PredecessorOrder,
PredecessorOrderOperation AS PredecessorOrderPhase,
SuccessorOrder,
SuccessorOrderOperation AS SuccessorOrderPhase,
ManufacturingOrderCategory,
OpRelationshipTimeIntervalUnit AS PhaseRelshpTimeIntervalUnit,
OpRelationshipTimeIntervalDurn AS PhaseRelshpTimeIntervalDurn,
MaxTimeIntvlBtwnRelshp AS PhaseRelshpTimeIntervalDurnMax,
TimeIntvlBtwnRelshpInPct,
TimeInterval,
ObjectInternalID,
ObjectIsDeleted,
FactoryCalendar,
Plant,
WorkCenterInternalID AS ProductionResourceInternalID,
cast(_WorkCenter.WorkCenter as cr_resourc preserving type) AS ProductionResource
FROM I_MfgOrderOpRelationship AS Relationship
LEFT OUTER JOIN R_ProcessOrderTP AS _SuccessorOrder ON _SuccessorOrder.ProcessOrder = SuccessorOrder -- association [1..1]
LEFT OUTER JOIN R_ProcessOrderPhaseTP AS _PredecessorPhase ON _PredecessorPhase.OrderInternalID = PredecessorOrderInternalID AND _PredecessorPhase.OrderPhaseInternalID = PredecessorPhaseInternalID -- association [1..1]
LEFT OUTER JOIN R_ProcessOrderTP AS _PredecessorOrder ON _PredecessorOrder.ProcessOrder = PredecessorOrder -- association [1..1]
;
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