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

User exit not giving error message

Former Member
0 Likes
712

Hi,

I'm using the User Exit QEVA0007 for giving error message while giving wrong storage location . I have written the code for error message with type 'E' . But when I execute the Tcode, it is displaying only the information message not as a error message. How to correct this message type to error?

When I read the documentation for function module EXIT_SAPMQEVA_007 it has been stated that:

The messages that may be issued in this function module are intercepted by the calling program and issued as information messages (message type"I").

How to override the message from intercepting program?

Please prvide the solution.

1 REPLY 1
Read only

Former Member
0 Likes
558

In addition to the error message raise an exception OTHERS within the enhancement function module. Furthermore Pass the value 'X' to the function module parameters E_EXIT_ACTIV and E_NO_ACTION_AT_ALL. This will ensure that the program exection get cancelled after raising the error message. See line number 411 of include MQEVAF34 for more details.

if ( l_exit_aktiv is initial
       and qals-stat19 is initial )
*-- Customer Exit nicht aktiv und keine dokupflicht, -> wie < Rel. 3.0E
    or ( not l_exit_aktiv is initial
         and not l_keine_aktion is initial ).
*-- oder Customer Exit ist aktiv und es soll nichts unternommen werden !
    exit.
  endif.