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

Date Validations

Former Member
0 Likes
424

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.

2 REPLIES 2
Read only

Former Member
0 Likes
389

Hi,

LOOP AT SO_DATE.

IF SO_DATE-LOW > SY-DATUM.

MESSAGE E000 WITH 'CANNOT RUN FOR FUTURE DATE'.

ENDIF.

ENDLOOP.

Thanks,

Naren

Read only

Former Member
0 Likes
389

Hi,

Check the FM DATE_CHECK_PLAUSIBILITY for date validation.

Regards,

Azaz Ali.