函数DATE_TIME_CONVERT能计算从1980年1月1日 0時0分0秒到输入日期时间之间的秒数。

| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | REPORT ztest_convert_time. DATA: l_startzeit TYPE f. CALL FUNCTION 'DATE_TIME_CONVERT'   EXPORTING     date                 = sy-datum     time                 = sy-uzeit   IMPORTING     point_in_time        = l_startzeit   EXCEPTIONS     date_before_rel_date = 01     date_to_big          = 02. WRITE:l_startzeit. | 
输出:

以上。


发表评论