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

Error : 'Object does not contain an interface'

former_member314998
Participant
0 Likes
2,686

Hi Experts ,

   I have copied one standard class to custom class and within custom class GET_ACTIONS methods I am trying to access the method using below coding and getting error.

CALL METHOD super->if_powl_feeder~get_actions


EXPORTING


i_username = i_username


i_applid = lv_applid


i_type = lv_type


i_selcrit_para = i_selcrit_para


* i_langu = SY-LANGU


* IMPORTING


* e_actions_changed =

CHANGING

  c_action_defs = c_action_defs.


Please give your valuable input for reolving the same.

Thanks in advance.

Samrat

2 REPLIES 2
Read only

matt
Active Contributor
0 Likes
1,381

What standard class have you copied?

Read only

Former Member
0 Likes
1,381

Hi

To make it work you need to do the following:

1)  In the custom class, set the super class to CL_IBO_INBOX_FEEDER_BASE (on the Properties tab)    

2)  Redefine the GET_ACTIONS method (Second button on the right, on the Methods tab)

Now you can call the GET_ACTIONS method in the super class.  In terms of local classes, it should look something like this:

class lcl_inbox_feeder definition inheriting from cl_ibo_inbox_feeder_base.
  public section.
    methods if_powl_feeder~get_actions redefinition.
endclass.

class lcl_inbox_feeder implementation.
  method if_powl_feeder~get_actions.
    data: it_rsparams type RSPARAMS_TT,
             it_action_defs type POWL_ACTDESCR_TTY.

    call method super->if_powl_feeder~get_actions( exporting i_username = 'XYZ'
                                                                                                 i_applid = 'ABC'
                                                                                                 i_type = 'whatever'
                                                                                                 i_selcrit_para = it_rsparams
                                                                                 changing c_action_defs = it_action_defs ).
  endmethod.
endclass.

Hope that helps.