Skip to Content

How subcontrollers talk to each other

I am using controllers and subcontrollers in my application. I like the concept very much.

Usually, my subcontrollers handle the events (e.g. button clicks) on their views themselves. But sometimes, a click in subcontroller 1 interests other subcontrollers. For example, I have "" with 2 subcontrollers "" and "". If a button in the toolbar is clicked, I would like to handle that event in "".

What's the best way to do that?

Best regards,


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 13, 2005 at 02:42 PM

    You could use ABAP OO events. You could define an event in the controller class for When it receives the UI event from the MVC runtime it will then raise the ABAP OO event.'s controller class will then be registered with an event handler for that ABAP OO event.

    Since should have visibility to its subcontrollers (and their controller class instances), it could do the registration of the events.

    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.