01-26-2007 6:15 PM
Hello
We have a home grown program that monitors our batch job activity. As the jobs are executing in batch the folks on support are required to hit the [refresh] button at various intervals to refresh the latest batch status information. Is it possible automatically refresh the data without continuously hitting the refresh button. Ideally this would be a user defined time period, i.e. refresh every 3 seconds. I realize this seems like a 'nice to have' but am curious if this is possible.
Thanks for your help,
Joe
01-26-2007 6:25 PM
Hi Joe, this is absolutely possible. You can implement a gui timer to do this.
Check this weblog, now if you are on 6.20 or better, there is no need for the local class in this example, you simply refer to the CL_GUI_TIMER class.
/people/rich.heilman2/blog/2005/10/18/a-look-at-clguitimer-in-46c
Regards,
Rich Heilman
01-26-2007 6:25 PM
Hi Joe, this is absolutely possible. You can implement a gui timer to do this.
Check this weblog, now if you are on 6.20 or better, there is no need for the local class in this example, you simply refer to the CL_GUI_TIMER class.
/people/rich.heilman2/blog/2005/10/18/a-look-at-clguitimer-in-46c
Regards,
Rich Heilman
01-26-2007 6:31 PM
Thanks Rich, I appreciate the quick response. I'll certainly check it out.
01-26-2007 6:39 PM
02-01-2007 7:22 PM
um...
Couldn't you just use FM 'SAPGUI_PROGRESS_INDICATOR'?
Doug -
02-01-2007 9:52 PM
Hello Doug
No I don't believe I can. The program first accepts some input paramters etc. then displays a long list of all the current BW infopackages, associated batch jobs, and their status - red, yellow, green. The users need to refresh the display on a peridoc basis waiting for the traffic lights to change which indicates whether a job has completed, failed or is still in process. The routine mentioned above automatically refreshs the output on the screen every X number of seconds without user intervention. Without this logic the program simply waits for an event - in this case the user clicking on the refresh button. I've incorporated the code and it's works nicely.
Joe