C_ProductionOrderHold

DDL: C_PRODUCTIONORDERHOLD SQL: CMPEPRODORDHOLD Type: view CONSUMPTION Package: MPE_EXEC_COMMON

Active Production Holds of Production Orders

C_ProductionOrderHold is a Consumption CDS View that provides data about "Active Production Holds of Production Orders" in SAP S/4HANA. It reads from 2 data sources (P_MfgOrderHeaderHoldUnionBasic, I_ProductionHoldAction) and exposes 16 fields with key field ProductionHold. It has 5 associations to related views. Part of development package MPE_EXEC_COMMON.

Data Sources (2)

SourceAliasJoin Type
P_MfgOrderHeaderHoldUnionBasic Hold from
I_ProductionHoldAction ProductionHoldAction inner

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_Material _Material $projection.Material = _Material.Material
[1..1] I_Plant _ProductionPlant $projection.ProductionPlant = _ProductionPlant.Plant
[1..1] I_MfgOrderCategory _MfgOrderCategory $projection.ManufacturingOrderCategory = _MfgOrderCategory.ManufacturingOrderCategory
[1..1] I_MfgOrderType _MfgOrderType $projection.ManufacturingOrderType = _MfgOrderType.ManufacturingOrderType
[1..1] I_ProductionHoldObjectType _ProductionHoldObjectType $projection.ProductionHoldObjectType = _ProductionHoldObjectType.ProductionHoldObjectType

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CMPEPRODORDHOLD view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY ProductionHold P_MfgOrderHeaderHoldUnionBasic ProductionHold Hold ID
ManufacturingOrder P_MfgOrderHeaderHoldUnionBasic ManufacturingOrder Order
ManufacturingOrderType P_MfgOrderHeaderHoldUnionBasic ManufacturingOrderType
ManufacturingOrderCategory P_MfgOrderHeaderHoldUnionBasic ManufacturingOrderCategory
Material P_MfgOrderHeaderHoldUnionBasic Material Vehicle Model
ProductionPlant P_MfgOrderHeaderHoldUnionBasic ProductionPlant Prod plnt
ProductionHoldObjectType P_MfgOrderHeaderHoldUnionBasic ProductionHoldObjectType
MfgActionReasonCodeGroupCtlg I_ProductionHoldAction MfgActionReasonCodeGroupCtlg Catalog
MfgActionReasonCodeGroup I_ProductionHoldAction MfgActionReasonCodeGroup Code Group
ManufacturingActionReasonCode I_ProductionHoldAction ManufacturingActionReasonCode Water Hazard Cl.
MfgActionReasonCodeName
_ProductionHoldObjectType _ProductionHoldObjectType
_MfgOrderCategory _MfgOrderCategory
_MfgOrderType _MfgOrderType
_Material _Material
_ProductionPlant _ProductionPlant

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 C_ProductionOrderHold.
-- 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: CMPEPRODORDHOLD

CREATE VIEW C_ProductionOrderHold AS
SELECT
  Hold.ProductionHold AS ProductionHold,
  Hold.ManufacturingOrder AS ManufacturingOrder,
  Hold.ManufacturingOrderType AS ManufacturingOrderType,
  Hold.ManufacturingOrderCategory AS ManufacturingOrderCategory,
  Hold.Material AS Material,
  Hold.ProductionPlant AS ProductionPlant,
  Hold.ProductionHoldObjectType AS ProductionHoldObjectType,
  ProductionHoldAction.MfgActionReasonCodeGroupCtlg AS MfgActionReasonCodeGroupCtlg,
  ProductionHoldAction.MfgActionReasonCodeGroup AS MfgActionReasonCodeGroup,
  ProductionHoldAction.ManufacturingActionReasonCode AS ManufacturingActionReasonCode,
  ProductionHoldAction._MfgActionReasonCode._Text[1: Language=$session.system_language].MfgActionReasonCodeName AS MfgActionReasonCodeName
FROM P_MfgOrderHeaderHoldUnionBasic AS Hold
INNER JOIN I_ProductionHoldAction AS ProductionHoldAction ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _ProductionPlant ON ProductionPlant = _ProductionPlant.Plant  -- association [1..1]
LEFT OUTER JOIN I_MfgOrderCategory AS _MfgOrderCategory ON ManufacturingOrderCategory = _MfgOrderCategory.ManufacturingOrderCategory  -- association [1..1]
LEFT OUTER JOIN I_MfgOrderType AS _MfgOrderType ON ManufacturingOrderType = _MfgOrderType.ManufacturingOrderType  -- association [1..1]
LEFT OUTER JOIN I_ProductionHoldObjectType AS _ProductionHoldObjectType ON ProductionHoldObjectType = _ProductionHoldObjectType.ProductionHoldObjectType  -- association [1..1]
;