How to close a popup window for system events?

Hi,
I have a screen 110 which shows several input field in popup mode.
The Cancel button can close the screen.
But my question is how to close the popup window for the following system events?
1, Customer clicks the cross button in top-right corner
2, Customer clicks the system icon in top-left corner and then select either: "Close" or "Stop Session"
The PAI subroutine of the screen has not been triggered for the above system events.
Thanks for the coming help.
Best Regards,
David

Hi Siddharth,
I did check with another very experienced ABAP developer.
The solution was the same as what Arunima Rudra provided.
And I got a sample program which did work properly.
The headache is that the system events in my program still cannot be triggered even after I have all the same changes.
Anyway, I suggest you to try the solution as provided by Arunima Rudra.
It should work for 2 system events:
1, Customer clicks the cross button in top-right corner
2, Customer clicks the system icon in top-left corner and then select either: "Close"
For "Stop Session", it should not be handled by popup.
You can observe the same behavior in ALV sorting configuration popup.
Good luck!
Regards,
David

Similar Messages

  • How to close a popup window in a used component?

    Hi Experts,
    I have two applications in the same project, and they each have one component controller. Let they be component A and B. They have similar functionalities and screens. There is a popup window in A that I would like to use in B instead of creating a new popup window in B, so I added a used component of A in B in order to share the popup window. I am able to click a button in B to get a popup window from A successfully, but I am unable to close the popup window since the event has been created in A.
    Can anyone suggest me how to fix this please? I would really appreciate your help.
    Thanks,
    -Napadol

    Hi,
    You can either use the approach above, which is having an Attribute, type IWDWindow in B's Component Context. When you open the popup you store the reference. When you click close you get that reference back and destroy the window.
    Note, I'd suggest you to have your "View" with no Close Button. Then in Component A you create another View that has an UIViewContainer with your Popup View. You can code the Close code in Component A.
    This way you can do the same and have a code in Component B to close your window.
    Other way would be having it as a Component variable and using the Component Interface on A (create a Method) that goes to Component A and destroy that instance.
    Regards,
    Daniel

  • HOW TO CLOSE A POPUP WINDOW IN  SELECTION-SCREEN

    Hi,
      My problem is i had created a selection-screen with some field on initial screen and buttons on application tool bar.when i start my selection screen initial screen appears.now when i click a push button on application tool bar an selection-screen appears as window if i close that popup window i am going back to program.but i want to go back to initial screen.

    SET PF-STATUS  '<ZSTATUS>'
    CASE sy-ucomm.
    WHEN 'BACK'.
       LEAVE PROGRAM.
    ENDCASE.
    IT will work.
    regards,
    swarup

  • How to close a Popup window in WebUI

    Hi gurus,
    I created a custom component and launched it in WebUI as a popup. Aside from closing the popup window (via pressing the little "X" on the upper right) or firing the outbound plug 'leave', is there another way to programmatically close the popup? I have several buttons there, all of them must close the popup and resume processing to the calling view. I want to be able to tell which button was pressed with as minimal coding logic as possible.
    Cheers,
    Marc

    Hi Marc,
    You could give your various buttons unique names. You could redefine the do_handle_event method of the impl class. In this you could direct all these events to one event handler itself. In this event handler,if you read the htmlb_event_ex parameter,this contains an attribute called event name.Here,you can distinguish which button has been clicked and then fire your outbound plug while passing a collection with button name in it.
    Regards,
    Sarat

  • Close popup window for swf file

    The captivate movie plays properly in the popup window. The
    "Close Movie" command does not automatically close the popup window
    on some computers. Any sugestions?

    You said, "Some customers?" does it work for other customers?
    Is there a difference between the way two customers are viewing the
    file? Compare the two, and you may get some hints.
    thanks

  • How can we create a popup window for confirmation while clicking of button

    HI Friends,
    I am creating a application, In which I want to create a popup window for confirmation on clicking of a button.
    I also need two buttons on popup window i.e. 'Yes' & 'No'.
    On yes i want to perform some operation and on No i want to cancel that operation.

    Hi Narendra,
    try using the following code in ONACTION of ur button for popup :
    * Popup
       *  Generate Popup
        DATA lo_window_manager TYPE REF TO if_wd_window_manager.
        DATA lo_api_component  TYPE REF TO if_wd_component.
        DATA lo_window         TYPE REF TO if_wd_window.
        lo_api_component  = wd_comp_controller->wd_get_api( ).
        lo_window_manager = lo_api_component->get_window_manager( ).
        lo_window         = lo_window_manager->create_window(
          window_name          = 'W_POPUP'
         window_position = if_wd_window=>co_center
          message_display_mode = if_wd_window=>co_msg_display_mode_selected
          button_kind          = if_wd_window=>co_buttons_yesno
          message_type         = if_wd_window=>co_msg_type_none
          default_button       = if_wd_window=>co_button_yes
        DATA:  l_api TYPE REF TO if_wd_view_controller.
        l_api = wd_this->wd_get_api( ).
        " subscribe action for Ok button
        lo_window->subscribe_to_button_event(
                     button            = if_wd_window=>co_button_yes
                     action_name       = 'OK_POPUP'
                     action_view       = l_api
                     is_default_button = abap_true ).
        lo_window->open( ).
    regds,
    amit

  • Popup window for data selection in maintenance view

    Hi,
    How to create popup window for data selection in maintenance view. For example when you go to view v_t510 in se16, there you will see a popup window to enter values. after you enter the values in that window, then data related to those values that you entered in the popup window will displayed.
    How can we do that for the custom maintenance view?
    Thanks in advance for your help guys.
    Regards,
    Srinivas.

    In your custom maintainace view, if you select the Data browser / Table view maintainace under the tab "Maint Status" as "Dispaly maintanence allowed with restriction" than system will give you popup to restrict by selection.
    Regards,
    Naimesh Patel

  • How to create a popup window that shows detail information when press submi

    hi,all
    how to create a popup window that shows detail information when press the submit button ?I mean,when I press the button "Sumit"there will appear a popup window that shows the detail information you typed before.it means are u sure to submit,it is like some confirmation window.
    how to do achieve this ?help plz .
    best regards
    hlee
    Edited by: hlee on 2011-4-15 上午1:26

    hey,vee
    thanks for your response,but i had already read this thread before i put up a new question.any way,thanks.
    best regards
    hlee

  • How to display a popup window (DialogMessage) via code behind c#?

    hi all,
    How to display a popup window (DialogMessage) via code behind c#?
    I use sp 2013, in else case I want show the DialogMessage:
    if(condition)
    else
      HttpContext.Current.Response.Redirect(SPContext.Current.Web.Url+"/_layouts/TestError/ErrorDueDate.aspx");
    the above Redirect work good but I want show the error in a DialogMessage its better because of Usability and not redirect the user to new page...
    if not via code behind is there a better way to do it?
    thanks in advance
    Ahmad
    SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

    thanks for you answer,
    And yes I includ them via CDN, like below:
    <script
    type="text/javascript"
    src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script
    src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js"
    type="text/javascript"></script>
    <link
    href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css"
    rel="stylesheet" type="text/css"
    />
    But I get still the above error in my previes post.
    SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

  • How to create a popup window to load HTML page in AIR application without using any mx or spark?

    How to create a popup window to load HTML page in AIR application without using any mx or spark components?
    I need to load the HTML page in popup in AIR application without using any of the <mx> or <spark> components. I need to open in the application itself not in the browser.(If we use navigateToURL() it will open in th browser)

    Can we achieve this? can somebody help me on this scenario..

  • How can I enlarge the window for writing descriptions for pictures in iphoto 11?

    How can I enlarge the window for writing descriptions for pictures in iPhoto 11?

    That is not a feature of iPhoto - suggest to Apple - iPhoto Menu ==> provide iPhoto feedback.
    LN

  • Popup window for downloading a file

    Hi,
    my dear users want me to do the impossible possible. My code generates an XML file which in time I displayed it in an Iframe in the application. When the standard popup window shows up, they can either Open, Save or Cancel it. This was allright.
    Now they want the file in a new window displayed (when they press Open), because opening the file in the same window means they leave the application and after reading the file, they have to start the application again. I do it like this:
    The code works perfect only with the Alert instructions. Once I delete it, the window is opened and inmediately closed. The popup window for the file does not show up.
    Thanks for your ideas.

    here is the code sample.
    1. user clicks a button in the main page , which will generate xml and show the same in a new window.
    page attributes
    display_url     TYPE     STRING                                                                
    file_mime_type     TYPE     STRING                                                                
    flights     TYPE     FLIGHTTAB     Table for SFLIGHT
    wf_xml     TYPE     XSTRING
    layout:
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title=" " >
        <htmlb:form>
          <htmlb:textView text   = "Hello World!"
                          design = "EMPHASIZED" />
          <htmlb:button text    = "Press Me"
                        onClick = "myClickHandler" />
          <%
      IF  display_url IS NOT INITIAL.
          %>
          <script language="Javascript">
            window.open("<%= display_url%>").focus();
          </script>
          <%
      ENDIF.
          %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    oninputprocessing code.
    data: cached_response type ref to if_http_response.
    data: guid type guid_32.
    CALL TRANSFORMATION (`ID`)
                SOURCE flights   = flights[]
                RESULT XML wf_xml.
    file_mime_type = 'text/xml' .
    create object cached_response type cl_http_response exporting add_c_msg = 1.
      cached_response->set_data( wf_xml ).
      cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                         value = file_mime_type ).
      cached_response->set_status( code = 200 reason = 'OK' ).
      cached_response->server_cache_expire_rel( expires_rel = 180 ).
      call function 'GUID_CREATE'
        importing
          ev_guid_32 = guid.
      concatenate runtime->application_url '/' guid into display_url.
      cl_http_server=>server_cache_upload( url      = display_url
                                           response = cached_response ).
      return.
    2.user clicks a button in the main page , which will generate xml and present the user with a option to save locally or cancel. (in this case no additional browser window will be opened - only a popup and also the main page is not affected)
    layout code:
    same as option 1.
    oninputprocesing code.
    everything is same except change
    file_mime_type = 'text/xml' .
    to
    file_mime_type = 'application/oct-stream' .
    Note: wf_xml is of type xstring which holds the xml stream.
    Regards
    Raja
    Message was edited by: Durairaj Athavan Raja

  • How can I allow popup window within secured site?

    How can I allow popup window wlthin NWA People.com(secured site)?
    Ineed to see Access.

    You can allow pop-ups in Safari via Settings > Safari > Block Pop-Ups set 'off'

  • New feature in SP5: Closing a popup window raises an event

    I'm trying to use this new feature that came in SP5, "Popup Enhancement - Closing a popup window raises an event to the containing iView".  Can anyone give me an example of how this works?  In the configure element for the popup, there is a new field called, 'Closure Event'.  I though by adding by event to this new field, that the event will be raised after closing the popup window, but it didn't.  What am I doing wrong?

    Hi,
    you should add an end-point to the popup and/or use the "Close" action.
    there's a difference between when closing the popup implicitly or explicitly

  • No handler for system event CustomHourlyEvent has been registered

    I have written a scheduled event to trigger on daily basis using CustomDaily event mentioned in the ScheduledEvent component. I have referred HowToComponents in order to write this filter. But I am getting following error in my logs and my scheduled event is not getting executed.
    <!-- IDCLOG: Error: (8/23/12 12:01 PM) !csScheduledEventUnhandled,CustomHourlyEvent!$stack trace -->
    <tr><td>Error</td><td>8/23/12 12:01 PM</td><td>No handler for system event CustomHourlyEvent has been registered. stack trace [ <a href="javascript:if(typeof show!='undefined')show('0.31115227955456604')">Details</a> ]
    <div id="0.31115227955456604" style="display:none;" class="details"><pre><code>An error has occurred. The stack trace below shows more information.
    !csScheduledEventUnhandled,CustomHourlyEvent!$stack trace
    !$stack trace
    at intradoc.common.IdcLogWriter.doMessageAppend(IdcLogWriter.java:85)
    at intradoc.common.Log.addMessage(Log.java:279)
    at intradoc.common.DefaultReportHandler.message(DefaultReportHandler.java:508)
    at intradoc.common.DefaultReportDelegator.message(DefaultReportDelegator.java:140)
    at intradoc.common.Report.messageInternal(Report.java:172)
    at intradoc.common.Report.message(Report.java:145)
    at intradoc.common.Report.error(Report.java:408)
    at intradoc.server.ScheduledSystemEvents.processWork(ScheduledSystemEvents.java:600)
    at intradoc.server.ScheduledSystemEvents.run(ScheduledSystemEvents.java:489)
    at java.lang.Thread.run(Thread.java:619)
    </code></pre></div></td></tr>
    Please let me know if anybody has countered the same problem while writing ScheduledEvent filter.

    I was able to solve this issue by updating the state of the event. HowToComponents - ScheduledEvent has the following method:
    * Update the state of the event. Must be done at least once to tell the content server
    * when the scehduled event is finished.
    protected void update(String action, String msg, Workspace workspace) throws ServiceException, DataException
         long curTime = System.currentTimeMillis();
         ScheduledSystemEvents sse = IdcSystemLoader.getOrCreateScheduledSystemEvents(workspace);
         sse.updateEventState(action, msg, curTime);
    Making a call to update() when my scheduled event ran solved the issue for me.

Maybe you are looking for

  • Creation of application in designer 2000 ver 6

    Following messgae is shown while try to create new appliocation in designer 2000. ORA-6502 PL/SQL numeric or value error. The detail error is follows. RME-00222: Failed to dispatch operation to Repository RME-02124: Failed to execute SQL statement: d

  • Strange behaviour after update to 10.4.7

    Soon after updating to 10.4.7 (via Software Update) my MacBooks seems to be defective. After updating to 10.4.7 I heard the "whining" for the very first time on my MacBook. It cames from the area of the power supply connector. But that's not my main

  • Display with negative tint

    I have a MacBook and the display is much different and an option that i cannot find on the settings. The display on my screen has a negative view to it. As if you were looking at a picture film. I have all the current updates on it, the hard drive is

  • Email Notification of Items Awaiting Approval

    Is there any way to email the approver when a user adds an item that requires approval? I'm thinking that might be a good portlet if that functionality doesn't already exist.

  • Unlocking protected doucument on iPad

    How do I unlock a protected document on the iPad using Adobe Reader v10.3? Am I doing something wrong? THe document is a school text book and the program is not allowing me to enter the unlock infromation.