You are on page 1of 13

8/6/2019 Activate &SAP_EDIT in SE16N (SAP ECC 6.

0) | SAP Blogs

Products
Products Industries
Industries Services Support
Services and Support Training
Training Community
Community Developer
Developer Partner
Partner About
About 
Ask a Question Write a Blog Post Login

Bharat Kumar Bajaj


September 23, 2013 1 minute read

Activate &SAP_EDIT in SE16N (SAP ECC 6.0)


Follow RSS feed Like

23 Likes 159,040 Views 19 Comments

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”

https://blogs.sap.com/2013/09/23/activate-sapedit-in-se16n-sap-ecc-60/ 1/13
8/6/2019 Activate &SAP_EDIT in SE16N (SAP ECC 6.0) | SAP Blogs

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 modi cations.
2. Instead of typing &SAP_EDIT in the command eld, type /H and 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.

Please be careful while using this trick.

Cheers,

Bharat Bajaj

https://blogs.sap.com/2013/09/23/activate-sapedit-in-se16n-sap-ecc-60/ 2/13
8/6/2019 Activate &SAP_EDIT in SE16N (SAP ECC 6.0) | SAP Blogs

Alert Moderator

Assigned tags

ABAP Development |

Related Blog Posts

Edit mode for SE16N using ABAP Debugger Scripting


By Alfonso Rodríguez Pérez , Apr 10, 2013
Operations Research & ABAP
By Tobias Trapp , Oct 04, 2011
HTTP Content Server & GOS
By Frederic Girod , Jul 07, 2014

Related Questions

Is There any tool to copy SAP ECC 6.0 EHP 5 source code to SAP ECC 6.0 EHP 7
By Former Member , Feb 17, 2017
moving to ECC 6 EHP 8.0 on Hana DB
By Ouail Roukbi , Dec 11, 2017
Code autocompletion for global classes' methods' signatures
By Azat Nuriakhmetov , Apr 15, 2019

https://blogs.sap.com/2013/09/23/activate-sapedit-in-se16n-sap-ecc-60/ 3/13
8/6/2019 Activate &SAP_EDIT in SE16N (SAP ECC 6.0) | SAP Blogs

19 Comments

You must be Logged on to comment or reply to a post.

Yuvaraj S

September 24, 2013 at 6:18 am


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..

Like (0)

Jürgen L

September 24, 2013 at 6:21 am


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.

Like (0)

Bharat Bajaj | Post author

September 24, 2013 at 6:39 am


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.

Like (0)

https://blogs.sap.com/2013/09/23/activate-sapedit-in-se16n-sap-ecc-60/ 4/13
8/6/2019 Activate &SAP_EDIT in SE16N (SAP ECC 6.0) | SAP Blogs

Devendra Bhoir

October 4, 2013 at 7:25 am


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.

Like (0)

Parvez Soobhany

October 1, 2013 at 10:36 am


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               

https://blogs.sap.com/2013/09/23/activate-sapedit-in-se16n-sap-ecc-60/ 5/13
8/6/2019 Activate &SAP_EDIT in SE16N (SAP ECC 6.0) | SAP Blogs

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                                                                             

https://blogs.sap.com/2013/09/23/activate-sapedit-in-se16n-sap-ecc-60/ 6/13
8/6/2019 Activate &SAP_EDIT in SE16N (SAP ECC 6.0) | SAP Blogs

I_NO_CONVEXIT                                                                        

I_LAYOUT_GET                                                                                                                   

IT_SELFIELDS                              0 Entrées                       

Tables                                    Valeur                                                

IT_OR_SELFIELDS                           0 Entrées                       

IT_SELFIELDS                              0 Entrées             

Like (0)

Former Member

October 1, 2013 at 11:30 am


You can use UASE16N transaction if SE16N is not working.

Like (0)

Jürgen L

October 1, 2013 at 11:45 am


UASE16N is obsolete

Like (0)

Mehmet Ozgur Unal

October 1, 2013 at 12:15 pm


hi all ;
https://blogs.sap.com/2013/09/23/activate-sapedit-in-se16n-sap-ecc-60/ 7/13
8/6/2019 Activate &SAP_EDIT in SE16N (SAP ECC 6.0) | SAP Blogs

please check related tables when you update a record…

Like (0)

Bharat Bajaj | Post author

December 5, 2017 at 1:05 pm


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

Like (0)

Bharat Bajaj | Post author

October 3, 2013 at 11:54 am


Hi Shyam,

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

regards,

Bharat

Like (0)

Theerthesh Jain

July 30, 2015 at 5:59 pm


Hi Bharat,

Amazing workaround. Thanks for sharing. I just used this functionality as a last resort.
https://blogs.sap.com/2013/09/23/activate-sapedit-in-se16n-sap-ecc-60/ 8/13
8/6/2019 Activate &SAP_EDIT in SE16N (SAP ECC 6.0) | SAP Blogs

Theerthesh.

Like (0)

Hemanta Kumar Mahanta

May 4, 2016 at 6:14 am


Very good tool, thank you..    

Like (0)

Former Member

May 4, 2016 at 1:07 pm


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).

Like (1)

Former Member

June 29, 2016 at 4:46 am


hi,

https://blogs.sap.com/2013/09/23/activate-sapedit-in-se16n-sap-ecc-60/ 9/13
8/6/2019 Activate &SAP_EDIT in SE16N (SAP ECC 6.0) | SAP Blogs

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?

Like (0)

Bharat Bajaj | Post author

December 5, 2017 at 1:03 pm


You cannot not change the primary keys.

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

Like (0)

Former Member

January 9, 2017 at 2:56 pm


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.

Like (0)

Bharat Bajaj | Post author

December 5, 2017 at 1:03 pm


Hi Chris,

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

https://blogs.sap.com/2013/09/23/activate-sapedit-in-se16n-sap-ecc-60/ 10/13
8/6/2019 Activate &SAP_EDIT in SE16N (SAP ECC 6.0) | SAP Blogs

Like (0)

Former Member

June 2, 2017 at 4:49 pm


Hi All,

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

“you are not authorized to edit eld contents” ”  and I cant debug it.

Looking Forward. Thanks

Like (0)

Bharat Bajaj | Post author

December 5, 2017 at 1:01 pm


Hi Tongol,

You can use FM SE16N_INTERFACE.

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

https://blogs.sap.com/2013/09/23/activate-sapedit-in-se16n-sap-ecc-60/ 11/13
8/6/2019 Activate &SAP_EDIT in SE16N (SAP ECC 6.0) | SAP Blogs

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

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

Regards,

Bharat

Like (0)

Share & Follow


https://blogs.sap.com/2013/09/23/activate-sapedit-in-se16n-sap-ecc-60/ 12/13
8/6/2019 Activate &SAP_EDIT in SE16N (SAP ECC 6.0) | SAP Blogs

Privacy Terms of Use

Legal Disclosure Copyright

Trademark Cookie Preferences

Sitemap Newsletter

https://blogs.sap.com/2013/09/23/activate-sapedit-in-se16n-sap-ecc-60/ 13/13

You might also like