on 04-18-2011 1:45 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would suggest to get some knowledge about webdynpro used components concept.
see [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b9/b82c4142aef623e10000000a155106/content.htm|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b9/b82c4142aef623e10000000a155106/content.htm]
in the main component , create a usage for your custom component.
Use this usage as required controller of your component controller or view controller.
use the webdynpro code generator to generate the code for
a) creating instance for the used component
b)calling the interface controller of the used component.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.