# Making an SAP ABAP program to wait

SAPABAP

#### SAP ALE IDoc

15 Lectures 1.5 hours

#### SAP MM (Materials Management) Certification Training

Best Seller

43 Lectures 33.5 hours

#### Learn SAP ABAP A to Z - Practical Training

42 Lectures 5.5 hours

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.
Updated on 18-Feb-2020 05:40:07