Ansicht
Dokumentation
ABAPWAIT_UP_TO - WAIT UP TO
Addresses (Business Address Services) BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
WAIT UP TO
WAIT UP TO sec SECONDS.
Effect
This statement interrupts the execution of the program by the number of seconds specified in sec. sec is a
numeric
expression position of the operand type f to which positive numbers can be passed, including
0. The unit of the number specified in sec is seconds and the time resolution is one millisecond.
After the specified time has passed, the program execution continues with the statement following WAIT. When used, this statement always changes the
work process.
Return Codes
This statement always sets sy-subrc to 0.
Notes
- Each time this variant of the statement WAIT is used, a database commit is triggered (except during updates). For this reason, WAIT must not be used between statements that open or close a database cursor.
- The variants WAIT FOR ASYNCHRONOUS TASKS,
WAIT FOR MESSAGING CHANNELS, and WAIT
FOR PUSH CHANNELS of this statement are useful only in combination with callback routines in
aRFC,
AMC, or
APC. The variant shown here does not wait for callback routines.
Example
The output of the following example should correspond to approximately one million microseconds.
Exceptions
Non-Catchable Exceptions
- Cause: Negative time specification for sec.
Runtime Error: WAIT_ILLEGAL_TIME_LIMIT
RFUMSV00 - Advance Return for Tax on Sales/Purchases BAL_S_LOG - Application Log: Log header data
This documentation is copyright by SAP AG.
Length: 3022 Date: 20240419 Time: 220634 sap01-206 ( 43 ms )