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 GET WEEKS for a given MONTH AND YEAR

Former Member
0 Kudos

Is there any FM to get the no of weeks for a given month, say 01 2005.

Can i get the week numbers say 1 2 3 4 5 for the given month and year.

Please let me know.

Happy Holidays.

Regards,

Manohar E

2 REPLIES 2

Former Member
0 Kudos

Hi Manohar,

Yes you can: GET_WEEK_INFO_BASED_ON_DATE.

Regards,

John.

Former Member
0 Kudos

Hi Manohar,

Use FM DATE_GET_WEEK twice; first time pass first day of the month and again pass the last day of the month as a parameter. So u will be having week number(yyyyxx) for the first week of the month and week number for the last week of the month. From these two, in between week numbers u can easily fetch. I hope this will help u out.

Regards,

Kavya Shah