Ansicht
Dokumentation

ABAPWAIT_UP_TO - WAIT UP TO

ABAPWAIT_UP_TO - WAIT UP TO

CPI1466 during Backup   CL_GUI_FRONTEND_SERVICES - Frontend Services  
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





CL_GUI_FRONTEND_SERVICES - Frontend Services   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 3022 Date: 20240426 Time: 175650     sap01-206 ( 45 ms )