Do you know this? You use a function module from SAP (let's say, the very useful START_TIME_DETERMINE), and you use it often. But every time you insert it, half a page of coding is generated, the parameters do not get syntax checked and inline data declarations are not supported.
It would be much more convenient having the same functionality in a method, wouldn't it?
So I create a wrapper method. But where to put it? After a year, I want to find it easily, and I want my colleagues to be able to find it either. Here's my approach:
I created a package dedicated to OO wrappers for SAP function calls.Then, I created classes that put together wrappers of a similar kind. One criterium for "similar" could be the function pool where the SAP function is in.
Actually, my package looks like this:
The coding of the wrapper itself is quite easy:
Just create a coherent interface (with non-generic typed parameters) and call the function.
I hope you get the idea! I would like to read your comments about this. Do you have a different approach?
Best regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
5 | |
3 | |
3 | |
3 | |
2 | |
2 | |
2 | |
2 | |
2 |