WAIT UP TO
WAIT UP TO sec SECONDS.
This statement interrupts the execution of the program by the number of seconds specified in
sec is a
position of operand type
i to which positive numbers (and 0) can be passed.
The unit of the number in
sec is seconds and the time resolution is one millisecond.
After the specified time has passed, the program continues with the statement following
This statement always sets
sy-subrc to 0.
Each time the statement
WAITis used, a database commit is triggered (except in updates). For this reason,
WAITmust not be used between Open SQL statements that open or close a database cursor.
WAIT FOR ASYNCHRONOUS TASKSand
WAIT FOR MESSAGING CHANNELSof this statement are useful only when used in combination with callback routines in aRFC or AMC. The variant shown here does not wait for callback routines.
Cause: Negative time specified for