Application Development 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: 

BADI Messages

Former Member
0 Kudos

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

3 REPLIES 3

christian_wohlfahrt
Active Contributor
0 Kudos

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

0 Kudos

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

0 Kudos

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