P_MfgOrderOperationDelayBasic
P_MfgOrderOperationDelayBasic is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_OrderOperationDateTime, I_MfgOrderBasic) and exposes 119 fields with key fields OrderInternalID, OrderOperationInternalID.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_OrderOperationDateTime | afvg | from |
| I_MfgOrderBasic | aufv | inner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMFGOROPDELYBSC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | 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 | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (119)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderInternalID | I_OrderOperationDateTime | OrderInternalID | |
| KEY | OrderOperationInternalID | I_OrderOperationDateTime | OrderOperationInternalID | |
| ManufacturingOrder | I_MfgOrderBasic | ManufacturingOrder | ||
| Sequence | I_OrderOperationDateTime | Sequence | ||
| Operation | I_OrderOperationDateTime | Operation | ||
| ManufacturingOrderCategory | I_MfgOrderBasic | ManufacturingOrderCategory | ||
| ManufacturingOrderType | I_MfgOrderBasic | ManufacturingOrderType | ||
| ProductionSupervisor | I_MfgOrderBasic | ProductionSupervisor | ||
| MRPController | I_MfgOrderBasic | MRPController | ||
| ResponsiblePlannerGroup | I_MfgOrderBasic | ResponsiblePlannerGroup | ||
| ProductConfiguration | I_MfgOrderBasic | ProductConfiguration | ||
| InspectionLot | I_MfgOrderBasic | InspectionLot | ||
| Reservation | I_MfgOrderBasic | Reservation | ||
| ManufacturingOrderImportance | I_MfgOrderBasic | ManufacturingOrderImportance | ||
| ProdnProcgIsFlexible | I_MfgOrderBasic | ProdnProcgIsFlexible | ||
| MfgOrderIsToBeDeleted | I_MfgOrderBasic | MfgOrderIsToBeDeleted | ||
| OperationText | I_OrderOperationDateTime | OperationText | ||
| Language | I_OrderOperationDateTime | Language | ||
| StandardTextInternalID | I_OrderOperationDateTime | StandardTextInternalID | ||
| OperationIsToBeDeleted | I_OrderOperationDateTime | OperationIsToBeDeleted | ||
| NumberOfCapacities | ||||
| NumberOfConfirmationSlips | I_OrderOperationDateTime | NumberOfConfirmationSlips | ||
| OperationImportance | I_OrderOperationDateTime | OperationImportance | ||
| Plant | I_OrderOperationDateTime | Plant | ||
| WorkCenterInternalID | I_OrderOperationDateTime | WorkCenterInternalID | ||
| WorkCenterTypeCode | I_OrderOperationDateTime | WorkCenterTypeCode | ||
| OperationControlProfile | I_OrderOperationDateTime | OperationControlProfile | ||
| OperationConfirmation | I_OrderOperationDateTime | OperationConfirmation | ||
| NumberOfOperationConfirmations | I_OrderOperationDateTime | NumberOfOperationConfirmations | ||
| FactoryCalendar | I_OrderOperationDateTime | FactoryCalendar | ||
| CapacityRequirement | I_OrderOperationDateTime | CapacityRequirement | ||
| CapacityRequirementItem | I_OrderOperationDateTime | CapacityRequirementItem | ||
| ChangeNumber | I_OrderOperationDateTime | ChangeNumber | ||
| ObjectInternalID | I_OrderOperationDateTime | ObjectInternalID | ||
| BillOfOperationsType | I_OrderOperationDateTime | BillOfOperationsType | ||
| BillOfOperationsGroup | I_OrderOperationDateTime | BillOfOperationsGroup | ||
| BillOfOperationsVariant | I_OrderOperationDateTime | BillOfOperationsVariant | ||
| BillOfOperationsSequence | I_OrderOperationDateTime | BillOfOperationsSequence | ||
| BOOOperationInternalID | I_OrderOperationDateTime | BOOOperationInternalID | ||
| BillOfOperationsVersion | I_OrderOperationDateTime | BillOfOperationsVersion | ||
| BillOfMaterialCategory | I_OrderOperationDateTime | BillOfMaterialCategory | ||
| BillOfMaterialInternalID | I_OrderOperationDateTime | BillOfMaterialInternalID | ||
| BillOfMaterialItemNodeNumber | I_OrderOperationDateTime | BillOfMaterialItemNodeNumber | ||
| BOMItemNodeCount | I_OrderOperationDateTime | BOMItemNodeCount | ||
| CompanyCode | I_OrderOperationDateTime | CompanyCode | ||
| BusinessArea | I_OrderOperationDateTime | BusinessArea | ||
| ControllingArea | I_MfgOrderBasic | ControllingArea | ||
| ProfitCenter | I_OrderOperationDateTime | ProfitCenter | ||
| ControllingObjectClass | I_OrderOperationDateTime | ControllingObjectClass | ||
| FunctionalArea | I_OrderOperationDateTime | FunctionalArea | ||
| EmployeeWageType | I_OrderOperationDateTime | EmployeeWageType | ||
| EmployeeWageGroup | I_OrderOperationDateTime | EmployeeWageGroup | ||
| EmployeeSuitability | I_OrderOperationDateTime | EmployeeSuitability | ||
| NumberOfTimeTickets | I_OrderOperationDateTime | NumberOfTimeTickets | ||
| Personnel | I_OrderOperationDateTime | Personnel | ||
| NumberOfEmployees | I_OrderOperationDateTime | NumberOfEmployees | ||
| PlantTimeZone | I_OrderOperationDateTime | PlantTimeZone | ||
| OpErlstSchedldExecStrtDte | I_OrderOperationDateTime | OpErlstSchedldExecStrtDte | ||
| OpErlstSchedldExecStrtTme | I_OrderOperationDateTime | OpErlstSchedldExecStrtTme | ||
| OpErlstSchedldExecStrtDteTme | I_OrderOperationDateTime | OpErlstSchedldExecStrtDteTme | ||
| OpErlstSchedldProcgStrtDte | I_OrderOperationDateTime | OpErlstSchedldProcgStrtDte | ||
| OpErlstSchedldProcgStrtTme | I_OrderOperationDateTime | OpErlstSchedldProcgStrtTme | ||
| OpErlstSchedldProcgStrtDteTme | I_OrderOperationDateTime | OpErlstSchedldProcgStrtDteTme | ||
| OpErlstSchedldTrdwnStrtDte | I_OrderOperationDateTime | OpErlstSchedldTrdwnStrtDte | ||
| OpErlstSchedldTrdwnStrtTme | I_OrderOperationDateTime | OpErlstSchedldTrdwnStrtTme | ||
| OpErlstSchedldTrdwnStrtDteTme | I_OrderOperationDateTime | OpErlstSchedldTrdwnStrtDteTme | ||
| OpErlstSchedldExecEndDte | I_OrderOperationDateTime | OpErlstSchedldExecEndDte | ||
| OpErlstSchedldExecEndTme | I_OrderOperationDateTime | OpErlstSchedldExecEndTme | ||
| OpErlstSchedldExecEndDteTme | I_OrderOperationDateTime | OpErlstSchedldExecEndDteTme | ||
| OpLtstSchedldExecStrtDte | I_OrderOperationDateTime | OpLtstSchedldExecStrtDte | ||
| OpLtstSchedldExecStrtTme | I_OrderOperationDateTime | OpLtstSchedldExecStrtTme | ||
| OpLtstSchedldExecStrtDteTme | I_OrderOperationDateTime | OpLtstSchedldExecStrtDteTme | ||
| OpLtstSchedldProcgStrtDte | I_OrderOperationDateTime | OpLtstSchedldProcgStrtDte | ||
| OpLtstSchedldProcgStrtTme | I_OrderOperationDateTime | OpLtstSchedldProcgStrtTme | ||
| OpLtstSchedldProcgStrtDteTme | I_OrderOperationDateTime | OpLtstSchedldProcgStrtDteTme | ||
| OpLtstSchedldTrdwnStrtDte | I_OrderOperationDateTime | OpLtstSchedldTrdwnStrtDte | ||
| OpLtstSchedldTrdwnStrtTme | I_OrderOperationDateTime | OpLtstSchedldTrdwnStrtTme | ||
| OpLtstSchedldTrdwnStrtDteTme | I_OrderOperationDateTime | OpLtstSchedldTrdwnStrtDteTme | ||
| OpLtstSchedldExecEndDte | I_OrderOperationDateTime | OpLtstSchedldExecEndDte | ||
| OpLtstSchedldExecEndTme | I_OrderOperationDateTime | OpLtstSchedldExecEndTme | ||
| OpLtstSchedldExecEndDteTme | I_OrderOperationDateTime | OpLtstSchedldExecEndDteTme | ||
| OperationConfirmedStartDate | I_OrderOperationDateTime | OperationConfirmedStartDate | ||
| OperationConfirmedEndDate | I_OrderOperationDateTime | OperationConfirmedEndDate | ||
| OpActualExecutionStartDate | I_OrderOperationDateTime | OpActualExecutionStartDate | ||
| OpActualExecutionStartTime | I_OrderOperationDateTime | OpActualExecutionStartTime | ||
| OpActualExecutionStartDateTime | I_OrderOperationDateTime | OpActualExecutionStartDateTime | ||
| OpActualSetupEndDate | I_OrderOperationDateTime | OpActualSetupEndDate | ||
| OpActualSetupEndTime | I_OrderOperationDateTime | OpActualSetupEndTime | ||
| OpActualSetupEndDateTime | I_OrderOperationDateTime | OpActualSetupEndDateTime | ||
| OpActualProcessingStartDate | I_OrderOperationDateTime | OpActualProcessingStartDate | ||
| OpActualProcessingStartTime | I_OrderOperationDateTime | OpActualProcessingStartTime | ||
| OpActualProcessingStartDteTme | I_OrderOperationDateTime | OpActualProcessingStartDteTme | ||
| OpActualProcessingEndDate | I_OrderOperationDateTime | OpActualProcessingEndDate | ||
| OpActualProcessingEndTime | I_OrderOperationDateTime | OpActualProcessingEndTime | ||
| OpActualProcessingEndDateTime | I_OrderOperationDateTime | OpActualProcessingEndDateTime | ||
| OpActualTeardownStartDate | I_OrderOperationDateTime | OpActualTeardownStartDate | ||
| OpActualTeardownStartTme | I_OrderOperationDateTime | OpActualTeardownStartTme | ||
| OpActualTeardownStartDateTime | I_OrderOperationDateTime | OpActualTeardownStartDateTime | ||
| OpActualExecutionEndDate | I_OrderOperationDateTime | OpActualExecutionEndDate | ||
| OpActualExecutionEndTime | I_OrderOperationDateTime | OpActualExecutionEndTime | ||
| OpActualExecutionEndDateTime | I_OrderOperationDateTime | OpActualExecutionEndDateTime | ||
| StartDateOffsetReferenceCode | I_OrderOperationDateTime | StartDateOffsetReferenceCode | ||
| StartDateOffsetDurationUnit | I_OrderOperationDateTime | StartDateOffsetDurationUnit | ||
| StartDateOffsetDuration | I_OrderOperationDateTime | StartDateOffsetDuration | ||
| EndDateOffsetReferenceCode | I_OrderOperationDateTime | EndDateOffsetReferenceCode | ||
| EndDateOffsetDurationUnit | I_OrderOperationDateTime | EndDateOffsetDurationUnit | ||
| EndDateOffsetDuration | I_OrderOperationDateTime | EndDateOffsetDuration | ||
| OperationUnit | I_OrderOperationDateTime | OperationUnit | ||
| OperationScrapPercent | I_OrderOperationDateTime | OperationScrapPercent | ||
| OperationReferenceQuantity | I_OrderOperationDateTime | OperationReferenceQuantity | ||
| OpPlannedTotalQuantity | I_OrderOperationDateTime | OpPlannedTotalQuantity | ||
| OpPlannedScrapQuantity | I_OrderOperationDateTime | OpPlannedScrapQuantity | ||
| OpPlannedYieldQuantity | ||||
| OpTotalConfirmedYieldQty | I_OrderOperationDateTime | OpTotalConfirmedYieldQty | ||
| OpTotalConfirmedScrapQty | I_OrderOperationDateTime | OpTotalConfirmedScrapQty | ||
| OperationConfirmedReworkQty | I_OrderOperationDateTime | OperationConfirmedReworkQty | ||
| SetupOpActyNtwkInstance | I_OrderOperationDateTime | SetupOpActyNtwkInstance | ||
| ProduceOpActyNtwkInstance | I_OrderOperationDateTime | ProduceOpActyNtwkInstance | ||
| TeardownOpActyNtwkInstance | I_OrderOperationDateTime | TeardownOpActyNtwkInstance |
@AbapCatalog.sqlViewName: 'PMFGOROPDELYBSC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
@VDM.viewType: #COMPOSITE
@VDM.private: true
// Manufacturing Order Operation Delay data without suboperation and phase determination
define view P_MfgOrderOperationDelayBasic
as select from I_OrderOperationDateTime as afvg
inner join I_MfgOrderBasic as aufv on aufv.OrderInternalID = afvg.OrderInternalID
{
// Technical Key
key afvg.OrderInternalID,
key afvg.OrderOperationInternalID,
// Semantical key
aufv.ManufacturingOrder,
afvg.Sequence,
afvg.Operation,
// Order header data
aufv.ManufacturingOrderCategory,
aufv.ManufacturingOrderType,
aufv.ProductionSupervisor,
aufv.MRPController,
aufv.ResponsiblePlannerGroup,
aufv.ProductConfiguration,
aufv.InspectionLot,
aufv.Reservation,
aufv.ManufacturingOrderImportance,
aufv.ProdnProcgIsFlexible,
aufv.MfgOrderIsToBeDeleted,
// Text
afvg.OperationText,
afvg.Language,
afvg.StandardTextInternalID,
// Attributes
afvg.OperationIsToBeDeleted,
cast(afvg.NumberOfCapacities as pph_anzkap preserving type) as NumberOfCapacities,
afvg.NumberOfConfirmationSlips,
afvg.OperationImportance,
// Assignments
afvg.Plant,
afvg.WorkCenterInternalID,
afvg.WorkCenterTypeCode,
afvg.OperationControlProfile,
afvg.OperationConfirmation,
afvg.NumberOfOperationConfirmations,
afvg.FactoryCalendar,
afvg.CapacityRequirement,
afvg.CapacityRequirementItem,
afvg.ChangeNumber,
afvg.ObjectInternalID,
// Assignments BOO and BOM
afvg.BillOfOperationsType,
afvg.BillOfOperationsGroup,
afvg.BillOfOperationsVariant,
afvg.BillOfOperationsSequence,
afvg.BOOOperationInternalID,
afvg.BillOfOperationsVersion,
afvg.BillOfMaterialCategory,
afvg.BillOfMaterialInternalID,
afvg.BillOfMaterialItemNodeNumber,
afvg.BOMItemNodeCount,
// Assignments FI/CO
afvg.CompanyCode,
afvg.BusinessArea,
aufv.ControllingArea,
afvg.ProfitCenter,
afvg.ControllingObjectClass,
afvg.FunctionalArea,
// Assignments HR
afvg.EmployeeWageType,
afvg.EmployeeWageGroup,
afvg.EmployeeSuitability,
afvg.NumberOfTimeTickets,
afvg.Personnel,
afvg.NumberOfEmployees,
// Dates and Times
afvg.PlantTimeZone,
afvg.OpErlstSchedldExecStrtDte,
afvg.OpErlstSchedldExecStrtTme,
afvg.OpErlstSchedldExecStrtDteTme,
afvg.OpErlstSchedldProcgStrtDte,
afvg.OpErlstSchedldProcgStrtTme,
afvg.OpErlstSchedldProcgStrtDteTme,
afvg.OpErlstSchedldTrdwnStrtDte,
afvg.OpErlstSchedldTrdwnStrtTme,
afvg.OpErlstSchedldTrdwnStrtDteTme,
afvg.OpErlstSchedldExecEndDte,
afvg.OpErlstSchedldExecEndTme,
afvg.OpErlstSchedldExecEndDteTme,
afvg.OpLtstSchedldExecStrtDte,
afvg.OpLtstSchedldExecStrtTme,
afvg.OpLtstSchedldExecStrtDteTme,
afvg.OpLtstSchedldProcgStrtDte,
afvg.OpLtstSchedldProcgStrtTme,
afvg.OpLtstSchedldProcgStrtDteTme,
afvg.OpLtstSchedldTrdwnStrtDte,
afvg.OpLtstSchedldTrdwnStrtTme,
afvg.OpLtstSchedldTrdwnStrtDteTme,
afvg.OpLtstSchedldExecEndDte,
afvg.OpLtstSchedldExecEndTme,
afvg.OpLtstSchedldExecEndDteTme,
afvg.OperationConfirmedStartDate,
afvg.OperationConfirmedEndDate,
afvg.OpActualExecutionStartDate,
afvg.OpActualExecutionStartTime,
afvg.OpActualExecutionStartDateTime,
afvg.OpActualSetupEndDate,
afvg.OpActualSetupEndTime,
afvg.OpActualSetupEndDateTime,
afvg.OpActualProcessingStartDate,
afvg.OpActualProcessingStartTime,
afvg.OpActualProcessingStartDteTme,
afvg.OpActualProcessingEndDate,
afvg.OpActualProcessingEndTime,
afvg.OpActualProcessingEndDateTime,
afvg.OpActualTeardownStartDate,
afvg.OpActualTeardownStartTme,
afvg.OpActualTeardownStartDateTime,
afvg.OpActualExecutionEndDate,
afvg.OpActualExecutionEndTime,
afvg.OpActualExecutionEndDateTime,
// Calculated Durations
case afvg.OpLtstSchedldExecStrtTme
when '240000' then // function dats_tims_to_tstmp does not work with time 24:00
tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpLtstSchedldExecStrtDte, cast('235959' as tims), abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL') ,
tstmp_current_utctimestamp(),'INITIAL') + 1
else
tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpLtstSchedldExecStrtDte, afvg.OpLtstSchedldExecStrtTme, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL') ,
tstmp_current_utctimestamp(),'INITIAL')
end as PlannedCurrentStrtDateDvtnDurn,
case afvg.OpErlstSchedldExecEndTme
when '240000' then // function dats_tims_to_tstmp does not work with time 24:00
tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpLtstSchedldExecStrtDte, cast('235959' as tims), abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL') ,
tstmp_current_utctimestamp(),'INITIAL') + 1
else
tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpLtstSchedldExecStrtDte, afvg.OpErlstSchedldExecEndTme, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL') ,
tstmp_current_utctimestamp(),'INITIAL')
end as PlannedCurrentEndDateDvtnDurn,
case afvg.OpLtstSchedldExecStrtTme
when '240000' then // function dats_tims_to_tstmp does not work with time 24:00
tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpLtstSchedldExecStrtDte, cast('235959' as tims), abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL') ,
dats_tims_to_tstmp( afvg.OpActualExecutionStartDate, afvg.OpActualExecutionStartTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'INITIAL') + 1
else
tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpLtstSchedldExecStrtDte, afvg.OpLtstSchedldExecStrtTme, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL') ,
dats_tims_to_tstmp( afvg.OpActualExecutionStartDate, afvg.OpActualExecutionStartTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'INITIAL')
end as PlannedActualStartDateDvtnDurn,
case afvg.OpErlstSchedldExecEndTme
when '240000' then // function dats_tims_to_tstmp does not work with time 24:00
tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpErlstSchedldExecEndDte, cast('235959' as tims), abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL') ,
dats_tims_to_tstmp( afvg.OpActualExecutionEndDate, afvg.OpActualExecutionEndTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'INITIAL') + 1
else
tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpErlstSchedldExecEndDte, afvg.OpErlstSchedldExecEndTme, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL') ,
dats_tims_to_tstmp( afvg.OpActualExecutionEndDate, afvg.OpActualExecutionEndTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'INITIAL')
end as PlannedActualEndDateDvtnDurn,
// Offset
afvg.StartDateOffsetReferenceCode,
afvg.StartDateOffsetDurationUnit,
afvg.StartDateOffsetDuration,
afvg.EndDateOffsetReferenceCode,
afvg.EndDateOffsetDurationUnit,
afvg.EndDateOffsetDuration,
// Quantities and UoM
afvg.OperationUnit,
afvg.OperationScrapPercent,
afvg.OperationReferenceQuantity,
afvg.OpPlannedTotalQuantity,
afvg.OpPlannedScrapQuantity,
(afvg.OpPlannedTotalQuantity - afvg.OpPlannedScrapQuantity) as OpPlannedYieldQuantity,
afvg.OpTotalConfirmedYieldQty,
afvg.OpTotalConfirmedScrapQty,
afvg.OperationConfirmedReworkQty,
// OAN data
afvg.SetupOpActyNtwkInstance,
afvg.ProduceOpActyNtwkInstance,
afvg.TeardownOpActyNtwkInstance
};
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MFGORDERBASIC",
"I_ORDEROPERATIONDATETIME"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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