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: 

TO FIND DAY IN WEEK

Former Member
0 Kudos
354

HI,

WHETHER THERE IS ANY CLASS OR METHOD TO FIND DAY IN A WEEK EITHOUT USING THE FUNCTION MODULE.

SHYJA

2 REPLIES 2

Former Member
0 Kudos
140

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)

Former Member
0 Kudos
140

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.