Execute code after a COMMIT
Remember how with CALL FUNCTION IN UPDATE TASK you could delay some actions until the moment of a COMMIT?
Remember how with CALL FUNCTION IN UPDATE TASK you could delay some actions until the moment of a COMMIT?
In SAP it’s normal to have tables in the database with a NAME field and another NAME_SEARCH which is filled in with exactly the same thing as NAME but in upper case.
Then, when you want to do case-insensitive searches you use NAME_SEARCH. You don’t need to do this anymore.
Did you know that your ABAP programme can copy content to your operating system’s clipboard?
It’s very easy to mess up with object names in SAP. I recently found a way to minimize that problem: set rules to fix per-package prefixes for certain object types.
In 2012 I wondered why LISTBOX is so rarely used. I taught how to use it with standard data elements, which automatically populate it. Today I’ll teach you how you can populate it yourself.
Even though many ABAP programmers tend to forget this, the less texts you hard code in your program the simpler it will be to translate it.
Here’s a simple but rather obscure way to manipulate selection screen texts while still being able to translate then. This way you can, for example, prefix them with icons.
Nowadays I rarely use CL_GUI_ALV_GRID because SALV is so much better. But when I am asked to make an editable ALV I still use it. Until very recently, I thought that, in order to use it, I needed a screen with a container. And because I’m using ABAP OO, I’d need a function group to host it and a function module to call it. Painful.
If you, who are reading this, believe that everything written in Abapinho is literally true, what I’m about to tell you will be a disappointment: when I said magical I didn’t mean that it was supernatural. It is just a nicer way of saying it is surprising and unexpected. I took this liberty just as you’d say “I could kill for a glass of water” knowing that you would never do it. Having made this clear, let’s continue.
SAP is full of hidden corners rarely visited. Abapinho is happy to shed some light on them.
The command %pc is equivalent to the menu option System/List/Save/Local file: