Calculating day of week
I have a scenario in which I am giving Week no on the selection screen.
Week _______ to _______.
This is a field of table S012-SPWOC.
Now I have to calcualte the date on First Monday in the given range.
Say user enters
Week 04/2008 to 16/2008.
Now I have to calculate the date on the first Monday in this range.
Use the function module 'WEEK_GET_FIRST_DAY' and give the value of WEEK as 200804, you wil get the date of the first monday.