07-30-2007 12:28 PM
Hello!
In a programm there are times give like:
2:34 pm
11:130 am
7:00 pm
9:40 pm
...
..
Required are all the times less than 1.00 pm.
How can I say that in Abap now ?
Regards
Ilhan
07-30-2007 12:31 PM
data:
w_date like sy-datum.
if w_date lt 01:00:00.
write " Time is less ".
else.
write " Time is more ".
endif.
Regards,
Pavan
07-30-2007 12:31 PM
data:
w_date like sy-datum.
if w_date lt 01:00:00.
write " Time is less ".
else.
write " Time is more ".
endif.
Regards,
Pavan
07-30-2007 12:33 PM
do this way...
if time is am leave as it is....
if time is pm then add 12 to the value.
so, now u want time less than 13 hours....
if value < 13
write ur code...
endif.