Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

delay in abap programs

Former Member
0 Likes
11,146

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

5 REPLIES 5
Read only

Former Member
0 Likes
3,119

wait for 2 seconds......

use this syntex....................

Reward IF.................

Regards

anbu

Read only

Former Member
0 Likes
3,119

HI,

Try this.

WAIT UP TO 2 SECONDS.

Read only

Former Member
0 Likes
3,119

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.

Read only

Former Member
0 Likes
3,119

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

Read only

Former Member
0 Likes
3,119

If its normal transaction use just

WAIT UP TO 2 SECONDS

And u r using BAPI then use

BAPI_TRANSACTION_COMMIT

Regards,

Swarup