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: 

times less than 1.00 pm

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

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.