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: 

Is it possible to dispplay time dynamically in module pool

Former Member
0 Kudos

Hi,

i have a requirement to display the current time of the system in a field on the module pool screen.

once PBo is loading i am capturing the time and displaying,, but the requirement is like the time should not static it should be dynamically changing like stopwatch.

please advise whether it is possible or not .

6 REPLIES 6

gouravkumar64
Active Contributor
0 Kudos

Hi,

Sy-uzeit u can use.

Gourav.

former_member209818
Active Contributor
0 Kudos

Hi Mukesh,

IN ABAP screens, data is generally static and to refresh the screens contents Module pool generally require a event (Like enter or back event). I think there is one FM which can trigger such event which can be used to refresh the screen, but it will not be like a stop-watch..

- Harshad

dirk_wittenberg
Contributor
0 Kudos

Hi,

you can use class CL_GUI_TIMER to get it updated every n seconds.

The hurdle is that the screen is only updated by going thru the PBO - PAI cycle which requires user action.

A solution might be a small html-control inside your screen which contains only the time field.

Regards,

Dirk

0 Kudos

CL_GUI_TIMER can solve the problem if in the method handling the on_finished event you use a cl_gui_cfw=>set_new_ok_code to raise a PAI/PBO cycle.

(Or ask user not to hide Windows taskbar...)

Regards,

Raymond

0 Kudos

Can't set_new_ok_code confuse the user if he/she is just making some entry in a dynpro-field?

0 Kudos

In fact I always used this option in display lists, not on input screen, just to display a "time of extraction" field, and never on an input screen.