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

Former Member
0 Likes
362

Hi :

I am working on Plant Maintenance module, i extracted work orders, i am wondering to know how to code date condition for these.In the selection screen i have s_date option which is SY-DATUM.

For the calender week X, work order actual end date ( getri ) should not be later than the week ending of sunday night 11:59pm.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
336

Hi

Use the Views VIAUFKS and VIAUF_AFVC for the required data of PM orders

First fetch the data from the tables/views by equating the Selection-screen date field with one of the End date of the PM order present in the table/views

then again from the internal table data modify it with the correct weeks time after fetching the correct week using a fun module for that date.

Reward points for useful Answers

Regards

Anji

1 REPLY 1
Read only

Former Member
0 Likes
337

Hi

Use the Views VIAUFKS and VIAUF_AFVC for the required data of PM orders

First fetch the data from the tables/views by equating the Selection-screen date field with one of the End date of the PM order present in the table/views

then again from the internal table data modify it with the correct weeks time after fetching the correct week using a fun module for that date.

Reward points for useful Answers

Regards

Anji