05-10-2013 9:57 AM
Hi, i would like to verify the status of a production order (if it is released or not).
To do that i have to enter the number of PO in a field and when i click the button i would like to call transaction CO03 to do the job.
Now the problem is how can i enter this number like input to the transaction to verify the status.
thank you.
05-10-2013 10:47 AM
Hi Meriem,
I suppose your are writing a custom program. Please refer below:
*you user input field is P_VALUE
SET PARAMETER ID: 'ANR' FIELD P_VALUE.
CALL TRANSACTION 'CO03' AND SKIP FIRST SCREEN.
hope this helps.
Regards,
DN.
05-10-2013 10:47 AM
Hi Meriem,
I suppose your are writing a custom program. Please refer below:
*you user input field is P_VALUE
SET PARAMETER ID: 'ANR' FIELD P_VALUE.
CALL TRANSACTION 'CO03' AND SKIP FIRST SCREEN.
hope this helps.
Regards,
DN.
05-10-2013 11:16 AM
05-10-2013 10:57 AM
Hi,
I did not get your requirment clearly. If you want to know the status why do you want to call CO03?
You can add a code in program and check the status. And if you want to call the CO03 through program :-
parameter : p_AUFNR like CAUFVD-aufnr.
SET PARAMETER ID: 'ANR' FIELD p_aufnr.
CALL TRANSACTION 'CO03' AND SKIP FIRST SCREEN.
Thanks-
Makarand
05-10-2013 11:43 AM
Hi,
You can retrieve the status using the FM 'STATUS_READ'.
Steps:
1. Fetch OBJNR from table AUFK by inputting the production order number(AUFNR)
2. Pass this OBJNR to 'STATUS_READ' in the object number parameter.
3.Also, pass X to the parameter 'only_active' to get the active status of production order.
Hope this helps.
Regards,
Peri
05-10-2013 11:58 AM
Hi,
To know the status why do you want to call CO03. I think there will be some function modules to get the current status.
Thanks & Regards,
Swarna
05-10-2013 12:13 PM
Hello,
Please check the table JEST where in all the status of production order is maintained. The process of fetching the data is to concatenate the production number with OR I.E. OR000060003265 and it has got multiple status. Please check by this method.
Regards
Suresh Nair
05-10-2013 12:14 PM
Hi Meriem
Status information is held in table JEST.
u can try
the following function module.
STATUS_TEXT_EDIT
give object no and language
u can get the status text...
Hope it helps u.........
Regards
Suganya