‎2007 Jun 19 10:26 PM
In the selection screen for one of the fields I want to add calender for choosing the date.
How can do that...
‎2007 Jun 19 10:27 PM
declare parameter as type SY-DATUM.
PARAMTER p_date TYPE SY_DATUM.
‎2007 Jun 19 10:30 PM
The field is actually defined in the select options and it's a CHAR type...
‎2007 Jun 19 10:27 PM
Just define the type as d.
Ex:
<b>PARAMETERS : P_DATE LIKE SY-DATUM.</b>
And it will automatically give you the calendar when u press F4
‎2007 Jun 19 10:33 PM
Define the selection parameter/option as type D or reference it to sy-datum. When the user hits the drop down key, it will give them the calendar view and F4 and F2 will put the current systems date into it.
Hope this helps. Points are always welcome.
Minami
‎2007 Jun 19 10:35 PM
Since it's a character type it's not accepting any date values..
How to fix this problem.
‎2007 Jun 19 11:37 PM
In case, you do not want to change the screen field to date then use function F4_DATE_CONTROL.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_DATE-LOW.
CALL FUNCTION F4_DATE_CONTROL
EXPORTING...
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_DATE-HIGH.
CALL FUNCTION F4_DATE_CONTROL
EXPORTING...
You will receive the selected date in IMPORTING parameter SELECT_DATE.
Please reward points to all useful answers.
‎2007 Jun 20 12:13 AM
Why can't you change it to a date select option instead of char?