Tuesday, November 29, 2005

Locating Badi's

Go to transaction SE80 in a client where you can experiment with the transaction that you are interested in.Go to class CL_EXITHANDLER. [Select Class / Interface from the drop-down, and put CL_EXITHANDLER for the class.]

Go to method get_instance. [Press RETURN to ensure that the contents of the Object Name frame are for CL_EXITHANDLER. Expand the Methods node. Double-click on GET_INSTANCE.]Insert a breakpoint just after = the call to the method cl_exithandler get_class_name_by_interface. Use the transaction in which you are BAdI-hunting.

Examine the contents of the field exit_name whenever the processing stops at the breakpoint.

I have found a case where exit_name was an unknown field. Then class_name gave a good clue to the name of the BAdI.

Regards,

Ankur Bhandari

No comments: