Thursday, June 13, 2013

How to change table data from se16 with "/h" (in debug) in SAP R/3


Hi Folks,
this is also an easy one. But it is very useful.
To change data from se16 even if the table is set as non changeable in se11 you can do the following.

1) From Menu -> user settings select the "standard se16 list". This procedure does not work with the grid or alv view.

2) Select the record you want to change by marking it individually




3) double click on the selected record. You get this
























4) Put /h in the trasaction box and press enter









5) the debugger starts. Look for "EDIT" in the code. double click on the "code" variable.




6) change "code" variable to "EDIT" in the debugger.










6a) type "code" in the variables tables.

6b) Press the pencil button,

6c) type"EDIT" instead of show and press "ENTER"




7) press F8 ( run the program )

8) VoilĂ  the list changed to edit mode 




Limitations of this method
1) This method should not be run in production systems. And not use to tamper data.
2) You need debugging authorization ( changes in debugging are logged in sm21 and many sysops run log scanners on sm21 )
3) Some tables don't work fine because they have external key and the se16 blocks you. ( for example table pa0001).

In addition you can experiment with the other sy.ucomm values that you find in the coding. Like "ANVO" "INSR" etc... they do interesting things like copying a record, inserting a new one and some other.