P_APIOrderStatus
Production Order Status
P_APIOrderStatus is a Composite CDS View that provides data about "Production Order Status" in SAP S/4HANA. It reads from 2 data sources (I_OrderBasic, I_StatusObjectStatusBasic) and exposes 7 fields with key fields ManufacturingOrder, StatusCode. It has 2 associations to related views. Part of development package ODATA_PP_API_PRODORDER_2.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_OrderBasic | _order | from |
| I_StatusObjectStatusBasic | _StatusBasic | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_SystemStatusText | _SystemStatusText | $projection.StatusCode = _SystemStatusText.SystemStatus and _SystemStatusText.Language = $session.system_language |
| [1..1] | I_UserStatusText | _UserStatusText | $projection.statusprofile = _UserStatusText.StatusProfile and $projection.StatusCode = _UserStatusText.UserStatus and _UserStatusText.Language = $session.system_language |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.private | true | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ManufacturingOrder | I_OrderBasic | OrderID | Order ID |
| KEY | StatusCode | I_StatusObjectStatusBasic | StatusCode | Statuscode |
| ManufacturingOrderCategory | I_OrderBasic | OrderCategory | Order Category | |
| StatusProfile | ||||
| SystemStatusName | _SystemStatusText | SystemStatusName | ||
| SystemStatusShortName | _SystemStatusText | SystemStatusShortName | ||
| _UserStatusText | _UserStatusText |
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_APIOrderStatus.
-- 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_APIOrderStatus AS
SELECT
_order.OrderID AS ManufacturingOrder,
_StatusBasic.StatusCode AS StatusCode,
_order.OrderCategory AS ManufacturingOrderCategory,
_order._StatusObject.StatusProfile AS StatusProfile,
_SystemStatusText.SystemStatusName AS SystemStatusName,
_SystemStatusText.SystemStatusShortName AS SystemStatusShortName
FROM I_OrderBasic AS _order
INNER JOIN I_StatusObjectStatusBasic AS _StatusBasic ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SystemStatusText AS _SystemStatusText ON StatusCode = _SystemStatusText.SystemStatus AND _SystemStatusText.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN I_UserStatusText AS _UserStatusText ON statusprofile = _UserStatusText.StatusProfile AND StatusCode = _UserStatusText.UserStatus AND _UserStatusText.Language = $session.system_language -- association [1..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