‎2008 Oct 23 7:58 AM
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
‎2008 Oct 23 8:03 AM
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
‎2008 Oct 23 8:07 AM
I have tried this code only. the "badi_interface" is returning "initial" which means instance is not pointing to any class or object.
‎2008 Oct 23 8:12 AM
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
‎2008 Oct 23 8:15 AM