on 07-22-2010 12:52 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.