I_ProductionOrderSequence

DDL: I_PRODUCTIONORDERSEQUENCE Type: view_entity COMPOSITE

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

CategoryCDS Views for Discrete Manufacturing
Data CategoryFact
Purpose
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.

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentPP-VDM
CapabilitiesData Source for Data Extraction, Data Source for Defining CDS Entities, Data Source in SQL Select
PackageManufacturing 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

Data Sources (1)

SourceAliasJoin Type
I_OrderSequenceBySemKey affl from

Associations (9)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;