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 Implementation

Former Member
0 Likes
528

Hello People,

I am trying to call a BADI through my program. All my BADI definitions and implementations are active. I have defined the intrface and methods also.

But when I am executing my program, I am getting a null reference run time error. It is because

CALL METHOD cl_exithandler=>get_class_name_by_interface

is not returning instance. I am passing the BADI name as an importing parameter to this method (through exit_name) but still I am not getting the instance of the adapter class.

Does anyone know the reason behind this issue or if they have faced similar issue?

Regards,

Abhishek

4 REPLIES 4
Read only

Former Member
0 Likes
505

Hi,

Try

start-of-selection.

call method cl_exithandler=>get_instance

changing

instance = badi_interface.

Edited by: Neenu Jose on Oct 23, 2008 9:04 AM

Read only

0 Likes
505

I have tried this code only. the "badi_interface" is returning "initial" which means instance is not pointing to any class or object.

Read only

0 Likes
505

Hi,

Have you declared the class and instance?

Please check this:

  • Declaring the handler

class: cl_exithandler definition load.

  • Interface Reference

data: badi_interface type ref to ZIF_EX_BUSINESSADDIN.//Interface name

Read only

0 Likes
505

Yupp

But still I am facing this issue :(:(