cancel
Showing results for 
Search instead for 
Did you mean: 

onWeekSelect

Former Member
0 Kudos

Hi ,

I am using DateNavigator . I want to use onWeekSelect as i selecting a particular week . I want to get the first date and the last date of the selected week . Can anyone tell me how do I get it ?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

You can get the FIrst Day of the selected week as shown in the following code:


method ONACTIONONWEEKSELECT .
DATA first_day TYPE D.
  wdevent->get_data( EXPORTING NAME = 'FIRST_DAY'
  IMPORTING VALUE = first_day
                      ).
endmethod.

And to get the last day of the week, you can get that with adding 6 days to the First day.


DATA last_day TYPE D.
last_day = first_day + 6.

Hope this helps!

Regards,

Srilatha

Edited by: Srilatha M on Jul 22, 2010 2:54 PM

Answers (0)