Application Development 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: 

creating BADI definition (creating new BADI)

Former Member
0 Kudos

Hi experts,

need help regarding creating BADI definition (creating new BADI) & how to call this custom BADI from program

thanks

manish

2 REPLIES 2

Former Member
0 Kudos

Hi Manish,

we can create the BAdI definition in SE18 transaction where we have to define attributes & methods of that BAdI where interface will be automatically created later we have to implement the BAdI by using SE18 or SE19 t.codes.

Where we have to specify the BAdI definition name for implementation badi.

Than load the definition

class: cl_exithandler definition load.

  • Interface Reference variable

data: badi_interface type ref to interface name.

*************************************************

****Start of Selection Event.....................

************************************************

start-of-selection.

call method cl_exithandler=>get_instance

changing

instance = badi_interface.

if not badi_interface is initial.

call method badi_interface->method name

changing parameter = .

endif.

zdenko_necas
Discoverer
0 Kudos

If you want to create a "new BAdI" (ERP 6.0 and higher) , take a look at [this blog-spot about new enhancement framework.|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3430] [original link is broken] [original link is broken] [original link is broken]; ...