Skip to Content
avatar image
Former Member

Usage of Exit Plugs

Dear All,

Please give me the scenario where we should use an EXIT plug to close an application.

In which hook method should the plug be fired?

What are the possible parameters of the plug?

Thank you.

Regards,

Prosenjit.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Apr 17, 2009 at 05:01 AM

    hi,

    Please give me the scenario where we should use an EXIT plug to close an application.

    there are two scenarios :

    1. When you want to close a Window.

    2. When you want to open new window by giving the URL.

    What are the possible parameters of the plug?

    There are two parameters of this plug:

    1. URL of type String.

    2. Close Window type boolean.

    In which hook method should the plug be fired?

    You can call this plug on any ONAction.

    Ex :

    Do the following steps :

    -> Make an Outbound Plug to the Window.

    ->Make the type of Outbound plug to Exit Type.

    ->Add URL of type String as a parameter to the outbound plug of Window.

    ->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont b possible ).

    To open a new URL with closing the previous one write this Code in OnAction of Button : ( this Code can be get from Code Wizard too ).

    DATA lo_zexit TYPE REF TO ig_zexit . <zexit is name of my Component>

    lo_zexit = wd_this->get_zexit_ctr( ).

    lo_zexit->fire_out_window_plg(

    url = 'http://www.google.com' " string

    ).

    Similarly you can do for Closing a Window using parameter Close Window.

    Thanx.

    Edited by: Saurav Mago on Apr 17, 2009 10:32 AM

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 17, 2009 at 05:04 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 30, 2009 at 02:39 PM

    Thanks

    Add comment
    10|10000 characters needed characters exceeded