2007 Dec 12 10:00 AM
HI,
WHETHER THERE IS ANY CLASS OR METHOD TO FIND DAY IN A WEEK EITHOUT USING THE FUNCTION MODULE.
SHYJA
2007 Dec 12 10:08 AM
Simple method....
The system variable SY-FDAYW will have the day numbers from 0 to 6...(i.e. Sunday to Saturday)
0 - sunday
1- monday
2- tuesday
like above....
check sy-fdayw = 6...(for saturday)
2007 Dec 12 10:38 AM
use the following method which gives the day number in the week.
CALL METHOD cl_pt_time_eval_utilities=>weekday
EXPORTING
im_date = im_date
RECEIVING
result = l_weday_number.
Regards,
Gopi ,
Reward points if helpfull.