12-06-2013 8:17 AM
Hi
I am fetching Production Order - operations using,
FM 'CO_RU_GET_ORDER_DATA'.
Initially the operations are fetched and , Time booking similar to CO11N is done via Z screen.
After booking the time foe the order, in the zscreen,all values are refreshed
and if i select the same order , and fetch the corresponding operation thrw FM 'CO_RU_GET_ORDER_DATA'
am getting sy-subrc = 1 , i.e order is already locked.
if i use this FM to unlock the order
'CO_RU_ORDER_DEQUEUE'
then the FM 'CO_RU_GET_ORDER_DATA' gives sy-subrc = 2.
Please suggest some solution for this.
12-06-2013 8:34 AM
Hi Arun,
i think the problem is at Zscreen you mentioned. in the source code for that screen you must be modifying the data for that order. this modification is not happening according to the process i guess.
the idle process is,
Enque the order ,
do the modification you have to.
deque the order.
Check there, you might find some clue.
Thanks and Regards,
Bhaskar
12-06-2013 11:46 AM
Hi
I tried ENQUEUE_ESORDER before posting the Time booking for production order via BAPI_PRODORDCONF_CREATE_TT
and DEQUEUE_ESORDER at the end of successful posting .
But the issue is still the same.
12-06-2013 12:42 PM
Call this in the following order
12-11-2013 7:51 AM