P_MfgOrderOperNumberOfHolds

DDL: P_MFGORDEROPERNUMBEROFHOLDS SQL: PMPEOPNMBRHOLD Type: view CONSUMPTION

P_MfgOrderOperNumberOfHolds is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_MfgOrder, I_OrderOperationBasic) and exposes 6 fields with key fields OrderInternalID, OrderOperationInternalID.

Data Sources (2)

SourceAliasJoin Type
I_MfgOrder MfgOrder inner
I_OrderOperationBasic OrderOperationBasic from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PMPEOPNMBRHOLD view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
VDM.private true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY OrderInternalID I_OrderOperationBasic OrderInternalID Plan No.f.Oper.
KEY OrderOperationInternalID I_OrderOperationBasic OrderOperationInternalID Plan No.f.Oper.
ManufacturingOrder I_MfgOrder ManufacturingOrder Order
WorkCenterInternalID I_OrderOperationBasic WorkCenterInternalID Work Center
WorkCenterTypeCode I_OrderOperationBasic WorkCenterTypeCode Object Type
NumberOfHolds0asNumberOfHolds

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_MfgOrderOperNumberOfHolds.
-- 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: PMPEOPNMBRHOLD

CREATE VIEW P_MfgOrderOperNumberOfHolds AS
SELECT
  OrderOperationBasic.OrderInternalID AS OrderInternalID,
  OrderOperationBasic.OrderOperationInternalID AS OrderOperationInternalID,
  MfgOrder.ManufacturingOrder AS ManufacturingOrder,
  OrderOperationBasic.WorkCenterInternalID AS WorkCenterInternalID,
  OrderOperationBasic.WorkCenterTypeCode AS WorkCenterTypeCode,
  coalesce(MatlNmbrOfProdnHolds.NumberOfHolds,0) + coalesce(WrkCtrNmbrOfProdnHolds.NumberOfHolds,0) + coalesce(OrderNmbrOfProdnHolds.NumberOfHolds,0) + coalesce(OperNmbrOfProdnHolds.NumberOfHolds,0) as NumberOfHolds AS NumberOfHolds0asNumberOfHolds
FROM I_OrderOperationBasic AS OrderOperationBasic
INNER JOIN I_MfgOrder AS MfgOrder ON /* join condition not captured in parsed metadata */
;