Hello Enoch,
go to tcode SE24. put class CL_EXITHANDLER in input. press on display button. you can see a method named GET_INSTANCE under method tab. doble click on GET_INSTANCE method. you have to put a break point at :
CALL METHOD cl_exithandler=>get_class_name_by_interface.
in command field you have to put /nme51n. press ENTER. debugger screen will open. double click on
exit_name. exit_name = badi name.
CALL METHOD cl_exithandler=>get_class_name_by_interface
EXPORTING
instance = instance
IMPORTING
class_name = class_name
CHANGING
exit_name = exit_name
EXCEPTIONS
no_reference = 1
no_interface_reference = 2
no_exit_interface = 3
data_incons_in_exit_managem = 4
class_not_implement_interface = 5
OTHERS = 6.
you have to press F6 button for debugging...... you dont have mentioned your exact requirement in your question. For that reason i give an example. suppose you have to find out badi name when you press save button...i think you understand my example.. in time of debugging, after creating of purch. req , you press on save button for save purpose. when you press save button, at that time you find a badi name ....thats means this is the badi name which is triggered at pressing SAVE button after activating this badi...
actually which you find out this is the badi definition... go to SE18. put this badi name. press DISPLAY.
next you have to implement this badi....means badi implementation. for this, go to SE19 tcode...go to CREATE IMPLEMENTATION block. select radio button classic badi. put your badi definition name.
press on create implementation. give a implementaion name(starts with Z or Y). give short text. press on INTERFACE tab. one or many methods you can see. choose the correct method which fullfill your requirement.....
double click on your required method.. give packae name..and save the object.
just for example you see like this:
method IF_EX_BADI_MATERIAL_CHECK~CHECK_MASS_MARC_DATA.
break-point.
endmethod.
between method ... endmethod you have to put your logic which you want.....
save it and finally activate the implementation....
go to tcode me51n.. after creating purch req. press save button...then this badi(Activated) will be called....for test purpose, put a breakpoint between method and endmethod in badi.... you can understand...cheers...
your problem will be solved... if any problem revert back..close your thread according to SCN rules....obey this rules..
Thanks
Sabyasachi