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

Disable future date

former_member230215
Participant
0 Likes
1,174

Hi Experts,

I declared a variable as type sy-datum. Now f4 help is coming, but I want all futures dates to be disabled so that I cannot select them.

Is there any function module to do so ?

Thanks,

Kishore

1 ACCEPTED SOLUTION
Read only

Juwin
Active Contributor
0 Likes
892

You can do screen validations, to check if the date selected is greater than today.

But, if you want to give the message from the Date picker control itself, then one way that I can think of is to build a custom popup for picking date, using CL_GUI_CALENDAR and then use DATE_SELECTED event to check if date selected is greater than today.

Thanks,

Juwin

1 REPLY 1
Read only

Juwin
Active Contributor
0 Likes
893

You can do screen validations, to check if the date selected is greater than today.

But, if you want to give the message from the Date picker control itself, then one way that I can think of is to build a custom popup for picking date, using CL_GUI_CALENDAR and then use DATE_SELECTED event to check if date selected is greater than today.

Thanks,

Juwin