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: 

to display the clock in the abap screen

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

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.