I_ProductionOrderSequence
Production Order Sequence
I_ProductionOrderSequence (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
ProductionOrderSequence · Manufacturing
I_ProductionOrderSequence is a Composite CDS View (Fact) that provides data about "Production Order Sequence" in SAP S/4HANA. It reads from 1 data source (I_OrderSequenceBySemKey) and exposes 40 fields with key fields ProductionOrder, ProductionOrderSequence. It has 9 associations to related views.
SAP Help Documentation
| Category | CDS Views for Discrete Manufacturing |
|---|---|
| Data Category | Fact |
This CDS view retrieves production order sequence data by semantic key (table AFFL ). This CDS view provides the data to answer the following business questions: Which sequences exist for a production order? Which are the branch and return operations of a parallel sequence? Which reference bill of operation (routing) data belong to a production order sequence? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: AUTYP (Order Category) AUFART_WERKS (Order Type/Plant) You can use the Display Restriction Types app to find out in which business catalogs these restriction types are included.
Structure
Important Fields Important fields in this view include the following: Field Name Description ProductionOrder Production Order ProductionOrderSequence Production Order Sequence SequenceCategory Sequence Category ProductionOrderType Production Order Type ProductionOrderSequenceText Sequence Description SequenceBranchOperation Branch Operation SequenceReturnOperation Return Operation ProductionPlant Production Plant BillOfOperationsType BOO Type BillOfOperationsGroup BOO Group BillOfOperationsVariant BOO Variant
Data Extraction
Data Extraction Type This CDS view is enabled for data extraction in full mode.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Manufacturing |
| Application Component | PP-VDM |
| Capabilities | Data Source for Data Extraction, Data Source for Defining CDS Entities, Data Source in SQL Select |
| Package | Manufacturing for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view retrieves production order sequence data by semantic key (table AFFL).</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>Which sequences exist for a production order?</p></li> <li><p>Which are the branch and return operations of a parallel sequence? </p></li> <li><p>Which reference bill of operation (routing) data belong to a production order sequence?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_OrderSequenceBySemKey | affl | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ProductionOrderType | _ProductionOrderType | $projection.ProductionOrderType = _ProductionOrderType.ProductionOrderType |
| [0..1] | I_MfgBillOfOperations | _BillOfOperationsVariant | $projection.BillOfOperationsType = _BillOfOperationsVariant.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsVariant.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperationsVariant.BillOfOperationsVariant |
| [0..1] | I_MfgBillOfOperationsSequence | _BillOfOperationsSequence | $projection.BillOfOperationsType = _BillOfOperationsSequence.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsSequence.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperationsSequence.BillOfOperationsVariant and $projection.BillOfOperationsSequence = _BillOfOperationsSequence.BillOfOperationsSequence |
| [1..1] | I_StatusObject | _StatusObject | $projection.ObjectInternalID = _StatusObject.StatusObject |
| [1..1] | I_ProductionOrder | _ProductionOrderText | $projection.ProductionOrder = _ProductionOrderText.ProductionOrder |
| [1..1] | I_Plant | _ProductionPlantText | $projection.ProductionPlant = _ProductionPlantText.Plant |
| [1..1] | I_StatusObject | _StatusObjectText | $projection.ObjectInternalID = _StatusObjectText.StatusObject |
| [0..*] | I_ProductionOrderOperation_2 | _ProductionOrderOperation | |
| [0..*] | I_ProdnOrderSequenceLongText | _LongText | |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Analytics.dataCategory | #FACT | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.technicalName | IPRODNORDERSEQ | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.sapObjectNodeType.name | ProductionOrderSequence | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | Production Order Sequence | view |
Fields (40)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProductionOrder | Production Order | ||
| KEY | ProductionOrderSequence | Production Order Sequence | ||
| OrderInternalID | I_OrderSequenceBySemKey | OrderInternalID | Order Internal ID | |
| SequenceInternalID | I_OrderSequenceBySemKey | SequenceInternalID | Sequence Internal ID | |
| SequenceCategory | I_OrderSequenceBySemKey | SequenceCategory | Sequence Category | |
| ProductionOrderType | Production Order Type | |||
| ProductionOrderSequenceText | Description of a Sequence | |||
| SequenceHasLongText | I_OrderSequenceBySemKey | SequenceHasLongText | Long Text Exists | |
| LongTextLanguage | Long Text Language | |||
| SequenceBranchOperation | Branch Operation ID | |||
| SequenceReturnOperation | Return Operation ID | |||
| ProductionPlant | I_OrderSequenceBySemKey | ProductionPlant | Production Plant | |
| BillOfOperationsType | I_OrderSequenceBySemKey | BillOfOperationsType | Bill of Operations Type | |
| BillOfOperationsGroup | I_OrderSequenceBySemKey | BillOfOperationsGroup | Bill of Operations Group | |
| BillOfOperationsVariant | I_OrderSequenceBySemKey | BillOfOperations | Bill of Operations Variant | |
| BillOfOperationsSequence | I_OrderSequenceBySemKey | ReferenceSequence | Reference Sequence | |
| SequenceSchedulingAlignment | I_OrderSequenceBySemKey | SequenceSchedulingAlignment | Alignment Key for Scheduling | |
| ObjectInternalID | I_OrderSequenceBySemKey | ObjectInternalID | Object number | |
| BillOfOperationsUnit | I_OrderSequenceBySemKey | BillOfOperationsUnit | Task List Unit of Measure | |
| MinimumLotSizeQuantity | I_OrderSequenceBySemKey | MinimumLotSizeQuantity | Minimum Lot Size | |
| MaximumLotSizeQuantity | I_OrderSequenceBySemKey | MaximumLotSizeQuantity | Maximum Lot Size | |
| _ProductionOrderType | _ProductionOrderType | |||
| _StatusObject | _StatusObject | |||
| _OrderInternalID | I_OrderSequenceBySemKey | _OrderInternalID | ||
| _SequenceInternalID | I_OrderSequenceBySemKey | _OrderSequence | ||
| _SequenceCategory | I_OrderSequenceBySemKey | _SequenceCategory | ||
| _SequenceSchedulingAlignment | I_OrderSequenceBySemKey | _SequenceSchedulingAlignment | ||
| _Plant | I_OrderSequenceBySemKey | _Plant | ||
| _BillOfOperationsType | I_OrderSequenceBySemKey | _BillOfOperationsType | ||
| _BillOfOperationsGroup | I_OrderSequenceBySemKey | _BillOfOperationsGroup | ||
| _BillOfOperationsVariant | _BillOfOperationsVariant | |||
| _BillOfOperationsSequence | _BillOfOperationsSequence | |||
| _BillOfOperationsUnit | I_OrderSequenceBySemKey | _BillOfOperationsUnit | ||
| _Language | I_OrderSequenceBySemKey | _Language | ||
| Compositions_ProductionOrderHeader | ||||
| _ProductionOrderOperation | _ProductionOrderOperation | |||
| _LongText | _LongText | |||
| Newtextrelations_ProductionOrderText | ||||
| _ProductionPlantText | _ProductionPlantText | |||
| _StatusObjectText | _StatusObjectText |
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 I_ProductionOrderSequence.
-- 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 I_ProductionOrderSequence AS
SELECT
cast(affl.OrderID as vdm_manufacturingorder preserving type) AS ProductionOrder,
cast(affl.Sequence as vdm_prodnordersequence preserving type) AS ProductionOrderSequence,
affl.OrderInternalID AS OrderInternalID,
affl.SequenceInternalID AS SequenceInternalID,
affl.SequenceCategory AS SequenceCategory,
cast(affl.OrderType as vdm_prodnordertype preserving type) AS ProductionOrderType,
cast(affl.SequenceText as vdm_flgtext preserving type) AS ProductionOrderSequenceText,
affl.SequenceHasLongText AS SequenceHasLongText,
cast(affl.Language as pph_longtextlang preserving type) AS LongTextLanguage,
cast(vornr1.Operation_2 as vdm_vornr1 preserving type) AS SequenceBranchOperation,
cast(vornr2.Operation_2 as vdm_vornr2 preserving type) AS SequenceReturnOperation,
affl.ProductionPlant AS ProductionPlant,
affl.BillOfOperationsType AS BillOfOperationsType,
affl.BillOfOperationsGroup AS BillOfOperationsGroup,
affl.BillOfOperations AS BillOfOperationsVariant,
affl.ReferenceSequence AS BillOfOperationsSequence,
affl.SequenceSchedulingAlignment AS SequenceSchedulingAlignment,
affl.ObjectInternalID AS ObjectInternalID,
affl.BillOfOperationsUnit AS BillOfOperationsUnit,
affl.MinimumLotSizeQuantity AS MinimumLotSizeQuantity,
affl.MaximumLotSizeQuantity AS MaximumLotSizeQuantity,
affl._OrderInternalID AS _OrderInternalID,
affl._OrderSequence AS _SequenceInternalID,
affl._SequenceCategory AS _SequenceCategory,
affl._SequenceSchedulingAlignment AS _SequenceSchedulingAlignment,
affl._Plant AS _Plant,
affl._BillOfOperationsType AS _BillOfOperationsType,
affl._BillOfOperationsGroup AS _BillOfOperationsGroup,
affl._BillOfOperationsUnit AS _BillOfOperationsUnit,
affl._Language AS _Language
FROM I_OrderSequenceBySemKey AS affl
LEFT OUTER JOIN I_ProductionOrderType AS _ProductionOrderType ON ProductionOrderType = _ProductionOrderType.ProductionOrderType -- association [1..1]
LEFT OUTER JOIN I_MfgBillOfOperations AS _BillOfOperationsVariant ON BillOfOperationsType = _BillOfOperationsVariant.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsVariant.BillOfOperationsGroup AND BillOfOperationsVariant = _BillOfOperationsVariant.BillOfOperationsVariant -- association [0..1]
LEFT OUTER JOIN I_MfgBillOfOperationsSequence AS _BillOfOperationsSequence ON BillOfOperationsType = _BillOfOperationsSequence.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsSequence.BillOfOperationsGroup AND BillOfOperationsVariant = _BillOfOperationsSequence.BillOfOperationsVariant AND BillOfOperationsSequence = _BillOfOperationsSequence.BillOfOperationsSequence -- association [0..1]
LEFT OUTER JOIN I_StatusObject AS _StatusObject ON ObjectInternalID = _StatusObject.StatusObject -- association [1..1]
LEFT OUTER JOIN I_ProductionOrder AS _ProductionOrderText ON ProductionOrder = _ProductionOrderText.ProductionOrder -- association [1..1]
LEFT OUTER JOIN I_Plant AS _ProductionPlantText ON ProductionPlant = _ProductionPlantText.Plant -- association [1..1]
LEFT OUTER JOIN I_StatusObject AS _StatusObjectText ON ObjectInternalID = _StatusObjectText.StatusObject -- association [1..1]
LEFT OUTER JOIN I_ProductionOrderOperation_2 AS _ProductionOrderOperation ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN I_ProdnOrderSequenceLongText AS _LongText ON /* condition not available in parsed metadata */ -- association [0..*]
;
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