ABAP里面的Sleep函数
wait up to 42 seconds.
- Does a roll-out and releases the work process to the listener
- Does an implicit Database commit
Use when CPU processes are at a premium and when the implicit commit will not corrupt your data or cause a short dump because of an open database cursor.
CALL FUNCTION 'ENQUE_SLEEP'
EXPORTING
seconds = 42.
- Does not release the work process
- Does not cause an implicit Database commit
Use when you cannot afford an implicit commit, and the system can handle the work process(es) being tied up for the duration of the SLEEP command.