2005 Aug 10 11:22 AM
Hi all,
i am Senthil,Working as programmer analyst .Can any one please tell me How to display the clock in abap screens? Is there any function module available for that or help me how to do it?
Thanks in Advance!!!
Senthil
2005 Aug 10 11:59 AM
Hi Senthil,
Try function module 'SAPGUI_PROGRESS_INDICATOR'.
for example-
DO 100 TIMES.
DO 300 TIMES.
GET TIME.
ENDDO.
A(3) = SY-INDEX.A+3 = '%'.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = SY-INDEX
TEXT = A.
ENDDO.
Regards,
Komal
2005 Aug 10 12:34 PM
dude,
U can display the clock in the status bar thro process indicator function modules or methods of classes.
If u want to display time in screen, here is the sample coding.
&----
*& Report ZRPN_SAMP1 *
*& *
&----
*& *
*& *
&----
REPORT zrpn_samp1.
GET TIME.
WRITE: /01 'Update Number:', sy-uzeit.
CALL FUNCTION 'zpraveen'
STARTING NEW TASK 'pr'
PERFORMING start_refresh ON END OF TASK.
AT USER-COMMAND.
IF sy-ucomm = 'REFR'.
sy-lsind = sy-lsind - 1.
GET TIME.
WRITE: /01 'Update Number:', sy-uzeit.
CALL FUNCTION 'zpraveen'
STARTING NEW TASK 'IF'
PERFORMING start_refresh ON END OF TASK.
ENDIF.
START-OF-SELECTION.
&----
*& Form START_REFRESH
&----
text
----
-->TASKNAME text
----
FORM start_refresh USING taskname.
The SET USER-COMMAND initiates the communication back to the program
SET USER-COMMAND 'REFR'.
ENDFORM. "START_REFRESH
This works very fine.
Lemme know u could do that by rewarding points.
with regards,
praveen.