P_ProductionHoldTP
P_ProductionHoldTP is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_ProductionHoldEnhcd, I_ProductionHoldAction) and exposes 62 fields with key field ProductionHold. It has 13 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_ProductionHoldEnhcd | ProductionHold | from |
| I_ProductionHoldAction | ProductionHoldApply | inner |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ProductionHoldStatus | _ProductionHoldStatus | $projection.ProductionHoldStatus = _ProductionHoldStatus.ProductionHoldStatus |
| [0..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [0..1] | I_MfgOrder | _MfgOrder | $projection.ManufacturingOrder = _MfgOrder.ManufacturingOrder |
| [0..1] | I_MfgOrderOperation | _MfgOrderOperation | $projection.OrderInternalID = _MfgOrderOperation.OrderInternalBillOfOperations and $projection.OrderOperationInternalID = _MfgOrderOperation.OrderIntBillOfOperationsItem |
| [0..1] | I_OrderOperationBasic | _OrderOperationBasic | $projection.OrderInternalID = _OrderOperationBasic.OrderInternalID and $projection.OrderOperationInternalID = _OrderOperationBasic.OrderOperationInternalID |
| [0..1] | I_WorkCenterBySemanticKey | _WorkCenterBySemanticKey | $projection.ProductionPlant = _WorkCenterBySemanticKey.Plant and $projection.WorkCenter = _WorkCenterBySemanticKey.WorkCenter |
| [0..1] | I_ManufacturingActionSetting | _ReleaseActionSetting | $projection.ProductionPlant = _ReleaseActionSetting.Plant and $projection.MfgObjectType = _ReleaseActionSetting.MfgObjectType and ( ( $projection.ProductionHoldObjectType = '1' and _ReleaseActionSetting.MfgProcgExecAction = 'SAP_RELEASE_MATERIAL_HOLD' ) or( $projection.ProductionHoldObjectType = '2' and _ReleaseActionSetting.MfgProcgExecAction = 'SAP_RELEASE_WC_HOLD' ) or( $projection.ProductionHoldObjectType = '3' and _ReleaseActionSetting.MfgProcgExecAction = 'SAP_RELEASE_ORDER_HOLD' ) or( $projection.ProductionHoldObjectType = '4' and _ReleaseActionSetting.MfgProcgExecAction = 'SAP_RELEASE_OPERATION_HOLD' ) or( $projection.ProductionHoldObjectType = '5' and _ReleaseActionSetting.MfgProcgExecAction = 'SAP_RELEASE_SFI_HOLD' ) or( $projection.ProductionHoldObjectType = '6' and _ReleaseActionSetting.MfgProcgExecAction = 'SAP_RELEASE_OA_HOLD' ) ) |
| [0..1] | I_ManufacturingActionSetting | _ApplyActionSetting | $projection.ProductionPlant = _ApplyActionSetting.Plant and $projection.MfgObjectType = _ApplyActionSetting.MfgObjectType and ( ( $projection.ProductionHoldObjectType = '1' and _ApplyActionSetting.MfgProcgExecAction = 'SAP_APPLY_MATERIAL_HOLD' ) or( $projection.ProductionHoldObjectType = '2' and _ApplyActionSetting.MfgProcgExecAction = 'SAP_APPLY_WC_HOLD' ) or( $projection.ProductionHoldObjectType = '3' and _ApplyActionSetting.MfgProcgExecAction = 'SAP_APPLY_ORDER_HOLD' ) or( $projection.ProductionHoldObjectType = '4' and _ApplyActionSetting.MfgProcgExecAction = 'SAP_APPLY_OPERATION_HOLD' ) or( $projection.ProductionHoldObjectType = '5' and _ApplyActionSetting.MfgProcgExecAction = 'SAP_APPLY_SFI_HOLD' ) or( $projection.ProductionHoldObjectType = '6' and _ApplyActionSetting.MfgProcgExecAction = 'SAP_APPLY_OA_HOLD' ) ) |
| [0..1] | I_Defect | _Defect | $projection.DefectInternalID = _Defect.DefectInternalID |
| [0..1] | I_Notification | _Notification | $projection.Notification = _Notification.Notification |
| [0..1] | I_NotificationItem | _NotificationItem | $projection.Notification = _NotificationItem.Notification and $projection.NotificationItem = _NotificationItem.NotificationItem |
| [0..1] | I_NotificationItem | _ReferenceNotificationItem | ProductionHold.DefectInternalID = _ReferenceNotificationItem.ReferencedDefect and ProductionHold.DefectInternalID <> '' and _ReferenceNotificationItem.IsDeleted = '' |
| [0..1] | I_NotificationItem | _NotificationItemRefDefect | ProductionHold.Notification = _NotificationItemRefDefect.Notification and ProductionHold.NotificationItem = _NotificationItemRefDefect.NotificationItem |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMPEPRODHOLDTP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (62)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProductionHold | P_ProductionHoldEnhcd | ProductionHold | Hold ID |
| ProductionHoldObjectType | ||||
| ProductionPlant | P_ProductionHoldEnhcd | ProductionPlant | Prod plnt | |
| Material | P_ProductionHoldEnhcd | Material | Vehicle Model | |
| WorkCenterInternalID | P_ProductionHoldEnhcd | WorkCenterInternalID | Work Center | |
| WorkCenterTypeCode | P_ProductionHoldEnhcd | WorkCenterTypeCode | Object Type | |
| WorkCenter | ||||
| WorkCenterText | ||||
| ManufacturingOrder | P_ProductionHoldEnhcd | ManufacturingOrder | Order | |
| OrderInternalID | P_ProductionHoldEnhcd | OrderInternalID | Plan No.f.Oper. | |
| OrderOperationInternalID | P_ProductionHoldEnhcd | OrderOperationInternalID | ||
| ManufacturingOrderSequence | P_ProductionHoldEnhcd | ManufacturingOrderSequence | ||
| ManufacturingOrderOperation | P_ProductionHoldEnhcd | ManufacturingOrderOperation | Activity | |
| OperationText | P_ProductionHoldEnhcd | OperationText | Description | |
| ShopFloorItem | P_ProductionHoldEnhcd | ShopFloorItem | Serial.Mat. ID | |
| SerialNumber | ShopFloorItem | SerialNumber | Serial Number | |
| OpActyNtwkInstance | P_ProductionHoldEnhcd | OpActyNtwkInstance | Instance ID | |
| OpActyNtwkElement | P_ProductionHoldEnhcd | OpActyNtwkElement | Element Number | |
| OperationActivitySFIGroup | P_ProductionHoldEnhcd | OperationActivitySFIGroup | ||
| OpActySFIGroupName | ||||
| OperationActivityName | P_ProductionHoldEnhcd | OperationActivityName | ||
| OpActyNtwkElementExternalID | P_ProductionHoldEnhcd | OpActyNtwkElementExternalID | Op. Activity | |
| ProductionHoldStartDateTime | P_ProductionHoldEnhcd | ProductionHoldStartDateTime | ||
| ProductionHoldEndDateTime | P_ProductionHoldEnhcd | ProductionHoldEndDateTime | ||
| ProductionHoldStatus | P_ProductionHoldEnhcd | ProductionHoldStatus | ||
| ProductionHoldStatusName | ||||
| HoldDurationInSeconds | P_ProductionHoldEnhcd | HoldDurationInSeconds | ||
| CalendarBasedNetDurnInSeconds | P_ProductionHoldEnhcd | CalendarBasedNetDurnInSeconds | ||
| WorkCenterBsdNetDurnInSeconds | P_ProductionHoldEnhcd | WorkCenterBsdNetDurnInSeconds | ||
| ProdnHoldApplyRsnCodeGrpCtlg | ||||
| ProdnHoldApplyRsnCodeGroup | ||||
| ProductionHoldApplyReasonCode | ||||
| ProdnHoldApplyReasonCodeName | ||||
| ProdnHoldApplyLastChgdByUsr | ||||
| ProdnHoldApplyLastChgdDteTme | ||||
| ProductionHoldApplyNote | ||||
| ProductionHoldApplyNote | ProductionHoldApplyNote | MfgExecutionDocumentNote | ||
| ProdnHoldRelRsnCodeGrpCtlg | ||||
| ProdnHoldRelRsnCodeGroup | ||||
| ProductionHoldRelReasonCode | ||||
| ProdnHoldReleaseLastChgdByUsr | ||||
| ProdnHoldReleaseLastChgdDteTme | ||||
| ProductionHoldReleaseNote | ProductionHoldReleaseNote | MfgExecutionDocumentNote | ||
| ProdnHoldIsAppldForOrderChg | P_ProductionHoldEnhcd | ProdnHoldIsAppldForOrderChg | ||
| _ProductionHoldObjectType | P_ProductionHoldEnhcd | _ProductionHoldObjectType | ||
| _ProductionHoldStatus | _ProductionHoldStatus | |||
| _ProductionPlant | P_ProductionHoldEnhcd | _ProductionPlant | ||
| _Material | _Material | |||
| _WorkCenter | P_ProductionHoldEnhcd | _WorkCenter | ||
| _WorkCenterBySemanticKey | _WorkCenterBySemanticKey | |||
| _MfgOrder | _MfgOrder | |||
| _MfgOrderOperation | _MfgOrderOperation | |||
| _OrderOperationBasic | _OrderOperationBasic | |||
| _ShopFloorItem | P_ProductionHoldEnhcd | _ShopFloorItem | ||
| _OpActyNtwkInstance | P_ProductionHoldEnhcd | _OpActyNtwkInstance | ||
| _OperationActivityInstance | P_ProductionHoldEnhcd | _OperationActivityInstance | ||
| _OperationActivitySFIGroup | P_ProductionHoldEnhcd | _OperationActivitySFIGroup | ||
| _ApplyActionSetting | _ApplyActionSetting | |||
| _ReleaseActionSetting | _ReleaseActionSetting | |||
| _Notification | _Notification | |||
| _NotificationItem | _NotificationItem | |||
| _Defect | _Defect |
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_ProductionHoldTP.
-- 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: PMPEPRODHOLDTP
CREATE VIEW P_ProductionHoldTP AS
SELECT
ProductionHold.ProductionHold AS ProductionHold,
cast(ProductionHold.ProductionHoldObjectType as mpe_manage_hold_object_type preserving type ) AS ProductionHoldObjectType,
ProductionHold.ProductionPlant AS ProductionPlant,
ProductionHold.Material AS Material,
ProductionHold.WorkCenterInternalID AS WorkCenterInternalID,
ProductionHold.WorkCenterTypeCode AS WorkCenterTypeCode,
cast(coalesce(ProductionHold._WorkCenter.WorkCenter, '') as arbpl preserving type ) AS WorkCenter,
ProductionHold._WorkCenter._Text[1: Language=$session.system_language].WorkCenterText AS WorkCenterText,
ProductionHold.ManufacturingOrder AS ManufacturingOrder,
ProductionHold.OrderInternalID AS OrderInternalID,
ProductionHold.OrderOperationInternalID AS OrderOperationInternalID,
ProductionHold.ManufacturingOrderSequence AS ManufacturingOrderSequence,
ProductionHold.ManufacturingOrderOperation AS ManufacturingOrderOperation,
ProductionHold.OperationText AS OperationText,
ProductionHold.ShopFloorItem AS ShopFloorItem,
ShopFloorItem.SerialNumber AS SerialNumber,
ProductionHold.OpActyNtwkInstance AS OpActyNtwkInstance,
ProductionHold.OpActyNtwkElement AS OpActyNtwkElement,
ProductionHold.OperationActivitySFIGroup AS OperationActivitySFIGroup,
ProductionHold._OperationActivitySFIGroup.OpActySFIGroupName AS OpActySFIGroupName,
ProductionHold.OperationActivityName AS OperationActivityName,
ProductionHold.OpActyNtwkElementExternalID AS OpActyNtwkElementExternalID,
ProductionHold.ProductionHoldStartDateTime AS ProductionHoldStartDateTime,
ProductionHold.ProductionHoldEndDateTime AS ProductionHoldEndDateTime,
ProductionHold.ProductionHoldStatus AS ProductionHoldStatus,
_ProductionHoldStatus._Text[1: Language=$session.system_language].ProductionHoldStatusName AS ProductionHoldStatusName,
ProductionHold.HoldDurationInSeconds AS HoldDurationInSeconds,
ProductionHold.CalendarBasedNetDurnInSeconds AS CalendarBasedNetDurnInSeconds,
ProductionHold.WorkCenterBsdNetDurnInSeconds AS WorkCenterBsdNetDurnInSeconds,
cast(ProductionHoldApply.MfgActionReasonCodeGroupCtlg as mpe_hold_apply_catalog preserving type ) AS ProdnHoldApplyRsnCodeGrpCtlg,
cast(ProductionHoldApply.MfgActionReasonCodeGroup as mpe_hold_apply_codegrp preserving type ) AS ProdnHoldApplyRsnCodeGroup,
cast(ProductionHoldApply.ManufacturingActionReasonCode as mpe_hold_apply_code preserving type ) AS ProductionHoldApplyReasonCode,
ProductionHoldApply._MfgActionReasonCode._Text[1: Language=$session.system_language].MfgActionReasonCodeName AS ProdnHoldApplyReasonCodeName,
cast(ProductionHoldApply.LastChangedByUser as mpe_hold_apply_lchg_user preserving type ) AS ProdnHoldApplyLastChgdByUsr,
cast(ProductionHoldApply.LastChangeDateTime as mpe_hold_apply_lchg_tstmpl preserving type ) AS ProdnHoldApplyLastChgdDteTme,
ProductionHoldApplyNote.MfgExecutionDocumentNote AS ProductionHoldApplyNote,
cast(ProductionHoldRelease.MfgActionReasonCodeGroupCtlg as mpe_hold_release_catalog preserving type ) AS ProdnHoldRelRsnCodeGrpCtlg,
cast(ProductionHoldRelease.MfgActionReasonCodeGroup as mpe_hold_release_codegrp preserving type ) AS ProdnHoldRelRsnCodeGroup,
cast(ProductionHoldRelease.ManufacturingActionReasonCode as mpe_hold_release_code preserving type ) AS ProductionHoldRelReasonCode,
cast(ProductionHoldRelease.LastChangedByUser as mpe_hold_release_lchg_user preserving type ) AS ProdnHoldReleaseLastChgdByUsr,
cast(ProductionHoldRelease.LastChangeDateTime as mpe_hold_release_lchg_tstmpl preserving type ) AS ProdnHoldReleaseLastChgdDteTme,
ProductionHoldReleaseNote.MfgExecutionDocumentNote AS ProductionHoldReleaseNote,
ProductionHold.ProdnHoldIsAppldForOrderChg AS ProdnHoldIsAppldForOrderChg,
ProductionHold._ProductionHoldObjectType AS _ProductionHoldObjectType,
ProductionHold._ProductionPlant AS _ProductionPlant,
ProductionHold._WorkCenter AS _WorkCenter,
ProductionHold._ShopFloorItem AS _ShopFloorItem,
ProductionHold._OpActyNtwkInstance AS _OpActyNtwkInstance,
ProductionHold._OperationActivityInstance AS _OperationActivityInstance,
ProductionHold._OperationActivitySFIGroup AS _OperationActivitySFIGroup
FROM P_ProductionHoldEnhcd AS ProductionHold
INNER JOIN I_ProductionHoldAction AS ProductionHoldApply ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProductionHoldStatus AS _ProductionHoldStatus ON ProductionHoldStatus = _ProductionHoldStatus.ProductionHoldStatus -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [0..1]
LEFT OUTER JOIN I_MfgOrder AS _MfgOrder ON ManufacturingOrder = _MfgOrder.ManufacturingOrder -- association [0..1]
LEFT OUTER JOIN I_MfgOrderOperation AS _MfgOrderOperation ON OrderInternalID = _MfgOrderOperation.OrderInternalBillOfOperations AND OrderOperationInternalID = _MfgOrderOperation.OrderIntBillOfOperationsItem -- association [0..1]
LEFT OUTER JOIN I_OrderOperationBasic AS _OrderOperationBasic ON OrderInternalID = _OrderOperationBasic.OrderInternalID AND OrderOperationInternalID = _OrderOperationBasic.OrderOperationInternalID -- association [0..1]
LEFT OUTER JOIN I_WorkCenterBySemanticKey AS _WorkCenterBySemanticKey ON ProductionPlant = _WorkCenterBySemanticKey.Plant AND WorkCenter = _WorkCenterBySemanticKey.WorkCenter -- association [0..1]
LEFT OUTER JOIN I_ManufacturingActionSetting AS _ReleaseActionSetting ON ProductionPlant = _ReleaseActionSetting.Plant AND MfgObjectType = _ReleaseActionSetting.MfgObjectType AND ( ( ProductionHoldObjectType = '1' AND _ReleaseActionSetting.MfgProcgExecAction = 'SAP_RELEASE_MATERIAL_HOLD' ) OR( ProductionHoldObjectType = '2' AND _ReleaseActionSetting.MfgProcgExecAction = 'SAP_RELEASE_WC_HOLD' ) OR( ProductionHoldObjectType = '3' AND _ReleaseActionSetting.MfgProcgExecAction = 'SAP_RELEASE_ORDER_HOLD' ) OR( ProductionHoldObjectType = '4' AND _ReleaseActionSetting.MfgProcgExecAction = 'SAP_RELEASE_OPERATION_HOLD' ) OR( ProductionHoldObjectType = '5' AND _ReleaseActionSetting.MfgProcgExecAction = 'SAP_RELEASE_SFI_HOLD' ) OR( ProductionHoldObjectType = '6' AND _ReleaseActionSetting.MfgProcgExecAction = 'SAP_RELEASE_OA_HOLD' ) ) -- association [0..1]
LEFT OUTER JOIN I_ManufacturingActionSetting AS _ApplyActionSetting ON ProductionPlant = _ApplyActionSetting.Plant AND MfgObjectType = _ApplyActionSetting.MfgObjectType AND ( ( ProductionHoldObjectType = '1' AND _ApplyActionSetting.MfgProcgExecAction = 'SAP_APPLY_MATERIAL_HOLD' ) OR( ProductionHoldObjectType = '2' AND _ApplyActionSetting.MfgProcgExecAction = 'SAP_APPLY_WC_HOLD' ) OR( ProductionHoldObjectType = '3' AND _ApplyActionSetting.MfgProcgExecAction = 'SAP_APPLY_ORDER_HOLD' ) OR( ProductionHoldObjectType = '4' AND _ApplyActionSetting.MfgProcgExecAction = 'SAP_APPLY_OPERATION_HOLD' ) OR( ProductionHoldObjectType = '5' AND _ApplyActionSetting.MfgProcgExecAction = 'SAP_APPLY_SFI_HOLD' ) OR( ProductionHoldObjectType = '6' AND _ApplyActionSetting.MfgProcgExecAction = 'SAP_APPLY_OA_HOLD' ) ) -- association [0..1]
LEFT OUTER JOIN I_Defect AS _Defect ON DefectInternalID = _Defect.DefectInternalID -- association [0..1]
LEFT OUTER JOIN I_Notification AS _Notification ON Notification = _Notification.Notification -- association [0..1]
LEFT OUTER JOIN I_NotificationItem AS _NotificationItem ON Notification = _NotificationItem.Notification AND NotificationItem = _NotificationItem.NotificationItem -- association [0..1]
LEFT OUTER JOIN I_NotificationItem AS _ReferenceNotificationItem ON ProductionHold.DefectInternalID = _ReferenceNotificationItem.ReferencedDefect AND ProductionHold.DefectInternalID <> '' AND _ReferenceNotificationItem.IsDeleted = '' -- association [0..1]
LEFT OUTER JOIN I_NotificationItem AS _NotificationItemRefDefect ON ProductionHold.Notification = _NotificationItemRefDefect.Notification AND ProductionHold.NotificationItem = _NotificationItemRefDefect.NotificationItem -- 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