SAP NEWS-40-TIMESTAMP



Get Example source ABAP code based on a different SAP table
  



Time Stamps in ABAP Release 4.0

When time stamps were introduced in ABAP in ABAP_RELEASE 4.0, special attention was paid to the following:
Making the time stamp meaningful to a user in his or her particular time zone
Making objects uniquely identifiable by their time stamp by guaranteeing a higher level of precision
A current time stamp can be created in an ABAP program using the new variant GET TIME STAMP FIELD f. It is always globally unique since it is stored in UTC time (Universal Time Coordination, previously Greenwich Mean Time) and not in local time.
A time stamp can be generated with normal precision (to one second), or accurate to around one microsecond (1E-6 seconds).
To convert the time stamp to local time or to ABAP time and date format (data type T or D), the following variants should be used: CONVERT TIME STAMP tst INTO $[DATE$|TIME$] ... and WRITE tst TIME ZONE tz
See also:
Time Stamps in Packed Numbers