В 7.50 у вас есть tstmp_current_utctimestamp()
. Его можно использовать для сравнения с другими временными метками, что приводит к необходимости преобразования типовых полей даты и времени. Пример:
// As our system is set to UTC already, these cast and calculation are OK awaiting ABAP 7.51. Add a day if time is 24:00.
case resb.bdztp when '240000'
then cast( cast( cast( concat( DATS_ADD_DAYS( resb.bdter, 1, 'NULL'), '000000' ) as abap.numc(14) ) as abap.dec( 15, 0 ) ) as timestamp )
else cast( cast( cast( concat( resb.bdter, resb.bdztp ) as abap.numc(14) ) as abap.dec( 15, 0 ) ) as timestamp )
end as RequirementDateTimeUTC,
Расход:
// Seconds since Requirement Date & Time for view isOverdue.
tstmp_seconds_between( resb.RequirementDateTimeUTC, tstmp_current_utctimestamp(), 'NULL') as SecondsSinceReqDateTimeUTC,