Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Production Order - Operations - Not fetching values

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

Call this in the following order

  1. CO_RU_ORDER_LOCK
  2. CO_RU_GET_ORDER_DATA
  3. CO_RU_ORDER_DEQUEUE

0 Kudos

can you please mention the code here ?