I have created the following User Defined Function :
CREATE FUNCTION MyTable ( @dd_YearNo INT, @txt_WeekNoFrom INT, @txt_WeekNoTo INT, @dd_Group VARCHAR(MAX), @dd