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: 

SYS-Date/Time

Former Member
0 Kudos

Hello All,

We have a report when executed updates the Client, the Document No, the Documents posting date etc into a "Y" custom table. Currently i need to add the system date and time when the record(in general sense) was updated into the table. What should be the Field name and data element that i can use to get the System date and time. Would be of great help if info is provided.

Thanks,

- PSK

3 REPLIES 3

andreas_mann3
Active Contributor
0 Kudos

Hi Sravan,

try this data elements (look se11):

1) upddt = Date of the Last Document Update

2) UPTIM = Time of last change

regards

Lakshmant1
Active Contributor
0 Kudos

Hi Sravan,

Try using Sy-datum for date and sy-uzeit for time. you can see the dataelements for these system variables from SYST structure.

Thanks

Lakshman

0 Kudos

Hi everyone,

You are all right (of course :-D). Just a detail: I recommend you to write "get time." just before assigning "sy-datum" and "sy-uzeit" to your variables. If you don't, you'll be assigning the same date and time for all the records you update/insert into the database.

I hope it helps. BR,

Alvaro