If for a particular transaction you want the error message (any validation checks) and it should not allow further...
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
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.