I_OrderSequence
Order Sequence
I_OrderSequence is a Basic CDS View (Dimension) that provides data about "Order Sequence" in SAP S/4HANA. It reads from 2 data sources (affl, caufv) and exposes 38 fields with key field OrderInternalID. It has 16 associations to related views. Part of development package VDM_PP_SFC.
Associations (16)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_LogisticsOrder | _Order | $projection.OrderID = _Order.OrderID |
| [1..1] | I_OrderCategory | _OrderCategory | $projection.OrderCategory = _OrderCategory.OrderCategory |
| [1..1] | I_OrderType | _OrderType | $projection.OrderType= _OrderType.OrderType |
| [0..1] | I_OrderSequenceBySemKey | _ReferenceSequence | $projection.OrderID = _ReferenceSequence.OrderID and $projection.ReferenceSequence = _ReferenceSequence.Sequence |
| [1..1] | I_SequenceCategory | _SequenceCategory | $projection.SequenceCategory = _SequenceCategory.SequenceCategory |
| [0..1] | I_SequenceSchedulingAlignment | _SequenceSchedulingAlignment | $projection.SequenceSchedulingAlignment = _SequenceSchedulingAlignment.SequenceSchedulingAlignment |
| [1..1] | I_OrderInternalID | _OrderInternalID | $projection.OrderInternalID = _OrderInternalID.OrderInternalID |
| [1..1] | I_Plant | _Plant | $projection.ProductionPlant = _Plant.Plant |
| [0..1] | I_ProductionSupervisor | _ProductionSupervisor | $projection.ProductionPlant = _ProductionSupervisor.Plant and $projection.ProductionSupervisor = _ProductionSupervisor.ProductionSupervisor |
| [0..1] | I_BillOfOperationsType | _BillOfOperationsType | $projection.BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType |
| [0..1] | I_BillOfOperationsGroup | _BillOfOperationsGroup | $projection.BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup |
| [0..1] | I_BillOfOperations | _BillOfOperationsVariant | $projection.BillOfOperationsType = _BillOfOperationsVariant.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsVariant.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperationsVariant.BillOfOperationsVariant |
| [0..1] | I_UnitOfMeasure | _BillOfOperationsUnit | $projection.BillOfOperationsUnit = _BillOfOperationsUnit.UnitOfMeasure |
| [1..1] | I_StatusObject | _StatusObject | $projection.ObjectInternalID = _StatusObject.StatusObject |
| [0..1] | I_Language | _Language | $projection.Language = _Language.Language |
| [0..1] | I_OrderSequenceLongText | _LongText | $projection.OrderInternalID = _LongText.OrderInternalID and $projection.SequenceInternalID = _LongText.SequenceInternalID |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IORDERSEQUENCE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.representativeKey | SequenceInternalID | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Order Sequence | view |
Fields (38)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderInternalID | |||
| OrderID | caufv | aufnr | SettlementOrder | |
| Sequence | affl | plnfl | Sequence | |
| SequenceText | affl | ltxa1 | Short Text | |
| Language | affl | txtsp | Language | |
| OrderCategory | ||||
| OrderType | ||||
| SequenceCategory | affl | flgat | Sequence Category | |
| ProductionPlant | ||||
| ProductionSupervisor | ||||
| BillOfOperationsType | ||||
| BillOfOperations | ||||
| BillOfOperationsGroup | ||||
| BillOfOperationsVariant | ||||
| SequenceSchedulingAlignment | affl | auschl | Alignment Key | |
| ReferenceSequence | affl | bezfl | Ref. Sequence | |
| ObjectInternalID | affl | objnr | Val. Obj. No. | |
| BranchOperationInternalID | affl | bknt1 | RefOpSet from | |
| ReturnOperationInternalID | affl | bknt2 | Ref.oper. to | |
| BillOfOperationsUnit | caufv | plnme | Unit | |
| MinimumLotSizeQuantity | affl | losvn | Lot Size From | |
| MaximumLotSizeQuantity | affl | losbs | To Lot Size | |
| _Order | _Order | |||
| _OrderCategory | _OrderCategory | |||
| _OrderType | _OrderType | |||
| _SequenceCategory | _SequenceCategory | |||
| _ReferenceSequence | _ReferenceSequence | |||
| _SequenceSchedulingAlignment | _SequenceSchedulingAlignment | |||
| _OrderInternalID | _OrderInternalID | |||
| _Plant | _Plant | |||
| _ProductionSupervisor | _ProductionSupervisor | |||
| _BillOfOperationsType | _BillOfOperationsType | |||
| _BillOfOperationsGroup | _BillOfOperationsGroup | |||
| _BillOfOperationsVariant | _BillOfOperationsVariant | |||
| _BillOfOperationsUnit | _BillOfOperationsUnit | |||
| _StatusObject | _StatusObject | |||
| _LongText | _LongText | |||
| _Language | _Language |
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_OrderSequence.
-- 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: IORDERSEQUENCE
CREATE VIEW I_OrderSequence AS
SELECT
cast(affl.aufpl as pph_aufpl preserving type) AS OrderInternalID,
aufv.aufnr AS OrderID,
affl.plnfl AS Sequence,
affl.ltxa1 AS SequenceText,
affl.txtsp AS Language,
cast(aufv.autyp as pph_autyp preserving type) AS OrderCategory,
cast(aufv.auart as aufart preserving type) AS OrderType,
affl.flgat AS SequenceCategory,
cast(aufv.werks as pwwrk preserving type) AS ProductionPlant,
cast(aufv.fevor as pph_fevor preserving type) AS ProductionSupervisor,
cast(affl.plnty as billofoperationstype preserving type) AS BillOfOperationsType,
cast(affl.plnnr as billofoperations preserving type) AS BillOfOperations,
cast(affl.plnnr as billofoperationsgroup preserving type) AS BillOfOperationsGroup,
cast(affl.plnal as billofoperationsvariant preserving type) AS BillOfOperationsVariant,
affl.auschl AS SequenceSchedulingAlignment,
affl.bezfl AS ReferenceSequence,
affl.objnr AS ObjectInternalID,
affl.bknt1 AS BranchOperationInternalID,
affl.bknt2 AS ReturnOperationInternalID,
aufv.plnme AS BillOfOperationsUnit,
affl.losvn AS MinimumLotSizeQuantity,
affl.losbs AS MaximumLotSizeQuantity
FROM affl
INNER JOIN caufv AS aufv ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_LogisticsOrder AS _Order ON OrderID = _Order.OrderID -- association [1..1]
LEFT OUTER JOIN I_OrderCategory AS _OrderCategory ON OrderCategory = _OrderCategory.OrderCategory -- association [1..1]
LEFT OUTER JOIN I_OrderType AS _OrderType ON OrderType= _OrderType.OrderType -- association [1..1]
LEFT OUTER JOIN I_OrderSequenceBySemKey AS _ReferenceSequence ON OrderID = _ReferenceSequence.OrderID AND ReferenceSequence = _ReferenceSequence.Sequence -- association [0..1]
LEFT OUTER JOIN I_SequenceCategory AS _SequenceCategory ON SequenceCategory = _SequenceCategory.SequenceCategory -- association [1..1]
LEFT OUTER JOIN I_SequenceSchedulingAlignment AS _SequenceSchedulingAlignment ON SequenceSchedulingAlignment = _SequenceSchedulingAlignment.SequenceSchedulingAlignment -- association [0..1]
LEFT OUTER JOIN I_OrderInternalID AS _OrderInternalID ON OrderInternalID = _OrderInternalID.OrderInternalID -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON ProductionPlant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN I_ProductionSupervisor AS _ProductionSupervisor ON ProductionPlant = _ProductionSupervisor.Plant AND ProductionSupervisor = _ProductionSupervisor.ProductionSupervisor -- association [0..1]
LEFT OUTER JOIN I_BillOfOperationsType AS _BillOfOperationsType ON BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType -- association [0..1]
LEFT OUTER JOIN I_BillOfOperationsGroup AS _BillOfOperationsGroup ON BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup -- association [0..1]
LEFT OUTER JOIN I_BillOfOperations AS _BillOfOperationsVariant ON BillOfOperationsType = _BillOfOperationsVariant.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsVariant.BillOfOperationsGroup AND BillOfOperationsVariant = _BillOfOperationsVariant.BillOfOperationsVariant -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BillOfOperationsUnit ON BillOfOperationsUnit = _BillOfOperationsUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_StatusObject AS _StatusObject ON ObjectInternalID = _StatusObject.StatusObject -- association [1..1]
LEFT OUTER JOIN I_Language AS _Language ON Language = _Language.Language -- association [0..1]
LEFT OUTER JOIN I_OrderSequenceLongText AS _LongText ON OrderInternalID = _LongText.OrderInternalID AND SequenceInternalID = _LongText.SequenceInternalID -- association [0..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