Skip to Content
0
Former Member
Sep 07, 2009 at 11:11 AM

Time range Functions

932 Views

Dear Gurus ,

I have a time and i want to check it if is in a time range that i give .

For example i want to test if the time 06:02:21 is inside the range 07:00:00 and 15:00:00

Is there any function ?

I do it with code but i can't get the right results.

LOOP AT PERNR_HOURS WHERE VIRWC = ITAB-VIRWC.

IF ITAB_TIME-ERTIM > PERNR_HOURS-IN AND

ITAB_TIME-ERTIM < PERNR_HOURS-OUT.

ADD 1 TO MAN_COUNTER.

ENDIF.

ENDLOOP.

Thanks in advance ....