‎2006 Sep 13 6:44 PM
Hi Experts,
Please help to validate the date in the selection screen.
I have used date as the select-options
I want to do the validation for the date range ie if the user input the current date or past date it should accept
otherwise any future date it should throw error.
please help me if any function modules exits,
or please send me code if possible.
Thank you in advance
Regards,
Shalem.
‎2006 Sep 13 6:46 PM
Hi,
LOOP AT SO_DATE.
IF SO_DATE-LOW > SY-DATUM.
MESSAGE E000 WITH 'CANNOT RUN FOR FUTURE DATE'.
ENDIF.
ENDLOOP.
Thanks,
Naren
‎2006 Sep 13 6:52 PM
Hi,
Check the FM DATE_CHECK_PLAUSIBILITY for date validation.
Regards,
Azaz Ali.