Skip to Content
Author's profile photo Bharat Bajaj

Activate &SAP_EDIT in SE16N (SAP ECC 6.0)

Moderator warning

“This is a powerful hack which can be used to change even the standard tables and even in a production environment (if you have CHANGE access in Debugger). The changes cannot be tracked in anyway and it may lead to inconsistencies. I would think twice before using this..”

you could not make use of this in our production environment. With a right authorization concept in place you would not be allowed to debug in production.”

To prevent its misuse by end users, they should be restricted with debugging authorizations.”

This functionality has been removed by SAP from Ehp5 (SAP Note 1420281) onwards”


Activate &SAP_EDIT in SE16N (SAP ECC 6.0)

In SAP ECC 6.0 EHP6, the function code &SAP_EDIT, which enables the change mode of transaction SE16N, is deactivated (SAP Note 1420281) due to security breaches that were detected. In order to activate it (temporarily), follow the steps below:

  1. Go to SE16N, as usual, and type the table for which you want to make modifications.
  2. Instead of typing &SAP_EDITin the command field, type /Hand press “Enter” key to activate debugging.
  3. Press F8 key to enter the data browser for the above table.
  4. If you are using EHP6, then you may need to press F7 for several times to reach to the Screen 100 of program SAPLSE16N
  5. While in debugging mode & once you are in Screen 100, enter the two variables GD-EDIT and GD-SAPEDIT and press “Enter” key.
  6. For each variable, click on the change button, change the value to an uppercase “X” and press “Enter” key.
  7. Press F8 key to exit debugging and enter the table in change mode.

Here is how the Entry to be changed in the debug mode.

SE16N.png

Please be careful while using this trick.

Cheers,

Bharat Bajaj

Assigned tags

      19 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Yuvaraj S
      Yuvaraj S

      This is a powerful hack which can be used to change even the standard tables and even in a production environment (if you have CHANGE access in Debugger).

      The changes cannot be tracked in anyway and it may lead to inconsistencies. I would think twice before using this..

      Author's profile photo Jürgen L
      Jürgen L

      you could not make use of this in our production environment. With a right authorization concept in place you would not be allowed to debug in production.

      Author's profile photo Bharat Bajaj
      Bharat Bajaj
      Blog Post Author

      Hi Yuvraj,

      This is just an alternate to &SAP_EDIT & majorly meant to be used by developers & support persons. To prevent its misuse by end users, they should be restricted with debugging authorizations.

      Author's profile photo Devendra Bhoir
      Devendra Bhoir

      Hello Yuvaraj S,

          

           The changes cannot be tracked in anyway and it may lead to inconsistencies.

      You can track changes made in SE16N by &SAP_EDIT option in SE16N_CD_KEY table.

      Regards,

      Devendra B.

      Author's profile photo Parvez Soobhany
      Parvez Soobhany

      Great job...

      I usually use the FM SE16N_INTERFACE... I don't know if in Production this can be used though..

      Module fonction              SE16N_INTERFACE              

      Majuscules/minuscules Paramètres d'import                              Valeur                             

                                                                           

      I_TAB                                    EKKO               

      Paramètres d'import                       Valeur                             

      I_SAPEDIT                                X                                  

      I_TAB                                    EKKO                                        

      I_EDIT                                                                                                        

      I_SAPEDIT                                X                                  

      I_NO_TXT                                 X                                  

      I_MAX_LINES                              500                                  

      I_LINE_DET                                                                           

      I_DISPLAY                                X                                                          

      I_CLNT_SPEZ                                                                          

      I_CLNT_DEP                                                                           

      I_VARIANT                                                                 

      I_OLD_ALV                                                                            

      I_CHECKKEY                                                                           

      I_TECH_NAMES                                                                         

      I_CWIDTH_OPT_OFF                                                                     

      I_SCROLL                                                                             

      I_NO_CONVEXIT                                                                        

      I_LAYOUT_GET                                                                                                                   

      IT_SELFIELDS                              0 Entrées                       

      Tables                                    Valeur                                                

      IT_OR_SELFIELDS                           0 Entrées                       

      IT_SELFIELDS                              0 Entrées             

      Author's profile photo Kashif Yusufzai
      Kashif Yusufzai

      You can use UASE16N transaction if SE16N is not working.

      Author's profile photo Jürgen L
      Jürgen L

      UASE16N is obsolete

      Author's profile photo Mehmet Ozgur Unal
      Mehmet Ozgur Unal

      hi all ;

      please check related tables when you update a record...

      Author's profile photo Bharat Bajaj
      Bharat Bajaj
      Blog Post Author

      UASE16N is obsolete now in ECC and SAP throws you out of the transaction if you try to use it.

      Author's profile photo Bharat Bajaj
      Bharat Bajaj
      Blog Post Author

      Hi Shyam,

      are you facing any error ? make sure you are doing the things right.

      regards,

      Bharat

      Author's profile photo Theerthesh Jain
      Theerthesh Jain

      Hi Bharat,

      Amazing workaround. Thanks for sharing. I just used this functionality as a last resort.

      Theerthesh.

      Author's profile photo Hemanta Kumar Mahanta
      Hemanta Kumar Mahanta

      Very good tool, thank you..    

      Author's profile photo Former Member
      Former Member

      i am not sure if the changes themselves can be seen (most probably not), but the ID from which GD-EDIT and GD-SAPEDIT were changed does show up in the system log (SM21).

      Capture.PNG

      Author's profile photo Former Member
      Former Member

      hi,

      can we edit primary keys using this tool. i know primary keys can not be changed. and we can do by deleting record and create new but still can we do it?

      Author's profile photo Bharat Bajaj
      Bharat Bajaj
      Blog Post Author

      You cannot not change the primary keys.

      However, you can create new primary key entries with this tool.

      Author's profile photo Former Member
      Former Member

      I know this is pretty old, but why not just implement note 1468636 (https://launchpad.support.sap.com/#/notes/1468636/E)  which turns allows activation again through RKSE16N_EDIT

      I am sure any auditor seeing a debugging event in a prd system will be asking a ton of questions.

      Author's profile photo Bharat Bajaj
      Bharat Bajaj
      Blog Post Author

      Hi Chris,

      I wonder why customer would allow you to implement this note and give a chance of data security breach.

       

      Author's profile photo Former Member
      Former Member

      Hi All,

       

      How about to change the value of GD-EDIT GD-SAPEDIT.

      "you are not authorized to edit field contents" "  and I cant debug it.

      Looking Forward. Thanks

      Author's profile photo Bharat Bajaj
      Bharat Bajaj
      Blog Post Author

      Hi Tongol,

      You can use FM SE16N_INTERFACE.

      Enter your <Table Name> and pass “X” to I_EDIT and I_SAPEDIT.

      Please note all the changes done by this FM are captured in table SE16N_CD_KEY and SE16N_CD_DATA.

      So this should be used in very critical situations only, as the system admin can see the change log.

      As a side note, you can always skip creation of log entries in debug mode by skipping the INSERT in Include LSE16NF30 -> FORM SAVE_CHANGES.

      ( Just look for insert se16n_cd_key & insert se16n_cd_data  )

       

      Regards,

      Bharat