cancel
Showing results for 
Search instead for 
Did you mean: 

How to use API to change the date/time of production order operations independently

SAPSupport
Employee
Employee
0 Kudos

How to use API to change the data/time of production order operations independently without rescheduling other operations. 


------------------------------------------------------------------------------------------------------------------------------------------------
Learn more about the SAP Support user and program here.
View Entire Topic
SAPSupport
Employee
Employee
0 Kudos

Use API like below to dispatch/schedule the other operations(e.g. 0010) to set status to DSPT.
/sap/opu/odata/sap/API_PRODUCTION_ORDER_2_SRV/ScheduleProductionOrderOperation?ManufacturingOrder='1004081'&OrderInternalBillOfOperations='4082'&OrderIntBillOfOperationsItem='1'&OpSchedldStartDate=datetime'2024-04-21T00:00:00'&OpSchedldStartTime=time'PT09H00M00S'&OpSchedulingMode='F'&OpSchedulingStatus='DISP'&OpSchedulingStrategy='M'

Then use API to change the date/time of the operation e.g. 0020.
/sap/opu/odata/sap/API_PRODUCTION_ORDER_2_SRV/ScheduleProductionOrderOperation?ManufacturingOrder='1004081'&OrderInternalBillOfOperations='4082'&OrderIntBillOfOperationsItem='2'&OpSchedldStartDate=datetime'2024-04-27T00:00:00'&OpSchedldStartTime=time'PT09H00M00S'&OpSchedulingMode='F'&OpSchedulingStrategy='M'

Online help : https://help.sap.com/docs/SAP_S4HANA_CLOUD/d35113ee62644d3abee1aaec148291d9/57edf397e1f14f999a857593...