Skip to Content
author's profile photo
Former Member

How to access Custom controller

Hi all,

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on May 05, 2011 at 02:17 PM

    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(

    ).

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on May 05, 2011 at 12:05 PM

    Hi

    Please go through this...

    how-to-get-the-reference-of-the-view-controller-in

    Cheers,

    Kris.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on May 05, 2011 at 12:08 PM

    Hi

    Please go through this...

    how-to-get-the-reference-of-the-view-controller-in

    Cheers,

    Kris.

    Add comment
    10|10000 characters needed characters exceeded