‎2007 Aug 16 8:54 AM
Hi, Experts,
How can I display clock on screen, I am using screen painter and I want to display clock to show always current time like a watch.
any supporting help will be reward full.
Regards
Rajiv singh.
‎2007 Aug 16 9:12 AM
Hi,
You want to use the function module <b>SAPGUI_PROGRESS_INDICATOR</b>. By using the "Percentage" parameter, it will display the clock.
Regards,
Padmam.
‎2007 Aug 16 9:08 AM
‎2007 Aug 16 9:11 AM
Hi Singh
check this one
CLOCK ON SCREEN. (Thru write statement)
(This sample code will give an insight
to many abapers who are still wondering
about the concept of TIMER IN ABAP
as compared to other programming languages)
The Code : (Just Copy Paste)
REPORT abc NO STANDARD PAGE HEADING.
DATA : wa(72) TYPE c.
*----
CLASS my DEFINITION.
PUBLIC SECTION.
METHODS : run_handler FOR EVENT finished OF cl_gui_timer.
ENDCLASS. "my DEFINITION
DATA timer TYPE REF TO cl_gui_timer.
DATA myh TYPE REF TO my.
----
CLASS my IMPLEMENTATION
----
*
----
CLASS my IMPLEMENTATION.
METHOD run_handler.
CALL METHOD timer->run.
PERFORM mylist.
ENDMETHOD. "run_handler
ENDCLASS. "my IMPLEMENTATION
*----
*----
Init
INITIALIZATION.
CREATE OBJECT timer.
CREATE OBJECT myh.
SET HANDLER myh->run_handler FOR ALL INSTANCES.
PARAMETERS : a TYPE c.
*----
End of selection
START-OF-SELECTION.
WRITE sy-uzeit TO wa.
WRITE wa.
timer->interval = '0.5'.
CALL METHOD timer->run.
*----
FORM mylist.
WRITE sy-uzeit TO wa.
MODIFY LINE 1 LINE VALUE FROM wa.
ENDFORM. "MYLIST
reward points to all helpful answers
kiran.M
‎2007 Aug 16 9:12 AM
Hi,
You want to use the function module <b>SAPGUI_PROGRESS_INDICATOR</b>. By using the "Percentage" parameter, it will display the clock.
Regards,
Padmam.