C_ProductionOrderHold
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)
| Source | Alias | Join Type |
|---|---|---|
| P_MfgOrderHeaderHoldUnionBasic | Hold | from |
| I_ProductionHoldAction | ProductionHoldAction | inner |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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