on 12-20-2007 9:52 AM
I have an input field mapped with an attribute of type string.
I want to validate if the user entered a numeric value then convert it to string type and if its a text like "abcd" then throw an error message "Please enter numeric value"
the reason i am not using INT4 as a data type is that it shouws 0 on the input field as a default value which is not as per the requirement.
How can i do that ?
Regards, Amol
hi amol...
you can make use of the system field sy-abcde.
this checks for anycharecters in the given string. first conver the string to capital letters using translate. then use condition, if string ca sy-abcde. if there is only characters then it goes inside the if else... it moves on o the else part.
--regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.