Ansicht
Dokumentation

ABENCONVERT_UTC_ABEXA - CONVERT UTC ABEXA

ABENCONVERT_UTC_ABEXA - CONVERT UTC ABEXA

RFUMSV00 - Advance Return for Tax on Sales/Purchases   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

Convert Time Stamp in Time Stamp Field

This example demonstrates the statements CONVERT INTO UTCLONG and CONVERT UTCLONG.

Source Code

Execute

Description

The program is given a date, a time, and a time zone and converts these specifications into a time stamp. The program can also include daylight saving time in its calculations. The resulting time stamp is then converted to the local date and local time of another time zone. The following table shows some possible combinations of input and output, where spc stands for a space and - for no input or output.

date1 time1 tz1 dst1 ts tz2 date2 time2 dst2 cx_...
16.07.2010 09:10:00 CET - 2010-07-16T07:10:00 CET 16.07.2010 09:10:00 X -
16.07.2010 09:10:00 CET X 2010-07-16T07:10:00 CET 16.07.2010 09:10:00 X -
16.07.2010 09:10:00 CET spc - CET - - - X
16.12.2010 09:10:00 CET spc 2010-12-16T08:10:00 CET 16.12.2010 09:10:00 - -
16.12.2010 09:10:00 CET X - CET - - - X
16.12.2010 09:10:00 AUSTAS - 2010-12-15T22:10:00 AUSTAS 16.12.2010 09:10:00 X -
01.01.0001 01:00:00 UTC+4 - - UTC+4 - - - X
31.12.9999 23:59:59 UTC-4 - 9999-12-31T23:59:59 UTC 31.12.9999 23:59:59 - -

The third and fifth lines demonstrate that invalid specifications for daylight saving time data raise an exception. The last two lines show how values behave at the limits of the value range. Line 7 produces an invalid time stamp and hence raises an exception. The maximum value in line 8, however, does not calculate a time shift and no exception is raised. If specified, 23:59:58 would raise an exception.






rdisp/max_wprun_time - Maximum work process run time   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 10178 Date: 20240424 Time: 045124     sap01-206 ( 65 ms )