For testing purposes I need my abap program to wait for few seconds. How can this be done?
Thanks.
For testing purposes I need my abap program to wait for few seconds. How can this be done?
Thanks.
wait up to 42 seconds.
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.
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.
Could someone down mod the first answer ?
http://help.sap.com/abapdocu/en/ABAPWAIT_UP_TO.htm
WAIT statement has an implicit COMMIT which is something that should be avoided.
T.
Do you really need it to pause? You could trace through it by entering /h into the transaction field before you execute the program or by setting a breakpoint in the code.