on 05-05-2011 12:48 PM
Hi all,
How can i access custom controller objects in my other controllers.Can i call custom controller objects from component controller .
Hi,
I hope you mean the Custom Controller the same way we understand as defined here
[http://wiki.sdn.sap.com/wiki/display/WDABAP/Introductiontocontrollers|http://wiki.sdn.sap.com/wiki/display/WDABAP/Introductiontocontrollers]
To access custom controller from the component controller you have to do the following.
1. Component controller->properties->use insert button to select the custom controller.
2. Use the code generator (CTRL+F7) -second tab(general)->method call in used controller->select your custom controller->method.
This will generate code like this
DATA lo_zzsbn_cust_cc1 TYPE REF TO ig_zzsbn_cust_cc1 .
lo_zzsbn_cust_cc1 = wd_this->get_zzsbn_cust_cc1_ctr( ).
lo_zzsbn_cust_cc1->test(
).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.