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

Validation

Former Member
0 Likes
412

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

2 REPLIES 2
Read only

Former Member
0 Likes
387

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

Read only

Former Member
0 Likes
387

Hi Rama,

You can validate this in the at selection screen event using CN operator. IF p_param CN '1234567890 '. Error. Endif.