Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Calculating day of week

Hi Experts,

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.

Regards,

Krishan

Tags:
Former Member
Former Member replied

Hi,

Try this.

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.

Sharin.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question