* Declaring the handler class: cl_exithandler definition load. * Interface Reference data: badi_interface type ref to ZIF_EX_BUSINESSADDIN. start-of-selection. call method cl_exithandler=>get_instance changing instance = badi_interface. if not badi_interface is initial. call method badi_interface->method changing parameter = w_str. endif.
i am new to abap oop, pls help me to understand ...
here we are taking an interface ref variable, we are passing it to cl_exithandler => get_instance and in return we are getting the instance, using the instance we calling the methods
as per sap help....
The application developer uses a factory method to create an instance of this adapter class in the application program and calls the corresponding method, if necessary.
but in badi the methods are within the interface, and there is also an adapter class which gets created as soon as a badi is defined. so what is the relation between cl_exithandler , adapter class and the interface ? what is this factory method?
pls explain in details.