2 solutions:
1) Either use WAIT UP TO ... SECONDS .
WAIT UP TO 42 SECONDS.
WAIT UP TO '0.5' SECONDS.
- Does the deployment and release workflow for the listener
- Implicit database commit
Use it when CPU processes are more expensive and when implicit commit will not damage your data or cause a short dump due to an open database cursor.
2) Or use the function module ENQUE_SLEEP:
CALL FUNCTION 'ENQUE_SLEEP'
EXPORTING
seconds = 42.
- Doesn't let go of the workflow
- Doesn't cause implicit database commit
, , SLEEP.