02-24-2011 8:27 AM
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
02-24-2011 8:38 AM
You can build your own F4 help and use the same for date field at selection-screen on value-request.
02-24-2011 12:00 PM
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..
02-24-2011 2:43 PM
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.