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

SYS-Date/Time

Former Member
0 Likes
649

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
Read only

andreas_mann3
Active Contributor
0 Likes
528

Hi Sravan,

try this data elements (look se11):

1) upddt = Date of the Last Document Update

2) UPTIM = Time of last change

regards

Read only

Lakshmant1
Active Contributor
0 Likes
528

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

Read only

0 Likes
528

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