cancel
Showing results for 
Search instead for 
Did you mean: 

How to get out of user exit

0 Kudos

Hello.

I would like to inquire about QM user exit.

EXIT_SAPMQEVA_007
ZXQEVU09

If the above QM user exit condition is not satisfied, how can we process exit out?
It seems that the above exit is processed unconditionally and usage decision is processed.
If the condition is not satisfied, we will not process the usage allowance.

I have applied user exit, but only the information window is displayed for the following reasons.(maybe...
nswers.sap.com


thank you.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member42743
Active Contributor
0 Kudos

Yes. the exit is always called. It's up to you to determine in the user exit code what to do. The user code exports three values back to the main program. You set those in your code.

I believe the FM documentation says:

Data will only be copied from the function module if the activation indicator is set (E_EXIT_ACTIV = X).

So you would set E_EXIT_ACTIV to null when you start your code.

You would only set it to "X" when your conditions are met and you want to tell the main program to utilize your changes.

Also read the information on export parameters E_NO_DISPLAY and E_NO_ACTION_AT_ALL.

Craig

  • AlbertSAP
    Advisor
    Advisor
    0 Kudos

    Dear Jensen Dan,

    thank you for the provided information.

    I have checked the exit for you and following can be found in its documentation:
    "...
    The messages that may be issued in this function module are intercepted by the calling program and issued as information messages (message type"I").
    ..."

    I have checked it on code level, and the comment in the code confirms this statement in include MQEVAF34:

    ...* Exit zur Steuerung der Kommentarpflicht und Vorbelegung des Langtexts
      CLEAR sy-msgty.
      CALL CUSTOMER-FUNCTION '007'
        EXPORTING
          i_qals                   = qals
          i_qave                   = qave
          i_tcode                  = sy-tcode
          i_rqeva                  = rqeva
          i_ind_defect_recorded    = l_fehler_vorh
          i_ind_insp_cancel_comp   = g_pruefabbruch_komp
          i_ind_insp_cancel_short  = g_pruefabbruch_kurz
          i_numb_rejected_char     = g_anz_rueck_mk
        IMPORTING
          e_exit_activ             = l_exit_aktiv
          e_no_display             = l_no_display
          e_no_action_at_all       = l_keine_aktion
        TABLES
          t_characteristic_results = g_mktb
          t_notifications          = g_qfob_tab
          t_defects                = g_qfaa_tab
          t_protocol_text          = l_protokoll_tab
          t_ud_longtext            = g_tab_stempel
        EXCEPTIONS
          error_message            = 2
          OTHERS                   = 1.
    *-- Error,Abbruch,Warn- und Info-Nachrichten als I-Meldung ausgegeben !
    *-- .. und die Verarbeitung läuft weiter !...
    

    The German comment basically says:

    Output error, termination, warning and info messages like I-messages and execution continues.

    Have a nice day,
    Albert
    ***
    Read and follow the 'SAP Community Rules of Engagement' at https://www.sap.com/community/about/rules-of-engagement.html