Making an SAP ABAP program to wait



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.
Monica Mona
Monica Mona

Student of life, and a lifelong learner


Advertisements