cancel
Showing results for 
Search instead for 
Did you mean: 

Exceptions don't seem to be processed when using SWC_CALL_METHOD macro

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

martin_nooteboom
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Answers (0)