A_ProductionOrderStatus

DDL: A_PRODUCTIONORDERSTATUS Type: view_entity COMPOSITE Package: ODATA_PP_API_PRODORDER

API Production Order Status

A_ProductionOrderStatus is a Composite CDS View that provides data about "API Production Order Status" in SAP S/4HANA. It reads from 3 data sources (I_MfgOrderStatus, I_StatusCodeText, I_UserStatusText) and exposes 5 fields with key fields ManufacturingOrder, StatusCode. It has 1 association to related views. Part of development package ODATA_PP_API_PRODORDER.

Data Sources (3)

SourceAliasJoin Type
I_MfgOrderStatus _MfgOrderStatus inner
I_StatusCodeText _StatusCodeText left_outer
I_UserStatusText _UserStatusText left_outer

Associations (1)

CardinalityTargetAliasCondition
[1..1] A_ProductionOrder _ProductionOrder $projection.ManufacturingOrder = _ProductionOrder.ProductionOrder

Annotations (8)

NameValueLevelField
EndUserText.label API Production Order Status view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY ManufacturingOrder I_MfgOrderStatus ManufacturingOrder Order
KEY StatusCode _StatusObject StatusCode Statuscode
IsUserStatus
StatusNameendasj_txt30asStatusName
_ProductionOrder _ProductionOrder

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 A_ProductionOrderStatus.
-- 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 A_ProductionOrderStatus AS
SELECT
  _MfgOrderStatus.ManufacturingOrder AS ManufacturingOrder,
  _StatusObject.StatusCode AS StatusCode,
  _StatusObject._StatusCode._StatusCodeText[1:Language=$session.system_language].IsUserStatus AS IsUserStatus,
  cast(case _StatusObject._StatusCode._StatusCodeText[1:Language=$session.system_language].IsUserStatus when 'X' then _UserStatusText.UserStatusName else _StatusCodeText.StatusName end as j_txt30 ) as StatusName AS StatusNameendasj_txt30asStatusName
INNER JOIN I_MfgOrderStatus AS _MfgOrderStatus ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_StatusCodeText AS _StatusCodeText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_UserStatusText AS _UserStatusText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN A_ProductionOrder AS _ProductionOrder ON ManufacturingOrder = _ProductionOrder.ProductionOrder  -- association [1..1]
;