on 02-07-2008 2:16 PM
Dear experts,
for the first time I've been trying to reuse one of my BOR-methods by calling it from another method
in the same Business Object.
The main reason to try this approach instead of directly calling the function module that's behind it
was that I didn't want to redefine the 7 exceptions defined for the method. I just wanted to define
a couple of new exceptions for the newer method.
Now I'm a bit disappointed because exactly this part doesn't seem to work as I hoped it would.
The exceptions from the method called with SWC_CALL_METHOD don't show up.
Do I actually have to maintain the exceptions double ?
Thanks in advance
Andreas
Hi Andreas,
You need the exception handling, so I think you would need to do them again. I think I would have used the FM and done the exception handling in the new method also, just to be sure everything will work as I wanted.
Also SWC_CALL_METHOD doesn't have any parameters for the exceptions, so no way to catch them.
Regards,
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Martin,
at least you reply gave me the assurance that there's nothing simple missing in my approach
that I just didn't see. Now I did it the other way - by calling 2 FMs in one method, the last of which
being the basis for the other method that I wanted to reuse, inkluding all the associated "EXIT_RETURNs".
Not beautiful from a reuse point of view, but at least it works properly.
Dank U well !
regards
Andreas
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.