Display POPUP in MIGO

Hi Gurus,
i have requirement of displaying popup while saving MIGO.
i have tried by implementing the user exit MB_CF001.
but it gives a dump saying POSTING_ILLEGAL_STATEMENT
can anyone guide me how to implement this?
points will be rewarded.

Hi Kiran,
Please try giving an information message'Type I' or success message'Type S' if it suits your requirement...in addition we can also try creating instance of the BADI ..MB_MIGO_BADI and give an information in the proper method if you are not already implementing the same....
Regards
Byju

Similar Messages

  • Display popup box to enter the name for batch input

    Hi Experts,
    I am working on the ALV display.'
    I am giving two push buttons on the ALV Screen in the application toolbar.(Ex: 1.Online 2.Batch Job).
    If the user will select the ONLINE the process is going good.
    If the user will select the BATCH JOB it has to display popup box to enter the BATCH name and with that batch name i have to create the batch for the program in SM35.
    Can any one please help me in doing so.
    (to display popup box to enter the BATCH name and with that batch name i have to create the batch for the program in SM35).
    Thanks in Advance,
    Kruthik

    Hi,
    You can display a popup box by creating the screen and screen elements in the screen painter and use
    CALL SCREEN scr STARTING AT x1 y1 ENDING AT x2 y2.
    X and Y are the coordinates of the screen you want to display as a pop up.(used to manipulate the size of the pop up screen/window)
    Hope it helps.

  • How to display Popup message in ABAP Web Dynpro

    Hi All,
    Is it possible to display popup messages like SAP to collect information from the user? is it possible to display information messages like SAP? If possible, Please let me know how to handle in Web Dynpro.
    Thanks & Regards,
    IA Kumar.

    Agree with the two firend on my head :).
    you can find a demo from:   SWDP_TEST(package)-->   WDR_TEST_POPUPS also.
    I have a lazy idea, two step:
    1. create a popup function module;
    2.call the function module;
    function module:--Begin--
    FUNCTION ZFUNM_CONFIRM .
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(P_API) TYPE REF TO  IF_WD_VIEW_CONTROLLER
    *"     REFERENCE(P_CMP_API) TYPE REF TO  IF_WD_COMPONENT
      DATA:
        L_WINDOW_MANAGER      TYPE REF TO IF_WD_WINDOW_MANAGER,
        L_CMP_API             TYPE REF TO IF_WD_COMPONENT,
        L_API_MAIN            TYPE REF TO IF_WD_VIEW_CONTROLLER,
        L_POPUP               TYPE REF TO IF_WD_WINDOW,
        L_TEXT                TYPE STRING_TABLE.
       wd_this               type ref to IF_MAIN,
       wd_comp_controller    TYPE REF TO IG_COMPONENTCONTROLLER.
       l_api_main = wd_this->wd_get_api( ).
    l_cmp_api = wd_comp_controller->wd_get_api( ).
      L_WINDOW_MANAGER = P_CMP_API->GET_WINDOW_MANAGER( ).
      APPEND 'POPUP text' TO L_TEXT.
      L_POPUP = L_WINDOW_MANAGER->CREATE_POPUP_TO_CONFIRM(
                  TEXT                   =  L_TEXT
                  BUTTON_KIND            = 4
                  MESSAGE_TYPE           = 1
                  CLOSE_BUTTON           = ''
                  WINDOW_TITLE           = 'messagebox Title'
                 WINDOW_LEFT_POSITION   = L_CONF_CONTEXT-WINDOW_LEFT_POSITION
                 WINDOW_TOP_POSITION    = L_CONF_CONTEXT-WINDOW_TOP_POSITION
                 WINDOW_POSITION        = L_CONF_CONTEXT-WINDOW_POSITION
                 WINDOW_WIDTH           = L_CONF_CONTEXT-WINDOW_WIDTH
                 WINDOW_HEIGHT          = L_CONF_CONTEXT-WINDOW_HEIGHT
      L_POPUP->SUBSCRIBE_TO_BUTTON_EVENT(
              BUTTON             = IF_WD_WINDOW=>CO_BUTTON_YES
              ACTION_NAME        = 'YES'
              ACTION_VIEW        = P_API
              IS_DEFAULT_BUTTON  = ABAP_TRUE ).
      L_POPUP->SUBSCRIBE_TO_BUTTON_EVENT(
              BUTTON             = IF_WD_WINDOW=>CO_BUTTON_NO
              ACTION_NAME        = 'NO'
              ACTION_VIEW        = P_API
              IS_DEFAULT_BUTTON  = ABAP_FALSE ).
      L_POPUP->OPEN( ).
    ENDFUNCTION.
    function module:--End--
    call the function module  Begin----
    METHOD ONACTIONDELETE .
      DATA:
        L_API                               TYPE REF TO IF_WD_VIEW_CONTROLLER,
        L_CMP_API                           TYPE REF TO IF_WD_COMPONENT,
        NODE_ZTAB_PROJ                      TYPE REF TO IF_WD_CONTEXT_NODE,
        ELEM_ZTAB_PROJ                      TYPE REF TO IF_WD_CONTEXT_ELEMENT,
        STRU_ZTAB_PROJ                      TYPE IF_ZV_PROJ_DISPLAY=>ELEMENT_ZTAB_PROJ,
        SELECTED_ELEM                       TYPE  WDR_CONTEXT_ELEMENT_SET .
      navigate from <CONTEXT> to <ZTAB_PROJ> via lead selection
      L_API = WD_THIS->WD_GET_API( ).
      L_CMP_API = WD_COMP_CONTROLLER->WD_GET_API( ).
      CALL FUNCTION 'ZFUNM_CONFIRM'
        EXPORTING
          P_API     = L_API
          P_CMP_API = L_CMP_API.
      IF WD_THIS->A_DEL = ''.
        EXIT.
      ENDIF.
      NODE_ZTAB_PROJ = WD_CONTEXT->GET_CHILD_NODE( NAME = IF_ZV_PROJ_DISPLAY=>WDCTX_ZTAB_PROJ ).
      IF ( NODE_ZTAB_PROJ IS INITIAL ).
        EXIT.
      ENDIF.
      ELEM_ZTAB_PROJ = NODE_ZTAB_PROJ->GET_LEAD_SELECTION( ).
      ELEM_ZTAB_PROJ->GET_STATIC_ATTRIBUTES(
        IMPORTING
          STATIC_ATTRIBUTES = STRU_ZTAB_PROJ ).
      DELETE FROM ZTAB_PROJ
      WHERE COMCODE = STRU_ZTAB_PROJ-COMCODE
        AND PROJID  = STRU_ZTAB_PROJ-PROJID.
      WD_THIS->ONACTIONSELECT(
        WDEVENT = WDEVENT                        " Ref to cl_Wd_Custom_Event
    LOOP AT selected_elem .
    ENDLOOP.
      ELEM_ZTAB_PROJ
      @TODO handle not set lead selection
      alternative access  via index
      Elem_Ztab_Proj = Node_Ztab_Proj->get_Element( Index = 1 ).
      @TODO handle non existant child
      if ( Elem_Ztab_Proj is initial ).
      endif.
      get all declared attributes
    ELEM_ZTAB_PROJ->GET_STATIC_ATTRIBUTES(
       IMPORTING
         STATIC_ATTRIBUTES = STRU_ZTAB_PROJ ).
    ENDMETHOD.
    call the function module  End----

  • Hi, coding to display popup window after first alv grid display

    hi
    can anybody please send coding to display popup window after first alv grid display i.e.  first the prog shows grid display and from grid display the user select the field and on the basis of field value i need to show pop up window in the first secondary window and then third popup window.
    thanx
    rocky

    Hi rocky,
    here is the sample code .hope this helps you.
    TYPE-POOLS : SLIS.
    DATA : GT_OUTTAB TYPE VBAK OCCURS 0,
           GS_PRIVATE TYPE SLIS_DATA_CALLER_EXIT,
           GS_SELFIELD TYPE SLIS_SELFIELD.
    DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
           WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    DATA : ITAB TYPE TABLE OF SLIS_SELFIELD,
           WA_ITAB LIKE LINE OF ITAB.
    START-OF-SELECTION.
    PERFORM POPULATE_GT_OUTTAB.
    PERFORM GET_POPUP.
    PERFORM POPULATE_ITAB.
    PERFORM FIELDCAT.
    PERFORM DISPLAY_DETAILS.
    *&      Form  FIELDCAT
          text
    -->  p1        text
    <--  p2        text
    FORM FIELDCAT .
    LOOP AT ITAB INTO WA_ITAB.
    WA_FIELDCAT-FIELDNAME = 'TABINDEX'.
    WA_FIELDCAT-TABNAME = 'WA_ITAB'.
    WA_FIELDCAT-COL_POS = 1.
    WA_FIELDCAT-SELTEXT_L = 'TABLE INDEX'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'SEL_TAB_FIELD'.
    WA_FIELDCAT-TABNAME = 'WA_ITAB'.
    WA_FIELDCAT-COL_POS = 2.
    WA_FIELDCAT-OUTPUTLEN = 20.
    WA_FIELDCAT-SELTEXT_L = 'FIELD NAME'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'VALUE'.
    WA_FIELDCAT-TABNAME = 'WA_ITAB'.
    WA_FIELDCAT-COL_POS = 3.
    WA_FIELDCAT-SELTEXT_L = 'FIELD VALUE'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    ENDLOOP.
    ENDFORM.                    " FIELDCAT
    *&      Form  POPULATE_GT_OUTTAB
          text
    -->  p1        text
    <--  p2        text
    FORM POPULATE_GT_OUTTAB .
    SELECT * FROM VBAK
           UP TO 10 ROWS
           INTO TABLE GT_OUTTAB.
    ENDFORM.                    " POPULATE_GT_OUTTAB
    *&      Form  GET_POPUP
          text
    -->  p1        text
    <--  p2        text
    FORM GET_POPUP .
    CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
      EXPORTING
       I_TITLE                       = 'SALES ORDER'
      I_SELECTION                   = 'X'
      I_ALLOW_NO_SELECTION          =
       I_ZEBRA                       = 'X'
      I_SCREEN_START_COLUMN         = 0
      I_SCREEN_START_LINE           = 0
      I_SCREEN_END_COLUMN           = 0
      I_SCREEN_END_LINE             = 0
      I_CHECKBOX_FIELDNAME          =
      I_LINEMARK_FIELDNAME          =
      I_SCROLL_TO_SEL_LINE          = 'X'
        I_TABNAME                     = 'SALES ORDER'
        I_STRUCTURE_NAME              = 'VBAK'
      IT_FIELDCAT                   =
      IT_EXCLUDING                  =
      I_CALLBACK_PROGRAM            =
      I_CALLBACK_USER_COMMAND       =
       IS_PRIVATE                    = GS_PRIVATE
    IMPORTING
       ES_SELFIELD                   = GS_SELFIELD
      E_EXIT                        = G_EXIT
      TABLES
        T_OUTTAB                      = GT_OUTTAB
    EXCEPTIONS
       PROGRAM_ERROR                 = 1
       OTHERS                        = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " GET_POPUP
    *&      Form  POPULATE_ITAB
          text
    -->  p1        text
    <--  p2        text
    FORM POPULATE_ITAB .
    WA_ITAB-TABNAME = GS_SELFIELD-TABNAME.
    WA_ITAB-TABINDEX = GS_SELFIELD-TABINDEX.
    WA_ITAB-SEL_TAB_FIELD = GS_SELFIELD-SEL_TAB_FIELD.
    WA_ITAB-VALUE = GS_SELFIELD-VALUE.
    APPEND WA_ITAB TO ITAB.
    ENDFORM.                    " POPULATE_ITAB
    *&      Form  DISPLAY_DETAILS
          text
    -->  p1        text
    <--  p2        text
    FORM DISPLAY_DETAILS .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
      I_CALLBACK_PROGRAM             = ' '
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
      I_STRUCTURE_NAME               =
      IS_LAYOUT                      =
       IT_FIELDCAT                    = IT_FIELDCAT
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
      IT_EVENTS                      =
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      TABLES
        T_OUTTAB                       = ITAB
    EXCEPTIONS
       PROGRAM_ERROR                  = 1
       OTHERS                         = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " DISPLAY_DETAILS
    award points if helpful.
    regards,
    deepthi reddy

  • Custom Miro Popup in MIGO.

    At the time of preparing 105 MIGO of local purchase. We get  field of Custom MIRO in local purchases. In previous same transaction we did not get such field of custom MIRO.How this popup of custom MIRO comes?
    Edited by: Pritesh kumar on Aug 17, 2010 4:17 PM

    HI,
    Go to XK02 in vendor change, after that in purchase view, check there....
    in Schema grp that vendor has the import schema grp or not ?
    if yes...then change to local schema grp..
    Hope Help U !
    Regards,
    Pardeep malik

  • Firefox won't display "popup windows"

    What I mean when I say popup windows are for example you go to UPS.com, you fill in your tracking number then you hit the display proof of delivery, a smaller window usually pops up showing that information, for me, I just get a huge blank gray screen. It also happens when I go to a support website for example and click on live chat, that window that should be popping up doesn't display. Tried reinstalling firefox and that didn't seem to fix it either.
    == This happened ==
    Every time Firefox opened

    see: [["Firefox is already running but is not responding" error message - How to fix it|"Firefox is already running but is not responding" error message - How to fix it]]

  • Display popup message on SRM portal

    Hi,
    I need to display a popup message on the SRM portal while doing a PO confirmation. Can you please guide me how to do it?
    Do I need to modify the templates or can it be done using a BADI?
    Thanks in advance.

    Hi,
    Try using CHANGE badi.
    See these related threads also for more pointers:
    Error in pop up (dialog box)
    Customized Pop-up window in Shopping Cart
    POPUP window in shopping cart during Order
    BR,
    Disha.

  • How to display popup at the web interface side while checking a sh cart

    Hi Experts,
    I have a requirement to get the popup while checking the shopping cart..
    I have implemented the badi BBP_DOC_CHECK_BADI..(Classic scenario)
    In this badi , i am using one RFC FM to check the item details availability in the backend..I am getting the desired functionality. But I have a specific requirement to show popup when the items in the shopping cart are not available in the inventory that is maintained the backend R/3 system..
    Can you please advise me how to write a popup in the web interface when stock is not available for a perticular item? Any HTML code available for the same?
    Please advise me?
    2) How to change status of an shopping cart item or else need to display some customized information for the item like 'This Item is in back order status '.
        The above situation arises when we are trying to check a shopping cart item status after ordering the shopping cart.
    thank you!!

    Hi Ravindranath,
    Try to add a standard message like:
    message e100(ZBBP_SC) into lf_dummy.
    clear ls_message.
    ls_message-msgty       = sy-msgty.
            ls_message-msgid         = sy-msgid.
            ls_message-msgno     = sy-msgno.
            shift ls_message-msgv1 left deleting leading '0'.
            select single text from t100 into ls_message-message
                                        where sprsl = sy-langu
                                          and arbgb = sy-msgid
                                          and msgnr = sy-msgno.
            append ls_message to et_messages.
    Regards,
    Marcin Gajewski

  • Display/popup a message in Page designed in 11.5.10.2 OA Framework

    Hi All,
    Iam trying to develop a page using jdeveloper and I would like to display or popup a message when a button/link is clicked. Does anyone suggest me how can I do this ?
    Thanks
    Skumar

    Skumar,
    OAF question are better out here {forum:id=210}
    Timo

  • Tab displayed twice in MIGO screen when created by a BADI

    Hello all
    i have created a tab in MIGO transaction  using the BADI  MB_MIGO_BADI  n the method PBO_DETAIL. but the tab is displayed twice . In debugging i saw the badi is being called twice. But i 'm not understanding why the badi is called twice  .
    can anybody give me reason on why the tab is displayed twice..
    thanks in advance
    pavan

    Hi,
    I have not used this BADI before.
    Edit: See the sample code in method "PBO_DETAIL".
    data: ls_extdata type migo_badi_example_screen_field.
    * This check is obligatory, otherwise the program flow is incorrect
    * (If there would be more than one implementation of BAdI MB_MIGO_BADI,
    *  only one subscreen would be displayed).
      check i_class_id = gf_class_id.
    Have you added this code in your implementation?
    Regards
    Vinod
    Edited by: Vinod Kumar on Aug 13, 2010 4:32 PM

  • Display Popup/message when refresh/close browser window

    Hi all,
    In normal ABAP programing when we exit from any transaction, a popup display with text "Are you sure to exit". I have some doubt to get this functionality in WDA.
    I am calling a popup in WDDOEXIT method of the Comp controller and when I do refresh/close the application, this method will triggered, but it does not opens a popup as the application relaod.
    Is there any way to get this functionality?
    I have also checked the thread [ABAP WebDynPro Refresh (F5) issue|ABAP WebDynPro Refresh (F5) issue;.

    >
    SANKET SETHI wrote:
    > Thanks for the reply. I have already checked this help page. Is there something in WDA iteself?
    Short answer - no.  Only the work proctect functionaltiy that can be used in the portal or the NetWeaver Business Client.  By the time WDDOEXIT fires, it is too late to produce any rendering output or stop the browser from closing.

  • Error when clicking other button after displaying Popup window

    Hi,
    I'm developing a custom page which calls a popup window in r12, below is the error encountered.
    Error: Cannot Display Page
    You cannot complete this task because you accessed this page using the browser's navigation buttons (the browser Back button, for example).
    To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.
    On my base page, I have other buttons like Save, Back, and the button to invoke the popup window. I can display the popup window without error, but when i clicked on the base page's other buttons after invoking the popup window, the error above is shown. I'm not clicking any browser's navigation buttons. Please let me know how to solve this error.
    Thanks!

    Hi,
    Just want to update...
    The error occurred because I have isBackNavigationFired checking, this becomes true when clicking the other buttons in the base page after displaying the popup. Is there a workaround where I can make this work without removing my back browser navigation checking?
    Thanks!

  • Firefox for Android long press not displaying popup menu.

    Often when I Iong press a link, the popup menu doesn't display. Not matter how long I hold the link or how many times I try, nothing happens.
    I'm on Android 4.0.3

    Updated Firefox to the latest version (v37) and it does seem better however, it still isn't 100%. Tried duckduckgo for instance and a long press didn't work.
    Oddly, if I visit a link on the page and hit the back button once it's loaded, long pressing nearly always starts working.

  • Display popup inside applyResult method of ovs?

    Hi,
    I have implemented an object value selector for a field.
    Now what I want to do is to display a popup window when   the user selects a row inside ovs popup (ie. inside the applyResult method).
    The popup window (with ok and cancel buttons) is being displayed, but when I try to destroy it inside the event handler for a popup ok or cancel buttons, the exception gets thrown. The exception says something about No item found on the list??
    I guess it has something to do with trying to display it inside applyresult method?
    The details:
    Popup is being displayed inside applyResult method of a customController (MaterialIndexCust)
         IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("ConfirmExpandSpecWindow");
         IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
         window.setWindowPosition(WDWindowPos.CENTER);
         window.setTitle("Question");
         wdContext.currentPopupElement().setWindowInstance(window);
         window.show();
    Here's the code from the event handler which is from the same custom controller :
            IWDWindow window = wdContext.currentPopupElement().getWindowInstance();
            window.destroyInstance();
    The actual event had to be defined in another controller.
    I've tried these things with IWDConfirmationDialog as well  as my custom dialog.
    Any help is appreciated.
    Regards,
    Ladislav

    Here's the exception:
    java.util.NoSuchElementException
         at java.util.LinkedList.remove(LinkedList.java:579)
         at java.util.LinkedList.removeFirst(LinkedList.java:131)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.popModalWindow(ApplicationWindow.java:162)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doClose(WebDynproWindow.java:400)
         at com.sap.tc.webdynpro.clientserver.window.Window.doClose(Window.java:195)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handle(ApplicationWindow.java:288)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handleWindowEvents(ApplicationWindow.java:260)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:149)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:707)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:661)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:229)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

  • Display popup window when closing "X" web browser

    Hi All - how I can display a popup window when user press "X" from web browser.
    I know how to create popups windows but where I can code the popup window when the user close the browser?
    e.g. I press at the top right the web browser "X" to close the browser, how I can display a popup asking if they want to SAVE the data before closing the browser.
    thanks!
    -Jason PV

    Hi Manas,
    are you sure?
    If you close the browser window - even if you have set the portal work protect mode, set the app as dirty and running the app in the portal - the windows closes without any complaint.
    If you were in the portal and tried to navigate away from the page, that would be a different thing - but a browser close is just that. You can capture the onUnload event of the browser window (not in WD - but JS) but you have no way of detecting that it is not just a page refresh.
    Do a search for "intercepting browser close events" via google etc, to see just how tricky to build a solution would be.
    So I'd say - no ability to stop browser close events - or to react to them - but yes to portal navigation type event within the portal. And further to that - I'd suggest using the FPM work protect mode interface to help you take advantage of the Portal work protection.
    Cheers,

Maybe you are looking for