I am fetching Production Order - operations using,
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
then the FM 'CO_RU_GET_ORDER_DATA' gives sy-subrc = 2.
Please suggest some solution for this.