SAP ABAP /h Debugging Trick

I learned this ABAP debugging trick to add, edit, delete or update a table record during my stay in my previous company. This trick will work as long as you have the authorization to force value into variables during debugging, which, usually an ABAPer will have in Development or QAS server.

Let’s go into SE16. Take Sales Order table VBAK for example.

vbak

Double click any line and goes into the details single record view, type /h and hit enter twice.

vbak2

The variable CODE was originally having a value of ‘SHOW’. You can edit the value of the variable to ‘EDIT’, ‘INSR’, ‘DELE’ and ‘ANVO’. The name of the value is quite self explanatory, ANVO is for editing the record including the keys ( which I’ve never used ).

debug

Hit F8 and there, you’re in the EDIT mode. Remember to hit the Save button when you’re done thou.

It’s useful to use this trick when you’re trying to maintain a table when you can’t use SM30 to do it. This is one of my favourite ABAP trick ;)

This entry was posted in ABAP, Tech and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

2 Comments

  1. Posted October 10, 2009 at 8:20 am | Permalink

    This is a good tip… but i think it will not work in some companies because this feature can be lock by the dev managment team…

    but it’s a good trick! yeah!

  2. Dani
    Posted August 31, 2011 at 7:01 pm | Permalink

    its better to enter transaction se16n or /nuase16n
    choose table you wanna look at, and write the transaction &sap_edit (editor mode)

    I will allow you to change o introduce new values..

    Its a great TIP!!!

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>