Skip to Content
0
Former Member
Oct 27, 2009 at 10:37 AM

Validation / Message 'E' in User Exit, is it safe ?

197 Views

Hi,

I'm making a validation in OKC7. I need to display 20 different messages, but don't want to make 20 different validations. I'd like to make a single User Exit preparing a certain message to be displayed. I've managed to get the result using this way:

    PERFORM build_msg.

    MESSAGE s_msg TYPE 'E' RAISING errormessage.

    b_result = b_true.

I'm trying to display my custom error message inside the User Exit and then suppress the message defined in OKC7 by setting b_result to true.

But, is it safe to do it this way ?