You are on page 1of 5

Modify, Create & Delete using SE16

1
1. Introduction:
While performing tests in Development or Test system, there are lot of times when you would like to
make changes in any table entry, but the table maintenance is not available through SM30. In some
cases, the testing is performed, but the tests are not successful and you would like to reuse the same
test data by deleting the update information from the tables.
This document will help to understand the trick to modify, create and delete entries through SE16 (or
SE11). You would require debugging access to make any changes to the table entries.
NOTE: Even though the trick is very useful for testing, please do not use this in Production
environments. If it is really required to be used in Production environment, please do so at your own
risk as direct updating entries through SE16 may cause data inconsistencies in some cases.

2. Steps to Modify entry using SE16:


a. Go to transaction SE16 (SE11 is also valid).
b. In the table name field enter the table (in this example is T52OCG).

c. Enter the required selection parameters to display the table values.


d. Select the entry to be modified and then click on the glass icon to display.

e. Write “/h” in the command field and hit enter to switch on the debugging mode.

2
f. Hit enter again to get into the ABAP Debugger. Hit F7 on the keyboard to get into the ABAP
code that will display the values of the field “CODE”. Since it is a display now, the value of
CODE will be “SHOW”.

g. Update the value of field CODE to “EDIT” and press F8 to complete the action. This will bring
you back to the table entry and you can see that the entry can now be modified.

h. Make the required changes and click on “SAVE” to update the entry.
i. The same process can be used to update multiple entries as well. In this case, select the
multiple entries to be modified instead of one single entry.

3. Steps to Create entry using SE16:


a. Go to transaction SE16 (SE11 is also valid).
b. In the table name field enter the table (in this example is T52OCG).

c. Enter the required selection parameters to display the table values.


d. Select any entry and then click on the glass icon to display.

3
e. Write “/h” in the command field and hit enter to switch on the debugging mode.

f. Hit enter again to get into the ABAP Debugger. Hit F7on the keyboard to get into the ABAP
code that will display the values of the field “CODE”. Since it is a display now, the value of
CODE will be “SHOW”.

g. Update the value of CODE to “INSR” and press F8 to complete the action. This will bring you
back to the table entry and you can see that the entry can now be modified.

h. Make the required changes and click on “SAVE” to insert the entry.

4. Steps to Delete entry using SE16:


a. Go to transaction SE16 (SE11 is also valid).
b. In the table name field enter the table (in this example is T52OCG).

4
c. Enter the required selection parameters to display the table values.
d. Select the entry to be modified and then click on the glass icon to display.

e. Write “/h” in the command field and hit enter to switch on the debugging mode.
f. Hit enter again to get into the ABAP Debugger. Hit F7on the keyboard to get into the ABAP
code that will display the values of the field “CODE”. Since it is a display now, the value of
CODE will be “SHOW”.

g. Update the value to “DELE” and press F8 to complete the action. This will bring you back to
the table entry and you can see that the entry can now be deleted.

h. Click on “Delete Entry” to delete the required entry.

5. End Result:
You are able to modify the entries in quick time and also can redo the same test cases without going
through the hassle to create again.

You might also like