Supported by
Supported by Inetum

Add parameters to standard methods and functions

images/thumbnail.jpg - Thumbnail

We are all aware of SAP implicit enhancements which allow you to add code to the top or bottom of any block of standard code (methods, functions, etc). We’ve all used it to make a change to a BAPI or other standard piece of code.

But only recently did I find that you can also use these implicit enhancements to add parameters to standard methods and functions.

While you’re in any parameter tab of SE37 or SE24 press the enhancement button (the spiral, the most beautiful SAP icon). You’ll get a dialog box asking for the enhancement name. Give it a name or choose an existing one and now you’re free to add whatever parameters you like. Look what I did:

param_extra_em_fm

Notice the new column on the right identifying to which enhancement the parameter belongs to.

The first thing that came to mind was adding missing parameters to a BADI buth then I remembered that, since a BADI is always invoked by standard code this would also have to be changed. Oh well.

And now off you go to add your own parameters to as many standard functions as you can.

Thank you Pierre Ameye for the tip.

Photo: James Marvin Phelps

Greetings from Abapinho.