sapdev logo background
sapdev logo sapdev logo
Comments

ABAP WAIT UP TO Statement syntax, information and example SAP source code



Return to Statement index



WAIT UP TO

Short Reference

ABAP Syntax WAIT UP TO sec SECONDS.

What does it do? This statement interrupts the execution of the program by the number of seconds specified in sec . sec is a numerical expression 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 second. After the specified time has passed, the program continues with the statement following WAIT .

Return Codes
This statement always sets sy-subrc to 0.
Latest notes: Each time the statement WAIT is used, a database commit is performed. For this reason, WAIT must not be used between Open SQL statements that open or close a database cursor .
This statement also has the variant WAIT UNTIL
designed only to be used with callback routines and aRFC , and which uses a greater time resolution. The variant shown here does not wait for callback routines.



Runtime Exceptions
Non-catchable Exceptions
Reason for error: Undefinierter Zustand der WAIT -Anweisung
Runtime error: WAIT_ILLEGAL_CONTROL_BLOCK
Reason for error: Negative time specified for sec .
Runtime error: WAIT_ILLEGAL_TIME_LIMIT
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved








comments powered by Disqus