SAP Function /SDF/CMO_DATETIME_DIFFERENCE - Calculates difference between two dates/timestamps.

Parameter Reference Type Length Default Optional Text
DATE1 D D 8 X
DATE2 D D 8 X
TIME1 T T 6 X
TIME2 T T 6 X

Parameter Reference Type Length Text
DATEDIFF P P 0
EARLIEST C C 0
TIMEDIFF P P 0

Exception Text
INVALID_DATETIME