04-12-2010 12:28 PM
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)
04-12-2010 12:49 PM
hi,
See if you can used FM BAPI_REQUIREMENTS_CHANGE or BAPI_PRODORD_CHANGE
Without more inforéation , I can help you more.
Rgds
04-12-2010 1:35 PM
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
......................