Boring Monday

Press Ctrl-Alt-Del for unlimited access to this blog.

SAP ABAP /h Debugging Trick

March 28th, 2009 by SteD

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

One Response

  1. william wilstroth

    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!

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.