3

Update Prod.Order Header (or) Operation Status by Function Module

 11 months ago
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.
neoserver,ios ssh client
October 7, 2023 2 minute read

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

Capture-1.jpg
Execute this FM , will get the below Result.
Capture-2.jpg
Click on Results
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

Capture-3.jpg
Capture-4.jpg
Now, check the Order Status, after executing this Function Module
Capture-5.jpg
Result: Production Order Header Status got updated from CRTD to REL Successfully

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:

Capture-6.jpg
Capture-7.jpg
Execute the FM I_CHANGE_STATUS, with the above Object Number as the Inputs, with the current status and the Required Statuses
Capture-8.jpg
Capture-9.jpg
Capture-10.jpg
Result: Production Order Operation Status got updated Successfully from REL to DSPT

Kindly update with your valuable inputs/feedback, if any. Thanks & Regards: Raja


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK