How to Switch ABAP Editor Mode Using ABAP Code

In older versions of SAP or depending on the user’s role, the default configuration for the ABAP Editor might look like this.

01

In DEBUG mode, it may appear as follows:

02

This is not the best option for programming or debugging a program.

To change the configuration from the old ABAP Editor to the new one, or vice versa, you can use the following transactions:

  • SE24

  • SE37

  • SE38

  • SE80

  • Etc.

Below i show you the steps to make the configuration:

03
04

Once configured, the new ABAP Editor will be active and will look like this

05
2026 05 27 08h39 27 1024x270

But what if you need to change this configuration in a production environment? You or the user might not have the authorization for the transactions mentioned above.

What can we do to resolve this problem ?

There is a solution: we can create a transaction to change this configuration. 

Let me show you how to do that with a few lines of code:

06
07
08

This program first verifies if the user has the new ABAP Editor configured by default. If not, the program will configure it.

Now, we can create a Z transaction to run the report in the production environment for the current user, providing a better view when debugging in a production environment.

If you want to use the code from the report, you can see the complete project on My Github Profile below.

SET_NEW_ABAP_EDITOR

 

Dejar un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Scroll al inicio