Skip to Content

Calling an interface METHOD of another abap web dynpro application

Hi Experts,

Can u plz tell how we can Call an interface METHOD of another abap web dynpro application in main WD Component.

Thanks

Mahesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 18, 2011 at 01:02 PM

    Hi ,,

    Example ALV interface method calling GET_MODEL interface method

    View attribute declaration : M_WD_ALV type IWCI_SALV_WD_TABLE

    DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .

    wd_this->M_WD_ALV = wd_this->wd_cpifc_alv( ). "ALV is the usage name

    DATA lv_value TYPE ref to cl_salv_wd_config_table.

    lv_value = wd_this->M_WD_ALV->get_model( ). " interface method calling in ALV component usage.....

    Regards,

    Devi

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      As Bhaskaran suggested , understand the concept and then implement it.

      Follow these steps.

      1) Declare the usage of Component B in Component A, by doble clicking on component name and on tab used Components.

      2) In the controller where you need to call Component B method , Declare the usage of this used component in Properties tab.

      3) Using the code wizard --> Method Call in Used Controller option --> Specify the details

      Component Name

      Component Use

      Controller Name

      Method Name

      And you will get the needed code and the data declaration.

      Ashish

  • Apr 19, 2011 at 11:07 AM

    Hi Mahesh,

    component 1 - where the interfaced method need to be called

    component 2 - where the interface method defined

    1. Declare the component 2 as used used component in the component 1.

    click on the component header(component name), in used component tab declare the component using create button

    2. Define usage in the comp controller or view whether u need to call the method

    click on comp controller, properties tab, click on create button then select the corresponding component

    3. Then call the methods using the code wizard.

    Regards,

    Meera

    Add comment
    10|10000 characters needed characters exceeded