ABAP: Avoid pop-up during code activation
Attention: The actions on this post are done by changing the SAP standard code. Do it at your own risk.
Each time we try to activate a code that I is not compiling, the following pop-up appears.
This pop-up is quite redundant because we allows click the “Edit” option, since no one wants to activate code that don’t compile.
In this blog I am show how to enhance SAP to automatically avoid the pop-up and go directly to the code again to fix it, allowing you to work a bit more efficiently.
Include: LSEWORKINGAREAFCK
Form: checklist_evaluate
In this form, before the “IF xcode = ‘CHEC’…” you can add the following magic statement.
IF ( g_cwb_mode IS NOT INITIAL AND g_no_dialog IS NOT INITIAL ) OR g_ui_decoupled = abap_true OR g_cancel_flag = co_cancel_state-leave_popup. "No activation confirmation popups in this case g_cancel_flag = COND #( WHEN g_cancel_flag = co_cancel_state-generation_failed THEN g_cancel_flag ELSE co_cancel_state-leave_popup ). "keep generation error state PERFORM dequeue_objects. RETURN. ENDIF. *{ INSERT IF sy-uname = 'YOURUSERNAME'. g_no_force_activation = abap_true. ENDIF. *} INSERT IF xcode = 'CHEC' OR xcode = 'GEN' OR g_no_force_activation = abap_true. l_answer = '2'. ELSE.
Congratulations, you will never see that pop-up again