‎2014 Oct 30 12:14 PM
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
‎2014 Oct 30 2:24 PM
‎2014 Oct 31 5:49 AM
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.