‎2008 Jul 03 7:29 AM
what are diffrent ways to make delay in abap programs , and descrption of delays e.g 'rzl_sleep' support only 5 sec delay, which is best in which condition will any one give me some link or explain about it in detail ? thanks
‎2008 Jul 03 7:33 AM
wait for 2 seconds......
use this syntex....................
Reward IF.................
Regards
anbu
‎2008 Jul 03 7:33 AM
‎2008 Jul 03 7:36 AM
Hi Ali,
rzl_sleep support to wait 5 seconds like that you can use the following systaxes.
WAIT UP TO sec SECONDS - - - In the place of sec you can mention number seconds then your program
will wait upto that time.
WAIT UNTIL log_exp - - - In the place of log_exp you can mention your expression
Regards,
Mahi.
‎2008 Jul 03 7:37 AM
HI ALI,
I have used this statement.
WAIT UP TO sec SECONDS.
Effect
This statement interrupts program execution by as many seconds as are specified in sec. For sec, a data object of the type f is expected that must contain a positive number. After the specified time has passed, program execution is continued with the statement following WAIT.
Return values
This statement always sets sy-subrc to 0.
Notes
The statement WAIT causes a change in the work process. This is connected with rolling in and rolling out all the loaded programs. For this reason, the time in sec should not be set less than a second in order not to overload the system with too frequent changing of work processes.
Each time the statement WAIT is used, a database commit is issued. For this reason, WAIT must not be used between Open SQL statements that open or close a database cursor.
reward poitns if useful.
Regrds
Parthu
‎2008 Jul 03 7:37 AM
If its normal transaction use just
WAIT UP TO 2 SECONDS
And u r using BAPI then use
BAPI_TRANSACTION_COMMIT
Regards,
Swarup