# Making an SAP ABAP program to wait

SAPABAP

You can use WAIT to hold the program for few seconds. Here is the syntax

## Syntax

WAIT UP TO 36 SECONDS

However, you need to be careful about using it. WAIT does an implicit commit. So you need to be sure that the commit does not corrupt the database. It also releases the work process.

An alternative is to use below code −

CALL FUNCTION 'ENQUE_SLEEP'
EXPORTING
seconds = 36.
Published on 27-Dec-2017 09:47:12