Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Date/Time Interval Comparison

thomas_lambert
Explorer
0 Kudos

Fields:

StartDate type sy-datum,

StartTime type sy-uzeit,

EndDate type sy-datum,

EndTime type sy-uzeit.

Is there an existing function or class where I can compare a start time and date and end time and date to other start/end time and dates to check to see if there is any overlapping?

Thanks,

Tom

5 REPLIES 5

former_member181966
Active Contributor
0 Kudos

If you go to SE37 and search TIME , you`ll find the FM . Which do this . RH* OR HR *

Thanks

Saquib

0 Kudos

Also Try

/SOMO/GET_TIMEZONE

HR_SGPBS_ADD_TIME_TO_DATE

AFW_TST_DATE_TIME_SEL_GET

IDOC_DATE_TIME_GET

BP_STDT_EDITOR_AT_DATE_TIME

BWFIT_UPDATE_TIMESTAMPS

BWOMT_UPDATE_TIMESTAMPS

C14B_DATE_TIME_COMPARE

C14Z_CALC_DATE_TIME

C14Z_SET_DATE_TIME_LOW_BOUND

CACS_TIMEDATE

CACS_DATE_GET_TIMESTAMP

CACS_TIMESTAMP_GET_DATE

Thanks

Saquib

ferry_lianto
Active Contributor
0 Kudos

Hi Tom,

Have you looked this FM <b>SD_DATETIME_DIFFERENCE</b>?

Hope this will help.

Regards,

Ferry Lianto

Former Member
0 Kudos

Try TB_TIME_INTERVAL_OVERLAP.

Rob

Former Member
0 Kudos

Hi,

i dont recollect the fm..

Try function module timeoverlap*.

Regards,

Tanveer.

please mark helpful answers