OnWeekSelect

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

Similar Messages

  • To add a method on select of a date from a date input field

    Hi,
    I have a input field which is binded to context element, type date. Hence the output screen has a date popup, from which user can select any dates.
    Is it any way i can have a action executed on select of a date value?
    I mean when the user selects a date from the date field an wction should be called.
    As I have chosen it to be input field so at present I have only the option of OnEnter, which is not fulfilling the requirement.
    Regards,
    Pranay

    Hi Pranay,
    Use the Date Navigator instead. It has got the same functionality as Date Picker (this is what you are using) & moreover, you can achieve what you desired. It has got the functions like onDaySelect, onWeekSelect & onMonthSelect & onSelect.
    That will trigger the action what you want.
    Regards
    Chander Kararia
    # Please close the thread once get the correct answer. Give rewards for answers.

Maybe you are looking for

  • Where are my missing artists?

    I was going to ask which files I need to back up to avoid having to rip my CD collection for a second time (it took me three months). Had a quick browse in the Finder and Found (ha!) that there's a very limited number of artists in Music>iTunes>iTune

  • My computer does not start?

    I turn on my computer mac pro and it does not start...

  • I am unable to see the Sync apps next to Music

    I have downloaded Itunes to transfer my music from my computer to my IPOD. I am unable to see the Sync apps that are shown in the support information. They should be seen next to Music however I do not see anything. Any ideas?

  • Run Extended Analtytics / Create Star Schema based on Process Management Level Status

    Dear HFM Gurus, I have come across a requirement where I would need to automate extended analytics extraction based on Review Level / Approve Status of Entities. Once the Process Management Status changed to Approve status from Review Level 3 or they

  • How do I determine Android Screen Width/Height?

    Hello, I've done a Google Search for finding the screen size in Android, but only found Java code(which I can't use). The closest thing I found was: maxwidth=stage.stageWidth; maxheight=stage.stageHeight; And they seemed reasonable, however when I dr