on 10-18-2019 2:04 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.