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

Automatic refresh

bartlomiej_lach
Participant
0 Likes
814

Hello All!

I created cockpit which shows me actual data in tabstrips in ALV list and other data on the screen after doubleclick.

Additionally I would like to create some kind of automatic list refresh, i.e. everty 2 minutes code with selection should be triggered and selected data should be passed back to program and displayed in ALV. Is it possible in ABAP?

If it's possibe I have one more question, is it possible to check how long user hasn't done any operation in SAP?

Thanks in advance

Bartek

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
776

Please check the class CL_GUI_TIMER.

Regards

André

5 REPLIES 5
Read only

hubert_heitzer
Contributor
0 Likes
776

Hi Bartlomiej,

you can try something like this:


LOOP.
  WAIT UP TO 120 SECONDS.
  <your refresh code>
ENDLOOP.

As I remember, WAIT implies a rollout and rollin.

Regards, Hubert

Read only

0 Likes
776

Hubert,

but command WAIT stops whole procedure and I want something what can run in background. I mean all activities can be done in cockpit and simultaneously list is refreshed in backgroung.

Read only

0 Likes
776

Please try this one CL_GUI_TIMER.I think this one can help you to fix it.

Read only

0 Likes
776

Hi guys!

This class CL_GUI_TIMER is ok. I need to check some things but I think it will be ok, but I have one more question - is there any method to check if user is doing something on the screen (enter some data, move mouse)?

Read only

Former Member
0 Likes
777

Please check the class CL_GUI_TIMER.

Regards

André