cancel
Showing results for 
Search instead for 
Did you mean: 

How to access Custom controller

Former Member
0 Kudos

Hi all,

How can i access custom controller objects in my other controllers.Can i call custom controller objects from component controller .

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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(

).

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Please go through this...

Cheers,

Kris.

Former Member
0 Kudos

Hi

Please go through this...

Cheers,

Kris.