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: 

synchronous update problem

Former Member
0 Kudos

Dear expert,

I wrote a batch input for transaction code 'CO02'. Transaction CO02 is inserting a new entry to table 'RESB'. In the same program i am trying to update a field in the new row created with CO02 but the program cannot find the new entry.

I have written COMMIT WORK AND WAIT after batch input but it is useless. Could you help me how i can solve the problem. (The field i am trying to change in RESB is not a critical field)

2 REPLIES 2

StMou
Active Participant
0 Kudos

hi,

See if you can used FM BAPI_REQUIREMENTS_CHANGE or BAPI_PRODORD_CHANGE

Without more inforéation , I can help you more.

Rgds

Former Member
0 Kudos

Actually bapi does not exist in order to change production order reservations as far as i know. My problem is not that. In my code first i write a batch input calling transaction CO02 and i add a new item to the production order. Second in the same code i am try to change a field of the new reservation.

Code is like below

..............

call transaction 'CO02' using bdcdata

options from ctu.

commit work and wait.

select * from resb where

rsnum = zrsnum

and matnr = zmatnr

and lgort = zlgort

and stlnr = space

and prvbe = space.

resb-prvbe = zprvbe.

modify resb.

endselect

......................