Skip to Content
author's profile photo Former Member
Former Member

firing plug of window from view

Hi,

I have 2 windows, and wish to fire plug of second window from a view embedded in first window.

I have declared the window controller usage in the view and use the code:

DATA lo_wi_test TYPE REF TO ig_wi_test .

lo_wi_test = wd_this->get_wi_test_ctr( ).

lo_wi_test->fire_<plugname>_plug( ).

but the second line dumps. Please suggest a solution, points assured.

Regards,

Rachita.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2008 at 06:27 PM

    Hi Rachita,

    For that you need to define the controller usage of the second window into your view.

    In view -> properties tab create controller usage of second window.

    Then write the below code :

    Data: lr_ref_ TYPE REF TO ig_<window name>.
    lr_ref = wd_this->get__<window name>_ctr( ).
    lr_ref->fire_<plug name>_plg( ).

    Thanks.

    Edited by: Viji on May 16, 2008 8:27 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 17, 2008 at 03:35 PM

    the second line (lo_wi_test->fire_<plugname>_plug( ).

    dumps, because you should use the actual name of the plug you defined in the inbound plugs tabstrip of the view/window you are trying to fire.

    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.