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

Interface cannot be used !! how to solve this

Former Member
0 Likes
1,422

HI all,

I am creating a Badi. I have created an interface and in that i have created two methods.

1st method name is : GET_USER_EMAILID & its parameters are

parameter type Associated type

sy-uname

USERNAME Importing

EMAILID changing AD_SMTPADR

2nd method name is : GET_USER_ADDRESS_DATA & its parameters are

parameter type Associated type

UNAME Importing SY-UNAME

ADDRESSDATA changing USR03

===========================================

But i am getting Error like Interface cannot be used.

both the methods are Instance methods.

How do i solve this ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
906

Hi,

If i understand you correctly, you created a Badi and added a interface. But the interface is not active and hence forth the BADI is also inactive.

Can you provide little more details ?

Thanks,

KD

Hi,

If i understand you correctly, you created a Badi and added a interface. But the interface is not active and hence forth the BADI is also inactive.

Can you provide little more details ?

Thanks,

KD

2 REPLIES 2
Read only

Former Member
0 Likes
907

Hi,

If i understand you correctly, you created a Badi and added a interface. But the interface is not active and hence forth the BADI is also inactive.

Can you provide little more details ?

Thanks,

KD

Read only

0 Likes
906

Hi,

If you follow the below steps, you would not get any error msg

1) Create a classical BADI . It should propose a name for the interface

2) Create methods in the Interface and activate it

3) After the interface is active then save the BADI.

Thanks,

KD