Hi everyone,
I have to validate the entry in select-option(s_conft here) to an internal table field holding date ( detltab-conf_date_time+11(8) here) in
format e.g: 11:11 AM.
the select option field is holding the value in IEQ111100000000 format.
To achieve this functionality,i did the following coding
IF s_conft IS NOT INITIAL.
lv_tim = detltab-conf_date_time+11(8).
IF lv_tim+6(2) EQ 'PM'.
lv_hr1 = lv_tim+0(2) + 12.
ELSE.
lv_hr1 = lv_tim+0(2).
ENDIF.
lv_hr2 = lv_tim+3(2).
CONCATENATE lv_hr1 lv_hr2 INTO lv_tim_final.
IF NOT lv_tim_final IN s_conft.
DELETE detltab.
CONTINUE.
ENDIF.
ENDIF.
But this piece of code is not working.
Please help me out with this.
I need to delete entries from internal table if its date entry doesn't match the date entry in selection screen .