If for a particular transaction you want the error message (any validation checks) and it should not allow further...
processing of that transaction, then its the time to go for FIELD EXIT.
1. Create a Function Group.
2. Run the program RSMODPRF, which will create a field exit (Mention the data element for which field exit is needed).
3. In the Function module created by the above program write the validation code you require.