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

badi

Former Member
0 Likes
529

how to handle the errors in badis?

5 REPLIES 5
Read only

Former Member
0 Likes
513

Hi Lavanya,

Welcome to SDN

Handling errors in BADI is not different than handling errors in normal programs, Same as how you handle errors in normal programs.

Reward if this helps,

Regards,

Satish

Read only

former_member195698
Active Contributor
0 Likes
513

Just like FM's you can define the Exceptions for the Method and raise the errors within the Method.

Regards,

Abhishek

Read only

Former Member
0 Likes
513

hi,

in BADI's u cannot display any error/information/warning messages from message id's.

The only way is to call the relevant POP_UP ......function modules, through which one can display the popup Meassges.

Show ur message in the POP UP function module...after which use the statement "Leave Program".

Revert back if any issues...

Regards.

Naveen

Read only

naimesh_patel
Active Contributor
0 Likes
513

TO handle the errors in the BADI's you can give the messages as you needed. There isn't any limitation on that.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
513

Hi

IN the Interface of the BADI

You can specify any exceptions in the Exceptions section.

And can handle them in the Implementation ..

Hope this Helps .

Praveen