Application Development 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: 

disable date from F4 help

Former Member
0 Kudos

Hi All,

I have a screen field of type DATS, during F4 based on some condition I want to disable some dates, i.e user cannot select that date and also I want to set some max. date limit.

Regards,

bharani

3 REPLIES 3

Sandeep_Kumar
Advisor
Advisor
0 Kudos

You can build your own F4 help and use the same for date field at selection-screen on value-request.

0 Kudos

at selection screen output event write the code

If Condition True to disable....

LOOP AT SCREEN.

IF screen-group = 'XYZ'

screen-input = 0 or 1....check in debugging mode

modify screen.

endif.

ENDLOOP..

0 Kudos

LOOP AT SCREEN.

IF screen-group = 'XYZ'

screen-input = 0 or 1....check in debugging mode

modify screen.

endif.

ENDLOOP..

That doesn't work for dates inside calendar controls!!!

To the poster, take a look at class CL_GUI_CALENDAR and the demo programs that use it. I don't know that you can stop certain dates from being picked though. I've only used it for formatting the way a calendar is displayed.