2005 Apr 29 12:57 AM
Hi,
I am calling functions from BADI and some of them raise exceptions and somehow they disappear as I don't see messages anywhere in my program which calls BADI method and I see messages if I call function directly from program.
Please help.
Regards
Nilesh
Hi,
I am calling functions from BADI and some of them raise exceptions and somehow they disappear as I don't see messages anywhere in my program which calls BADI method and I see messages if I call function directly from program.
Please help.
Regards
Nilesh
2005 Apr 29 1:57 PM
Hi Nilesh,
this behavior is not necessarily strange. If a message is handled by the calling function module, no further action (popup / reaching to higher level) is done. Have a look at handling of exceptions.
If this can't explain the situation, explain more details.
Regards,
Christian
2005 Apr 29 5:40 PM
Hi Christian,
I am not even getting normal information/warning type of messages if I call function which has information/warning type of message from BADI.
Regards
Nilesh
2005 Apr 30 9:59 PM
Hello Nilesh,
I think I know what is tour problem.
I suppose you are using (or you have) the following command in your function:
MESSAGE xxxxx x x xx RAISING exception_name.
Well, the message command has two different behaviors depeding on how you code or not the EXCEPTION clause.
I mean, in the following case the message is showed:
CALL FUNCTION 'XXXX'
EXPORTING
xxxx = xxxx.
But if you code the EXCEPTION clause, the message is not showed. Like here:
CALL FUNCTION 'XXXX'
EXPORTING
xxxx = xxxx
EXCEPTION
xxxxx = 1.
So check if you are declaring the EXCEPTION clause inside your BADI code.
If so, delete it, then I guess the messages will appers.
If no, I need more details, like, if it is a standard function, what is the function name, and what is the BADI name.
Regards,
Mauricio