Application Development and Automation 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: 
Read only

BADI inside user exit

Former Member
0 Likes
766

hi,

can we call a badi inside a user exit?

Thanks,

Rakesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
719

Hi Rakesh More,

Yes, Definitely you can. No doubt about that.

Regards,

Mahi.

hi,

can we call a badi inside a user exit?

Thanks,

Rakesh.

4 REPLIES 4
Read only

Former Member
0 Likes
720

Hi Rakesh More,

Yes, Definitely you can. No doubt about that.

Regards,

Mahi.

Read only

Former Member
0 Likes
719

Hi Rakesh,

you can call BADI inside USEREXIT.

Regards,

Sandeep

Read only

Former Member
0 Likes
719

HI,

Yes, you can have it.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
719

hi,

yes you can call a BADI in user exit.

first create a BADI and

give the following code in the zinclude for the exit.

data:zif type ref to zif_ex_badi_xd01. ''BADI class

call method cl_exithandler=>get_instance

exporting

exit_name = zbadi_xd01 ''badi name

changing

instance = zif.

if sy-subrc = 0.

call method

instance = zif

class = zif_ex_badi_xd01

method = badi_sapmf02d_001

call method zif->badi_sapmf02d_001

exporting

i_kna1 = i_kna1

endif.

reward points if useful

siri