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

time and date function, how to use?

Former Member
0 Likes
307

Hello everyone,

I want to know that how can we make use of these two system functions SY-TIMLO, SY-DATUM ?

What should pbo and pai so as to display time and date on screen?

This is what should be written in data but don't know what should i write in pbo and pai.

DATA: Ok_date TYPE SY-DATUM.

DATA: Ok_time TYPE SY-TIMLO.

Please guide. Thanks for writing back.

Regards,

Lucky

Moderator message - Please ask a specific question - post locked

Edited by: Rob Burbank on Aug 5, 2009 10:30 AM

1 REPLY 1
Read only

Former Member
0 Likes
277

Hi,

During runtime of any program the system date and system time is stored in SY-DATUM and SY-UZEIT.

On you screen define 2 fields of the same type and move the values of SY-DATUM and SY-UZEIT into them using WRITE statement in the PBO.

Regards,

Ankur Parab

Edited by: Ankur Parab on Aug 5, 2009 7:55 PM