Application Development 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: 

how to set timer for required time.

Former Member
0 Kudos

hi everybody,

i am basically a electrical engineer and i don't have a strong background in coding and i am in training for ABAP. it will be a  great help if some body could resolve my below written question.

the scenario is ,i am into a page in module pools where i will be typing or selecting some data and will be saving the data in a internal table. but the question is if i have to write or select it should be with in a specific time after which a information message will be displayed with a information that time is up and the current page should be blocked or some other page should open, the data also should be saved in a internal table.

basically the main focus is completely on setting a timer and set a specific time of 30 minutes or 1 hour or what ever we need and after that time the current page data should be saved in a internal table or were ever we want.

PLEASE HELP ME?

3 REPLIES 3

Former Member
0 Kudos

Intresting

Use the class cl_gui_timer.

The method RUN can be used set the timer. Once the time reaches ZERO, it will raise the event FINISHED.

Thanks,

Vikram.M

Former Member
0 Kudos

Hi Syed,

I think Vikram's sloution may be helpful to you.

Find the below links also for your reference.

ABAP Timers and Auto-refresh

Thanks & Regards,

S.Rajendranarth.

Former Member
0 Kudos

Hi mustafa,

You could take a look at report SAP_TIMER_DEMO which uses the CL_GUI_TIMER class for an automatic refresh effect.

Regards,

sankar