I_MfgOrderSequence

DDL: I_MFGORDERSEQUENCE SQL: IPPMFGORDSEQ Type: view COMPOSITE Package: VDM_PP_SFC

Manufacturing Order Sequence

I_MfgOrderSequence (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

ProductionOrderSequence · Manufacturing

I_MfgOrderSequence is a Composite CDS View (Dimension) that provides data about "Manufacturing Order Sequence" in SAP S/4HANA. It reads from 1 data source (I_OrderSequence) and exposes 48 fields with key fields ManufacturingOrder, ManufacturingOrderSequence. It has 14 associations to related views. Part of development package VDM_PP_SFC.

SAP Help Documentation

CategoryCDS Views for Discrete and Process Manufacturing
Data CategoryDimension
Purpose
With this CDS view, you can retrieve manufacturing order sequence data (table AFFL ) by semantic key. This CDS view provides the data to answer the following business questions: Which sequences exist for a manufacturing order? Which are the branch and return operations of a parallel sequence? Which reference bill of operation (routing) data belong to a manufacturing order sequence?

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 ManufacturingOrder Manufacturing Order ManufacturingOrderSequence Sequence MfgOrderSequenceText Sequence Text MfgOrderSqncBranchOperation_2 Branch Operation MfgOrderSqncReturnOperation_2 Return Operation ManufacturingOrderCategory Order Category ManufacturingOrderType Order Type MfgOrderSequenceCategory Sequence Category ProductionPlant Production Plant BillOfOperationsType BOO Type BillOfOperationsGroup BOO Group BillOfOperationsVariant BOO Variant

View on SAP Help Portal →

SAP API Hub

CategoryComposite
StateC1
Line of BusinessManufacturing
Application ComponentPP-VDM-2CL
CapabilitiesData Source for Data Extraction,Analytical Dimension,Association Target for Defining CDS Entities,Data Source in SQL Select,Data Source for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageManufacturing for SAP S/4HANA Cloud Public Edition
Description <p>With this CDS view, you can retrieve manufacturing order sequence data (table AFFL) by semantic key. </p> <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li> <p>Which sequences exist for a manufacturing 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 manufacturing order sequence?</p> </li> </ul>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_OrderSequence affl from

Associations (14)

CardinalityTargetAliasCondition
[1..1] I_MfgOrder _MfgOrder $projection.ManufacturingOrder = _MfgOrder.ManufacturingOrder
[1..1] I_MfgOrderCategory _MfgOrderCategory $projection.ManufacturingOrderCategory = _MfgOrderCategory.ManufacturingOrderCategory
[1..1] I_MfgOrderType _MfgOrderType $projection.ManufacturingOrderType = _MfgOrderType.ManufacturingOrderType
[0..1] I_MfgOrderSequence _ReferenceSequence $projection.ManufacturingOrder = _ReferenceSequence.ManufacturingOrder and $projection.ReferenceSequence = _ReferenceSequence.ManufacturingOrderSequence
[0..1] I_BillOfOperationsGroup _BillOfOperationsGroup $projection.BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType and $projection.BillOfOperations = _BillOfOperationsGroup.BillOfOperationsGroup
[0..1] I_BillOfOperationsGroup _BillOfOperationsGroup2 $projection.BillOfOperationsType = _BillOfOperationsGroup2.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsGroup2.BillOfOperationsGroup
[0..1] I_MfgBillOfOperations _BillOfOperations $projection.BillOfOperationsType = _BillOfOperations.BillOfOperationsType and $projection.BillOfOperations = _BillOfOperations.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperations.BillOfOperationsVariant
[0..1] I_MfgBillOfOperations _BillOfOperations2 $projection.BillOfOperationsType = _BillOfOperations2.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperations2.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperations2.BillOfOperationsVariant -- to root: Header
[1..1] I_ManufacturingOrder _ManufacturingOrder $projection.ManufacturingOrder = _ManufacturingOrder.ManufacturingOrder -- to child: Operations
[1..*] I_ManufacturingOrderOperation _MfgOrderOperation $projection.OrderInternalID = _MfgOrderOperation.MfgOrderInternalID -- to child: Longtext
[0..1] I_MfgOrderSequenceLongText _MfgOrderSequenceLongText $projection.OrderInternalID = _MfgOrderSequenceLongText.OrderInternalID and $projection.SequenceInternalID = _MfgOrderSequenceLongText.SequenceInternalID and $projection.Language = _MfgOrderSequenceLongText.LongTextLanguage -- start new associations for full coverage of text relations
[1..1] I_ManufacturingOrder _MfgOrderText $projection.ManufacturingOrder = _MfgOrderText.ManufacturingOrder
[1..1] I_Plant _ProductionPlantText $projection.ProductionPlant = _ProductionPlantText.Plant
[1..1] I_StatusObject _StatusObjectText $projection.ObjectInternalID = _StatusObjectText.StatusObject

Annotations (19)

NameValueLevelField
AbapCatalog.sqlViewName IPPMFGORDSEQ view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey ManufacturingOrderSequence view
ObjectModel.sapObjectNodeType.name ProductionOrderSequence view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #COMPOSITE view
EndUserText.label Manufacturing Order Sequence view

Fields (48)

KeyFieldSource TableSource FieldDescription
KEY ManufacturingOrder Manufacturing Order ID
KEY ManufacturingOrderSequence Manufacturing Order Sequence
OrderInternalID I_OrderSequence OrderInternalID Order Internal ID
SequenceInternalID I_OrderSequence SequenceInternalID Sequence Internal ID
MfgOrderSequenceText Manufacturing Order Sequence Text
Language I_OrderSequence Language Report Text Language
MfgOrderSequenceBrnchOperation Number of the Branch Operation
MfgOrderSqncBranchOperation_2 Branch Operation ID
MfgOrderSequenceRetOperation Number of the Return Operation
MfgOrderSqncReturnOperation_2 Return Operation ID
ManufacturingOrderCategory Manufacturing Order Category
ManufacturingOrderType Manufacturing Order Type
MfgOrderSequenceCategory I_OrderSequence SequenceCategory Sequence Category
ProductionPlant I_OrderSequence ProductionPlant Production Plant
ReferenceSequence Reference Sequence
BillOfOperationsType I_OrderSequence BillOfOperationsType Bill of Operations Type
BillOfOperations I_OrderSequence BillOfOperations Bill of Operations ID
BillOfOperationsGroup I_OrderSequence BillOfOperationsGroup Bill of Operations Group
BillOfOperationsVariant I_OrderSequence BillOfOperationsVariant Bill of Operations Variant
SequenceSchedulingAlignment I_OrderSequence SequenceSchedulingAlignment Alignment Key for Scheduling
ObjectInternalID I_OrderSequence ObjectInternalID Object number
BillOfOperationsUnit I_OrderSequence BillOfOperationsUnit Task List Unit of Measure
MinimumLotSizeQuantity I_OrderSequence MinimumLotSizeQuantity Minimum Lot Size
MaximumLotSizeQuantity I_OrderSequence MaximumLotSizeQuantity Maximum Lot Size
_MfgOrder _MfgOrder
_ManufacturingOrder _ManufacturingOrder
_MfgOrderOperation _MfgOrderOperation
_MfgOrderSequenceLongText _MfgOrderSequenceLongText
_MfgOrderCategory _MfgOrderCategory
_MfgOrderType _MfgOrderType
_ReferenceSequence _ReferenceSequence
_StatusObject I_OrderSequence _StatusObject
_OrderInternalID I_OrderSequence _OrderInternalID
_SequenceCategory I_OrderSequence _SequenceCategory
_SequenceSchedulingAlignment I_OrderSequence _SequenceSchedulingAlignment
_Plant I_OrderSequence _Plant
_BillOfOperationsType I_OrderSequence _BillOfOperationsType
_BillOfOperationsGroup _BillOfOperationsGroup
_BillOfOperationsGroup2 _BillOfOperationsGroup2
_BillOfOperations _BillOfOperations
_BillOfOperations2 _BillOfOperations2
_BillOfOperationsVariant I_OrderSequence _BillOfOperationsVariant
_BillOfOperationsUnit I_OrderSequence _BillOfOperationsUnit
_LongText I_OrderSequence _LongText
_Language I_OrderSequence _Language
_MfgOrderText _MfgOrderText
_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_MfgOrderSequence.
-- 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: IPPMFGORDSEQ

CREATE VIEW I_MfgOrderSequence AS
SELECT
  cast(affl.OrderID as manufacturingorder preserving type) AS ManufacturingOrder,
  cast(affl.Sequence as manufacturingordersequence preserving type) AS ManufacturingOrderSequence,
  affl.OrderInternalID AS OrderInternalID,
  affl.SequenceInternalID AS SequenceInternalID,
  cast(affl.SequenceText as mfgordersequencetext preserving type) AS MfgOrderSequenceText,
  affl.Language AS Language,
  cast(vornr1.Operation as vornr1 preserving type) AS MfgOrderSequenceBrnchOperation,
  cast(vornr1.Operation_2 as vdm_vornr1 preserving type) AS MfgOrderSqncBranchOperation_2,
  cast(vornr2.Operation as vornr2 preserving type) AS MfgOrderSequenceRetOperation,
  cast(vornr2.Operation_2 as vdm_vornr2 preserving type) AS MfgOrderSqncReturnOperation_2,
  cast(affl.OrderCategory as manufacturingordercategory preserving type) AS ManufacturingOrderCategory,
  cast(affl.OrderType as manufacturingordertype preserving type) AS ManufacturingOrderType,
  affl.SequenceCategory AS MfgOrderSequenceCategory,
  affl.ProductionPlant AS ProductionPlant,
  affl.BillOfOperationsType AS BillOfOperationsType,
  affl.BillOfOperations AS BillOfOperations,
  affl.BillOfOperationsGroup AS BillOfOperationsGroup,
  affl.BillOfOperationsVariant AS BillOfOperationsVariant,
  affl.SequenceSchedulingAlignment AS SequenceSchedulingAlignment,
  affl.ObjectInternalID AS ObjectInternalID,
  affl.BillOfOperationsUnit AS BillOfOperationsUnit,
  affl.MinimumLotSizeQuantity AS MinimumLotSizeQuantity,
  affl.MaximumLotSizeQuantity AS MaximumLotSizeQuantity,
  affl._StatusObject AS _StatusObject,
  affl._OrderInternalID AS _OrderInternalID,
  affl._SequenceCategory AS _SequenceCategory,
  affl._SequenceSchedulingAlignment AS _SequenceSchedulingAlignment,
  affl._Plant AS _Plant,
  affl._BillOfOperationsType AS _BillOfOperationsType,
  affl._BillOfOperationsVariant AS _BillOfOperationsVariant,
  affl._BillOfOperationsUnit AS _BillOfOperationsUnit,
  affl._LongText AS _LongText,
  affl._Language AS _Language
FROM I_OrderSequence AS affl
LEFT OUTER JOIN I_MfgOrder AS _MfgOrder ON ManufacturingOrder = _MfgOrder.ManufacturingOrder  -- association [1..1]
LEFT OUTER JOIN I_MfgOrderCategory AS _MfgOrderCategory ON ManufacturingOrderCategory = _MfgOrderCategory.ManufacturingOrderCategory  -- association [1..1]
LEFT OUTER JOIN I_MfgOrderType AS _MfgOrderType ON ManufacturingOrderType = _MfgOrderType.ManufacturingOrderType  -- association [1..1]
LEFT OUTER JOIN I_MfgOrderSequence AS _ReferenceSequence ON ManufacturingOrder = _ReferenceSequence.ManufacturingOrder AND ReferenceSequence = _ReferenceSequence.ManufacturingOrderSequence  -- association [0..1]
LEFT OUTER JOIN I_BillOfOperationsGroup AS _BillOfOperationsGroup ON BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType AND BillOfOperations = _BillOfOperationsGroup.BillOfOperationsGroup  -- association [0..1]
LEFT OUTER JOIN I_BillOfOperationsGroup AS _BillOfOperationsGroup2 ON BillOfOperationsType = _BillOfOperationsGroup2.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsGroup2.BillOfOperationsGroup  -- association [0..1]
LEFT OUTER JOIN I_MfgBillOfOperations AS _BillOfOperations ON BillOfOperationsType = _BillOfOperations.BillOfOperationsType AND BillOfOperations = _BillOfOperations.BillOfOperationsGroup AND BillOfOperationsVariant = _BillOfOperations.BillOfOperationsVariant  -- association [0..1]
LEFT OUTER JOIN I_MfgBillOfOperations AS _BillOfOperations2 ON BillOfOperationsType = _BillOfOperations2.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperations2.BillOfOperationsGroup AND BillOfOperationsVariant = _BillOfOperations2.BillOfOperationsVariant  -- association [0..1]
LEFT OUTER JOIN I_ManufacturingOrder AS _ManufacturingOrder ON ManufacturingOrder = _ManufacturingOrder.ManufacturingOrder  -- association [1..1]
LEFT OUTER JOIN I_ManufacturingOrderOperation AS _MfgOrderOperation ON OrderInternalID = _MfgOrderOperation.MfgOrderInternalID  -- association [1..*]
LEFT OUTER JOIN I_MfgOrderSequenceLongText AS _MfgOrderSequenceLongText ON OrderInternalID = _MfgOrderSequenceLongText.OrderInternalID AND SequenceInternalID = _MfgOrderSequenceLongText.SequenceInternalID AND Language = _MfgOrderSequenceLongText.LongTextLanguage  -- association [0..1]
LEFT OUTER JOIN I_ManufacturingOrder AS _MfgOrderText ON ManufacturingOrder = _MfgOrderText.ManufacturingOrder  -- 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]
;