‎2009 Oct 13 3:32 PM
Hi Experts,
I want to do the Validation on Parameter.
I should enter only number in that parameter. If i enter any value or symbols apart from number, it should give the error message.
Could you please give me sample code for this validation.
Regards
Ram Ganji
Moderator message - Please do not ask or answer such basic questions - post locked
Edited by: Rob Burbank on Oct 13, 2009 11:07 AM
‎2009 Oct 13 3:41 PM
Hi,
Use the keyword, SY-ABCDE to check if the field conatins alphabets and if it does give an error message.
To check for special characters use the FM SF_SPECIALCHAR_DELETE.
else declare the field as an integer the check will be done by itself.
Thanks,
harini
‎2009 Oct 13 3:42 PM
Hi Rama,
You can validate this in the at selection screen event using CN operator. IF p_param CN '1234567890 '. Error. Endif.