P_InternalOrderSystemStatus
Internal order system status
P_InternalOrderSystemStatus is a Composite CDS View that provides data about "Internal order system status" in SAP S/4HANA. It reads from 3 data sources (I_InternalOrder, I_InternalOrderSystemStatus, I_SystemStatus) and exposes 7 fields with key fields InternalOrder, SystemStatus. It has 2 associations to related views. Part of development package ODATA_INTERNAL_ORDERS_V2.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_InternalOrder | _InternalOrder | inner |
| I_InternalOrderSystemStatus | _InternalOrderSystemStatus | cross |
| I_SystemStatus | _SystemStatus | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_StatusObjectStatusChange | _StatusObjectStatusChange | _StatusObjectStatusChange.StatusObject = _InternalOrder.ControllingObject and _StatusObjectStatusChange.StatusCode = _SystemStatus.SystemStatus and _StatusObjectStatusChange.StatusObjectStatusChangeNumber = _InternalOrderSystemStatus.StatusObjectStatusChangeNumber |
| [0..1] | I_UserContactCard | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.ContactCardID |
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InternalOrder | I_InternalOrder | InternalOrder | Order |
| KEY | SystemStatus | I_SystemStatus | SystemStatus | System status |
| SystemStatusShortName | ||||
| SystemStatusName | ||||
| StatusIsInactive | I_InternalOrderSystemStatus | StatusIsInactive | TRUE | |
| ControllingObject | I_InternalOrder | ControllingObject | Object number | |
| _LastChangedByUser | _LastChangedByUser |
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 P_InternalOrderSystemStatus.
-- 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 P_InternalOrderSystemStatus AS
SELECT
_InternalOrder.InternalOrder AS InternalOrder,
_SystemStatus.SystemStatus AS SystemStatus,
_SystemStatus._SystemStatusText[ 1: Language = $session.system_language ].SystemStatusShortName AS SystemStatusShortName,
_SystemStatus._SystemStatusText[ 1: Language = $session.system_language ].SystemStatusName AS SystemStatusName,
_InternalOrderSystemStatus.StatusIsInactive AS StatusIsInactive,
_InternalOrder.ControllingObject AS ControllingObject
FROM I_SystemStatus AS _SystemStatus
CROSS JOIN I_InternalOrderSystemStatus AS _InternalOrderSystemStatus
INNER JOIN I_InternalOrder AS _InternalOrder ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_StatusObjectStatusChange AS _StatusObjectStatusChange ON _StatusObjectStatusChange.StatusObject = _InternalOrder.ControllingObject AND _StatusObjectStatusChange.StatusCode = _SystemStatus.SystemStatus AND _StatusObjectStatusChange.StatusObjectStatusChangeNumber = _InternalOrderSystemStatus.StatusObjectStatusChangeNumber -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.ContactCardID -- 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