I_OrderSequenceBasic
Order Sequence
I_OrderSequenceBasic is a Basic CDS View that provides data about "Order Sequence" in SAP S/4HANA. It reads from 1 data source (affl) and exposes 23 fields with key field OrderInternalID. It has 10 associations to related views. Part of development package VDM_PP_SFC.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| affl | affl | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_LogisticsOrder | _LogisticsOrder | $projection.OrderInternalID = _LogisticsOrder.OrderInternalBillOfOperations |
| [1..1] | I_SequenceCategory | _SequenceCategory | $projection.SequenceCategory = _SequenceCategory.SequenceCategory |
| [0..1] | I_SequenceSchedulingAlignment | _SequenceSchedulingAlignment | $projection.SequenceSchedulingAlignment = _SequenceSchedulingAlignment.SequenceSchedulingAlignment |
| [0..1] | I_OrderSequenceBasic | _ReferenceSequence | $projection.OrderInternalID = _ReferenceSequence.OrderInternalID and $projection.ReferenceSequence = _ReferenceSequence.Sequence |
| [1..1] | I_OrderInternalID | _OrderInternalID | $projection.OrderInternalID = _OrderInternalID.OrderInternalID |
| [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_Language | _Language | $projection.Language = _Language.Language |
| [0..1] | I_OrderSequenceLongText | _LongText | $projection.OrderInternalID = _LongText.OrderInternalID and $projection.SequenceInternalID = _LongText.SequenceInternalID |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Order Sequence | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderInternalID | |||
| Sequence | affl | plnfl | Sequence | |
| SequenceText | affl | ltxa1 | Short Text | |
| Language | affl | txtsp | Language | |
| SequenceCategory | affl | flgat | Sequence Category | |
| BillOfOperationsType | ||||
| 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 | |
| _LogisticsOrder | _LogisticsOrder | |||
| _SequenceCategory | _SequenceCategory | |||
| _SequenceSchedulingAlignment | _SequenceSchedulingAlignment | |||
| _ReferenceSequence | _ReferenceSequence | |||
| _OrderInternalID | _OrderInternalID | |||
| _BillOfOperationsType | _BillOfOperationsType | |||
| _BillOfOperationsGroup | _BillOfOperationsGroup | |||
| _BillOfOperationsVariant | _BillOfOperationsVariant | |||
| _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_OrderSequenceBasic.
-- 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_OrderSequenceBasic AS
SELECT
cast(affl.aufpl as pph_aufpl preserving type) AS OrderInternalID,
affl.plnfl AS Sequence,
affl.ltxa1 AS SequenceText,
affl.txtsp AS Language,
affl.flgat AS SequenceCategory,
cast(affl.plnty as billofoperationstype preserving type) AS BillOfOperationsType,
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
FROM affl
LEFT OUTER JOIN I_LogisticsOrder AS _LogisticsOrder ON OrderInternalID = _LogisticsOrder.OrderInternalBillOfOperations -- association [1..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_OrderSequenceBasic AS _ReferenceSequence ON OrderInternalID = _ReferenceSequence.OrderInternalID AND ReferenceSequence = _ReferenceSequence.Sequence -- association [0..1]
LEFT OUTER JOIN I_OrderInternalID AS _OrderInternalID ON OrderInternalID = _OrderInternalID.OrderInternalID -- association [1..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_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