0% found this document useful (0 votes)
19 views

Edit Debug For Table Update 1715706103

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Edit Debug For Table Update 1715706103

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Anil Dhurde - https://www.linkedin.

com/in/anil-dhurde-786b5112b/ Page 1 of 7

Ways to EDIT debug for updating values in SAP tables.


As an SAP consultant we may sometimes come across some situations where there is
no other option but to update table values directly. For this situation we have some ways
which we can use to edit the table values directly without going through the complete
business process.
There are three ways discussed in this document that we can use to edit the table values
in SAP.
• EDIT debug in SE16
• EDIT debug in SE16N (GD-EDIT=X, GD-SAPEDIT=X)
• SAP Editing function (&SAP_EDIT)
We may use any of the above methods as per our need and available access.
1) EDIT debug in SE16
Step 1: Open the required table in SE16 and hit enter button.

Step 2: Fill the proper selection criteria to get the required document that we need
to update/edit.

Step 3: Execute to load the table data. You see screen like below.
Anil Dhurde - https://www.linkedin.com/in/anil-dhurde-786b5112b/ Page 2 of 7

Step 4: Select the required data line and click on display. You will see a below
screen.
Here we have to identify a field that needs to be updated. But as this screen is
graded out, we cannot edit/change anything.
Now In the next steps we will see how these fields can be made available for editing.

Step 5: Input /h in the command window and hit enter. You will see a message as
‘Debugging Switched On’ at bottom of screen.

Once you see below message, hit enter button. This will open a ABAP debugger
screen.
Anil Dhurde - https://www.linkedin.com/in/anil-dhurde-786b5112b/ Page 3 of 7

Step 6: Once you are in the debugger screen, please double click on the code
variable highlighted in below screen.
This will make us this code variable available in the variable list in the right side of
screen. Here you have to click on edit button to edit the value for the variable.
As per the action that we want to perform we have to add the value for code
variable.
CODE = SHOW Display table data
CODE = EDIT EDIT data, except primary
key values
CODE = INSR Insert New data row in
table
CODE = ANVO EDIT data, including
primary keys
CODE = DELE Delete the data row in
table

Lets say for our case we need to EDIT the status value, so we will change the value
for code as,
Code = EDIT and click on execute. (F8)
Anil Dhurde - https://www.linkedin.com/in/anil-dhurde-786b5112b/ Page 4 of 7

Steps 6 : You will see now all the fields except primary key fields are editable. We
can change the field value to the desired one and click on save.
That’s it, your field value is updated in the table.

2)EDIT debug in SE16N (GD-EDIT, GD-SAPEDIT)


Step 1: Execute transaction SE16N, enter the table name, add proper selection
criteria to get the desired data that needs to be edited.

Step 2: Enter /h in the command window and hit enter. This will switch on debugging
mode.
Anil Dhurde - https://www.linkedin.com/in/anil-dhurde-786b5112b/ Page 5 of 7

Step 3: Once you see Debugging Switched on, click on execute button. This will
open a debugger screen.

Step 4: Here we have to add two variables in the variable section as shown below

Step 5: Click on execute. This will open a table data with all fields editable, except
primary key fields. Edit the required fields and click on save.
In this screen we can also insert new rows or delete existing rows by using insert and
delete button heighted below.
Anil Dhurde - https://www.linkedin.com/in/anil-dhurde-786b5112b/ Page 6 of 7

3) SAP Editing function (&SAP_EDIT)


Step 1: Execute transaction SE16N, enter the table name , add proper selection
criteria to get the desired data that needs to be edited.

Step 2: Enter &SAP_EDIT in the command window and hit enter.

You will see below message at the bottom of screen.


Anil Dhurde - https://www.linkedin.com/in/anil-dhurde-786b5112b/ Page 7 of 7

Step 3: Click on execute button to load the table values. Here all the fields except
primary key fields will be available to edit/change.
Do the required field change and click on save.

You might also like