Application Development and Automation 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: 
Read only

Date Condition based on time

Former Member
0 Likes
388

Hi :

I am working on Plant Maintenance module, i extracted work orders ( aufnr ) from AUFK based on some conditions.

In the selection screen i have s_date option where the user can give any date range .my question is ...after selecting all the work orders, i want to count work orders whose status is conformed and date condition is " For the calender week X, work order actual end date ( getri ) should not be later than the week ending of sunday night 11:59pm " .

Here calender week X, starts on monday morning 00:01 am and ends sunday night 11:59pm

I am able to extract work orders whose status is conformed , but i need logic for tha date condition based on the time ie, end date should not be later than the week ending of sunday night 11:59pm.

points will be rewarded ..

Thx.

Raghu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
358

if you want the current date and time you can check with sy-datum or sy-uzeit.

Or you can find if there is any date and time fields in the table and compare them against the date you want to.

I am not sure if youa re looking for this.

1 REPLY 1
Read only

Former Member
0 Likes
359

if you want the current date and time you can check with sy-datum or sy-uzeit.

Or you can find if there is any date and time fields in the table and compare them against the date you want to.

I am not sure if youa re looking for this.