Application Development and Automation 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: 
Read only

display time

Former Member
0 Likes
975

hi,

i need to display time in my report or in a screen field.

how can i display the current time of presentation server?

as long as i am using the screen or report the time must be displayed and also the time must change.

what should i do to change the time.

can any one please help me?

paul.

8 REPLIES 8
Read only

Former Member
0 Likes
922

U can get the time from sy-uzeit.

write 😕 sy-uzeit.

U can use the below ... to change the time ..

wait up to 1 seconds.

and write ...

write 😕 sy-uzeit.

Read only

0 Likes
922

hi,

but i need the same time to be changed dynamically.

cant we import it from our system so that it gets changed as long as we are viewing the report or list.

paul.

Read only

0 Likes
922

I don't think it's possible to refresh the list .. and get time ..

Read only

Former Member
0 Likes
922

hi Paul,

use system variable sy-uzeit field ..

Regards,

Santosh

Read only

Former Member
0 Likes
922

Hi,

Use the function module

BDL_GET_CENTRAL_TIMESTAMP

Read only

Former Member
0 Likes
922

Hi,

You can use system variables sy-datlo (Local Date for Current User) and sy-timlo ( Local Time of Current User ).

You can also use GET TIME statement.

Regards,

Fernando

Read only

0 Likes
922

bt the time is static.

how can i make it changing.

after each second it should get updated.

as long as the user is viewing the report the

time must get updated.

Read only

Former Member
0 Likes
922

Hi,

what I can understand is that You need an auto-refreshing of your output. ie You need a time implemented in your code :

look at this code in this link:

http://www.sapdevelopment.co.uk/reporting/rep_autorefresh.htm