Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Is it possible to circumvent error message within a function module?

Former Member
0 Likes
332

Hello friends,

Is it possible to circumvent error message generation from within a function module? My program calls a FM (namely FKK_S_CADOCUMENT_WRITEOFF) to do some updates. However, in certain cases this FM throws error messages and terminates the whole process. I cannot control the aftermath because it never gets back to the calling program.It stops at the FM level and not at my program level.

In essence, what I would like to do is to let the FM do its thing, generate some kind of exception (but no error message), come back to the calling program, and then I can capture the status in my program and do what is necessary from then on.

Your help is greatly appreciated

1 REPLY 1
Read only

Former Member
0 Likes
291

Hi,

Do not use Excerption Tab.

Instead declare a variable or Structure at export parameter.

Which will return you error Description or Status of the FM.

For Example.

Goto Se37 ---> key in FM name of yours.

Go to Table tab

At Parameter Name Column key in RETURN, Type as LIKE and Associate type as BAPIRET2.

ThankS & regards,

ShreeMohan

Edited by: ShreeMohan Pugalia on Aug 10, 2009 12:31 PM