on 09-18-2008 12:02 PM
hi,
I have a FROM DATE and TO DATE fields.
If I select a date from the calendar ..it should display the week start date in the FROM DATE field and
week end date in TO DATE field
Can you please let me know how to approach??
thx
Hi Murali,
Let your form context have two attributes namely dt_from and dt_to.
In the Backend before calling the form do the following:
Call Function DATE_GET_WEEK passing the current date (sy-datum) . This function will return the current week number.
Call Function WEEK_GET_FIRST_DAY passing the week number and get the first date of the week.
Add 7 to it and get the last date of the week.
Set these values to the context attributes of the Form.
On the form bind the values of these two fields to the respective context attributes.
Now can you let from where are you calling the form - Is it an ABAP Accordingly, I will be able to tell you where to write the code.
Regards,
Reema.
Edited by: Reema Shahbazkar on Sep 19, 2008 12:39 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.