Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    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 a 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 a 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.