2009 Aug 10 11:25 AM
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
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
2009 Aug 10 11:28 AM
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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |