Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

ABAPWAIT_UP_TO - WAIT UP TO

ABAPWAIT_UP_TO - WAIT UP TO

ABAP Short Reference   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

WAIT UP TO

Short Reference



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.

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





BAL Application Log Documentation   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 3022 Date: 20230207 Time: 231508     sap01-206 ( 46 ms )