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

Controlling loop by using timer and exit

Former Member
0 Likes
470

Hi,

i have applied the belwo object but i need your help in one thing.

I set a timer for one mint but my problem how i can interact between the methode FOR EVENT FINISHED OF CL_GUI_TIMER and my while loop. because even the time is set finish i could not go to the method due to the Infinity while loop.

please, let me know if any one has any information.

data: loc_subrc type sy-subrc value 4.

while loc_subrc ne 0.

select single * from aufk

where aufnr = loc_aufnr.

if sy-subrc = 0.

loc_subrc = 0.

*// logic will be applied

else.

*//for the record with fail extracting for one mint exit.

endif.

endwhile

Thanks.

Edited by: Lezarazo Thoram on Nov 9, 2008 2:53 PM

Edited by: Lezarazo Thoram on Nov 9, 2008 2:54 PM

Edited by: Lezarazo Thoram on Nov 9, 2008 2:57 PM

1 REPLY 1
Read only

Former Member
0 Likes
342

Hi Lezarazo,

Check out the link for CL_GUI_TIMER. This might helpful for you to understand the concept. This is a good blog just go through this blog you will get the concept of the class CL_GUI_TIMER.

Thanks,

Chidanand