10-10-2007 7:55 AM
Hi
I'm updating the same material with different values each time.
I get an error which basically states that I'm currently in change mode/locking material '111' and that i can't update the last 2 records.
What would be the best way of ensuring that i only process/update the next record after the record/update lock has been removed from the material.
I could use the statement "wait up to 2 seconds"
"internal table rec.
Matnr Week Value
111 200701 12
111 200702 12
111 200703 12
10-10-2007 8:01 AM
10-10-2007 8:20 AM
Sreejith
I'm using it. When i execute the job in the background, i still get record locks.
loop at rec.
perform populate_requirements_item.
perform populate_requirements_schedule.
call function 'BAPI_REQUIREMENTS_CREATE'
exporting
requirements_item = w_bapisitemr
requirement_param = param
tables
requirements_schedule_in = i_requirements_schedule_in
return = i_bapireturn1.
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
wait up to 2 seconds.
endloop.