Hello.
My Abap program, has a loop with the update command:
DO.
UPDATE zcaixa_loja SET seqp2k = t_header-numseq
WHERE vkbur = t_loja-vkbur.
IF sy-subrc EQ 0.
EXIT.
ELSE.
WAIT UP TO 2 SECONDS.
ENDIF.
IF sy-index > 10.
EXIT.
ENDIF.
ENDDO.
This command does not work sometimes.
The key is correct in "where condition."
Moving this code to a call function "in update Task" resolves ?
A typical R/3 installation contains dialog work processes and at least one update work process. The update work processes are responsible for updating the database. When an ABAP program reaches a COMMIT WORK statement, any function modules from CALL FUNCTION... IN UPDATE TASK statements are released for processing in an update work process. The dialog process does not wait for the update to finish. This kind of update is called asynchronous update.
Thanks !!!