Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Calender

Former Member
0 Likes
1,076

In the selection screen for one of the fields I want to add calender for choosing the date.

How can do that...

7 REPLIES 7
Read only

Former Member
0 Likes
999

declare parameter as type SY-DATUM.

PARAMTER p_date TYPE SY_DATUM.

Read only

0 Likes
999

The field is actually defined in the select options and it's a CHAR type...

Read only

Former Member
0 Likes
999

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

Read only

Former Member
0 Likes
999

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

Read only

0 Likes
999

Since it's a character type it's not accepting any date values..

How to fix this problem.

Read only

0 Likes
999

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.

Read only

Former Member
0 Likes
999

Why can't you change it to a date select option instead of char?