Update Prod.Order Header (or) Operation Status by Function Module
source link: https://blogs.sap.com/2023/10/07/update-prod.order-header-or-operation-status-by-function-module/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Update Prod.Order Header (or) Operation Status by Function Module
Requirement: Update Production Order Header Status (or) Operation Staus by Function Module FM: I_CHANGE_STATUS
Action 1:
Get the current Status of the Production Order: 1001230 first, using Function Module STATUS_READ (INPUT: OBJNR: OR000001001230 from the Table AUFK) FM: STATUS_READ
Once get the current Status: EX: I0001 à Created Status
Now, we can use the below Function Module to update the required Status
For Example, if we need to update Production Order from CRTD to REL, execute the Function Module with the below status from I001 to I0002
FM: I_CHANGE_STATUS
Action 2
Currently the Operation is REL Status, how to get updated to DSPT Status
Get the Object Number for this required Operation from the Table AFVC, passing the Input of the Confirmation Number of this Operation, which is there in the operation details screens
Table: AFVC à Input: RUECK- Confirmation à Output:
Execute the FM I_CHANGE_STATUS, with the above Object Number as the Inputs, with the current status and the Required StatusesResult: Production Order Operation Status got updated Successfully from REL to DSPTKindly update with your valuable inputs/feedback, if any. Thanks & Regards: Raja
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK