Close previous FPM application on navigation to next one using CL_FPM_HR_NAVIGATION~NAVIGATE

Hello,
My requirement is to close the previous FPM application on navigation to next FPM application configured in launchpad.
I am navigating to my next FPM application using CL_FPM_HR_NAVIGATION~NAVIGATE but it navigates to next FPM in new window and old one remains open.
Is there any way I can close the previous window and then navigate or vice versa?
I tried firing firing FPM_CLOSE event using if_fpm~event_by_event_id but it after calling navigate method but it doesnt work. This doesnt open the new application instead tries to close the previous application with message "Application has closed and you can close the browser now"
Please help.
Thanks in advance.

Hi,
I have a similar requirement. Have you found a solution?
Thanks and regards.

Similar Messages

  • Close FPM Application

    Hi Experts!
    I have a FPM application and i need to close it automaticly. Is it possible to close the FPM Application and the corresponding window by a method?
    Thanks
    Jan

    Hi,
    You can use the followign code to raise FPM event -
    wd_this->mr_fpm->raise_event_by_id( iv_event_id = cl_fpm_event=>gc_event_close )
    here wd_this is controller reference
    and mr_fpm is FPm reference.
    Regards
    manas dua

  • Exit from ABAP FPM application to anothor WD application in same window

    Hello experts,
    If anybody can please suggest how to exit an FPM application to another WD component without using suspend mode.
    I did following coding in the process event but this opens target wd abap application in the same window. But the problem is below code uses suspend method for FPM application hence there are performance issues.
    if io_event->mv_event_id = 'BACK_EMP_PRF'.
    DATA: lv_launch TYPE FPM_S_LAUNCH_URL.
    DATA: lo_navigate_to TYPE REF TO if_fpm_navigate_to.
    lo_fpm = cl_fpm_factory=>get_instance( ).
    lo_navigate_to = lo_fpm->get_navigate_to( ).
    lv_launch-HEADER_TEXT = ''.
    lv_launch-URL = lv_url (lv_url is target url for WD application)
    *USE_SUSPEND_RESUME = 'X'.
    *PARAMETER
    lo_navigate_to->LAUNCH_URL( is_url_fields = lv_launch ).
    endif.
    Is there any API to open new application in the same window without suspend_resume method.
    Thanks in advance
    Umang

    Hi Baskaran,
    Thanks for a reply. I have done following things. I added a toolbar button in EDIT step and  I have given  its FPM ID "EMP_PRF_BACK".
    Then on the process event method I have coded as following.
    if io_event->mv_event_id = 'BACK_EMP_PRF'.
    DATA: lv_launch TYPE FPM_S_LAUNCH_URL.
    DATA: lo_navigate_to TYPE REF TO if_fpm_navigate_to.
    lo_fpm = cl_fpm_factory=>get_instance( ).
    lo_navigate_to = lo_fpm->get_navigate_to( ).
    lv_launch-HEADER_TEXT = ''.
    lv_launch-URL = 'http://www.google.com/'.
    *USE_SUSPEND_RESUME = ''.
    *PARAMETER
    lo_navigate_to->LAUNCH_URL( is_url_fields = lv_launch ).
    endif.
    for the test purpose I am trying to open google. It open the link but It opens in a separate window. I want it to open in the same window. Please suggest how to do it.
    Thanks in advance
    Umang

  • Navigation from FPM application to another FPM application

    Hello Experts,
    I have a requirement where there are two different applications with FPM configuration. On click of a button in one of those applications, i should close that application and open the other FPM application in the same window.
    I tried using the exit plug and it worked when the FPM was not configured for the first application alone (and 2nd application has FPM enabled). But, when i use the FPM configuration for the first application, the navigation is not happening.
    Is it possible to navigate between two FPM applications in a single wondow? If so please tell me how to do it.
    Thanks in advance,
    Seshadri

    Hello Sheshadri and Toolika,
    Here is a code snippet, which might help you:
    ON BUTTON ACTION:
    DATA : ls_navigation_key   TYPE             fpm_s_navigation_key,
                lr_navigation          TYPE REF TO IF_FPM_NAVIGATION,
                lv_target                LIKE LINE OF mr_navigation->mt_targets,
                ls_app_param        TYPE             apb_lpd_s_params,
          ls_navigation_key-key1 = lc_role.
          ls_navigation_key-key2 = lc_instance_a.
          lr_navigation = mr_fpm->get_navigation( ls_navigation_key ).
          READ TABLE lr_navigation->mt_targets
               INTO lv_target WITH KEY alias = (You can give a alias name in the LPD customizing)
          IF sy-subrc = 0.
            ls_app_param-key   = (Application Parameter Key).
            ls_app_param-value = (Application Parameter value).
            APPEND ls_app_param TO lt_app_param.
            CALL METHOD mr_navigation->navigate
              EXPORTING
                iv_target_key             = lv_target-key
                it_application_parameters = lt_app_param.
    Hope this helps !
    Regards
    Rohan

  • Restarting or Reloading Webdynpro ABAP(FPM) application in Portal

    Hi All,
    I have created a ABAP webdynpro application in FPM framework which is run in the portal. The application has got a roadmap that contains 7 steps. In the last step there is a button 'save and exit'. When the user reaches the last step and presses the 'save and exit' button, one popup will appear with a 'close' button. When the user pressed that 'close' button, the application should restart i.e., the user should be taken to the first step. I tried using the method 'NAVIAGATE_ABSOLUTE' where I hardcoded the PCD path which takes the user to the first step but it is not helpful ( All Relative navigation links and Detailed navigation links were missing in portal ) in my case as it is not actually restarting the application. Could anyone help me out in getting the application restarted in the portal on click of a button.
    Note: We tried with Exit-Plug as well, which is not applicable ( helpful) for portal integration.
    Please suggest.
    Thanks
    Deepak

    Hi Deepak,
    Well we have few webdynpro applications with multiple views, by design, on the last step after save, we disable all other button and display a new button called 'RESTART' with only available choice. On click of this button
    1. We initialize all the data of component.
    2. Clear stored variable parameters & internal table used by assistance class
    3. if everything was fine fire navigation to the FirstDefaultView of the webdynpro application.
    Thus its almost restart of the application.
    So design wise have a method  INIT_COMP  in the component controller of webdynpro component. and then at the last step when call to RESTART is made reinitialize all the data of your webdynpro component.
    method onactionrestart.
    wd_assist->reinit_my_obj_tables( ).
    wd_this->fire_to_v_Start_plg(  ).
    endmethod
    Greetings
    Prashant

  • NPE error when navigating to next page based on lov selection

    hi there am having problem whn navigating to next page based on lov selection,when i select value and click the button to navigate am geting NPE ERROR
    {code}
    <DCUtil> <findSpelObject> [598] DCUtil, returning:oracle.jbo.uicli.binding.JUFormBinding, for uam_view_pageDefs_SelectOrgPageDef_WEB_INF_Updatetaskflow_definition_xml_Updatetaskflow_definition
    <DCIteratorBinding> <releaseDataInternal> [599] Releasing iterator binding:variables
    <DCIteratorBinding> <releaseDataInternal> [600] Releasing iterator binding:UpdUamOrganisationLovIterator
    <DCIteratorBinding> <releaseDataInternal> [601] Releasing iterator binding:UpdUamOrganisation1Iterator
    <DCIteratorBinding> <releaseDataInternal> [602] Releasing iterator binding:UamUserdetailsViewVo1Iterator
    <XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
    javax.servlet.ServletException: java.lang.NullPointerException
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
        at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
        at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
        at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
        at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
        ... 38 more
    Caused by: java.lang.NullPointerException
        at showSelectedOrg(OrgDetails.java:2455)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.el.parser.AstValue.invoke(Unknown Source)
        at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
        at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
        ... 45 more
    THIS IS THE LINE AM GETING THE ERROR
    method.getParamsMap().put("rowKey", newVal);
    <af:selectOneChoice value="#{bindings.Orgid1.inputValue}"
                                  required="true"
                                  id="soc1" autoSubmit="true" valuePassThru="true"
                                  contentStyle="width:145px">
                <f:selectItems value="#{bindings.Organisationid.items}" id="si1"/>
              </af:selectOneChoice>
    <af:commandButton text="UpdateOrganisation"
                                id="cb1"
                                action="#{pageFlowScope.addMember.showSelectedOrg}"/>
    public String showSelectedOrg() {
    /* if(getorgids() == null ||getorgids().equals(null)){
    JSFUtils.addFacesErrorMessage("Select Atleast One Organisation");
    JSFUtils.showFacesErrorMessage("Select Atleast One Organisation");
    BindingContext lBindingContext = BindingContext.getCurrent();
    BindingContainer bindings = lBindingContext.getCurrentBindingsEntry();
    // get the list binding for the Organisation lov
    JUCtrlListBinding list = (JUCtrlListBinding)bindings.get("Organisationid");
    // get the selected index from the list which is stored in the Orgidd1 attribute
    AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("Orgid1");
    Integer selid = (Integer)attr.getInputValue();
    // load the listdata
    Object row = list.getDisplayData();
    // get the selected row from the list
    Row lFromList = (Row)list.getValueFromList(selid);
    // from the row we get the PK the orgnasationId
    Object lAttribute = lFromList.getAttribute("Organisationid");
    Object orgname = lFromList.getAttribute("Organisationname");
    Number newVal = (Number)lAttribute;
    String neworg = (String)orgname;
    _logger.info("Information: selected Organisation = " + newVal);
    System.out.println("neworg " + newVal);
    System.out.println("testorg " + neworg);
    selectedState = neworg;
    // get the MethodAction for setCurrentRowWithKeyValue
    OperationBinding method = bindings.getOperationBinding("setCurrentRowWithKeyValue");
    // set hte needed parameter as the organisation id
    method.getParamsMap().put("rowKey", newVal);
    method.execute();
    // after execution check for errors
    List errors = method.getErrors();
    Exception ex = (Exception)errors.get(0);
    FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, ex.getMessage(), "Select Atleast One Organisationtest");
    FacesContext.getCurrentInstance().addMessage(null, msg);
    // keep on page in case of an error
    // navigate to the next page
    return "show";
    {code}
    am in jdeveloper 11.1.1.6.0

    adf009, please read the post I posted the link to in my previous replay. The old code format tag don't work in the new forum!
    Still the same error. The stack trace still points to it, you only need to read it carefulle
    javax.faces.el.EvaluationException: java.lang.NullPointerException
        at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
    Caused by: java.lang.NullPointerException
        OrgDetails.showSelectedOrg(OrgDetails.java:2456)
    The origin is
    method.execute();
    and the real reason is
    MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51);
    What does it tell you?
    Timo

  • How to call FPM application from a WD ABAP view

    Hi
    My requirement is to navigate to an FPM application on click of a button in a WD component. And along with the navigation I need to pass parameters (internal table) along with it.
    Can anyone suggest ways to achieve this. And also how to get the parameter values in FPM application.
    Regards
    Prashant

    Dear Prashant
    Check this:
    [Passing Data to Webdynpro from normal module pool screen;
    Kind Regards
    /Ricardo Quintas

  • Portal Workprotect in Talent Profile - WebDynpro ABAP FPM application

    We are trying to implement Workprotect in ESS - Talent Profile application (HRTMC_EMPLOYEE_PROFILE). The requirement is that when user had entered data in either Internal work experience, External Work experience or other tabs; before he has saved the data, if the user clicks on some other link in portal or try to close the window, Portal work protect that is enabled should prompt the user to save the data or risk losing data.
    What has been done so far:
    1. Enabled Workprotect on Portal:
    Step 1: In the portal, go to System Administration -> System
    Configuration -> Service Configuration.
    Step 2: In the portal catalog, Select
    application "com.sap.portal.epcf.loader" and open the properties for
    service "epcfloader" for editing
    Step 3: Set property workprotect.mode.default = 3
    Step 4: Save -> Restart service
    Now, Portal Work protect is enabled.
    2. On the Talent application end, I have seen many posts in forum & FPM related workprotect documentation. But, it is not clear as to how this actually works when it comes to FPM application.
    The documents says FPM allows application to make use of work protect
    mode offered by Portal. To achieve this, the application must u2018tellu2019 the
    FPM whether it contains unsaved
    (u201Cdirtyu201D) data. For this, the FPM provides the Web Dynpro Interface
    IF_FPM_WORK_PROTECTION. In the is dirty method, you have to put
    METHOD is_dirty.
    if * component contains unsaved data
    ev_dirty = abap_true.
    else.
    ev_dirty = abap_false.
    endif.
    ENDMETHOD.
    Questions:
    1. If you see the shared application component HRTMC_TP_SHARED_DATA, it implements interface IF_FPM_WORK_PROTECTION. But, the isdirty method in the component controller has already existing code
    METHOD is_dirty.
    ev_dirty = wd_this->mv_is_dirty.
    ENDMETHOD.
    Where should we put the code given below as described in FPM documentation. In shared component or in individual components like HRTMC_TP_WORKEXP_INTERNAL, HRTMC_WORKEXP_INTERNAL, HRTMC_TP_EDUCATION
    etc.
    METHOD is_dirty.
    if * component contains unsaved data
    ev_dirty = abap_true.
    else.
    ev_dirty = abap_false.
    endif.
    ENDMETHOD.
    And, the line "* component contains unsaved data" as described in document- how do we code this for talent profile considering that there are multiple components, shared component etc? My requirement is that if user has entered some data in any of the tabs like internal work experience, external work experience, then work protect should work if
    user tries to navigate away or close browser.
    2. If you see general documentation for Work protect and webdynpro (not for FPM), it says that the application must define a special status (dirty flag), which tells the portal when there is unsaved data. You can set and cancel this status (TRUE, FALSE) using method
    SET_APPLICATION_DIRTY_FLAG in interface IF_WD_PORTAL_INTEGRATION.
    And it goes on to say that one must set application flag dirty
    SET_APPLICATION_DIRTY_FLAG
    exporting
    DIRTY_FLAG = TRUE | FALSE
    and also set work protect mode
    call method L_PORTAL_MANAGER->SET_WORK_PROTECT_MODE
    exporting
    MODE = NONE | APPLICATION_ONLY | BOTH
    3. Which is the correct way to enable Work protect in case of Talent profile applications? Which method of which component should should we add code to? Which of the above ways should we follow ( Interface IF_FPM_WORK_PROTECTION or IF_WD_PORTAL_INTEGRATION) ? Which component and which method should we Set Work protect and  Set isdirty
    Please advise.

    Hi Experts,
    Can you please provide some useful info in implementing work protect in Standard FPM WebDynpro ABAP applications? In this case, as mentioned above, the application is  ESS Talent Profile application (HRTMC_EMPLOYEE_PROFILE).
    Thanks,
    Sandeep

  • Exit from ABAP FPM application to anothor WD application (W/O FPM)

    Hi Experts,
    I am working on a custom ABAP FPM application using roadmap pattern. I have anothor WD application w/o FPM application which calls my second FPM application. I do the navigation from my first application to FPM application using an exit plug in the window of first app. This navigation works fine. Now FPM component has following steps.These views are embed from a WD component ZFPM.
    EDIT  View - WD Comp ZFPM
    REVIEW View - WD Comp ZFPM
    CONFIRMATION View - WD Comp ZFPM
    I want a button on the EDIT screen and confirmation screen which will lead me to first application (ZCOMP1). For this I created an exit plug in the EDIT window and Confirmation window. But when I debug the application i find that even though control goes to respective exit plugs navigation does not happen. I think thats because of FPM. Can anybody please suggest the posible approach for it or is it just that this navigation is not possible?
    Thanks in Advance
    Umnag
    Edited by: Umang Mathur on May 31, 2011 1:36 AM

    Hi Baskaran,
    Thanks for a reply. I have done following things. I added a toolbar button in EDIT step and  I have given  its FPM ID "EMP_PRF_BACK".
    Then on the process event method I have coded as following.
    if io_event->mv_event_id = 'BACK_EMP_PRF'.
    DATA: lv_launch TYPE FPM_S_LAUNCH_URL.
    DATA: lo_navigate_to TYPE REF TO if_fpm_navigate_to.
    lo_fpm = cl_fpm_factory=>get_instance( ).
    lo_navigate_to = lo_fpm->get_navigate_to( ).
    lv_launch-HEADER_TEXT = ''.
    lv_launch-URL = 'http://www.google.com/'.
    *USE_SUSPEND_RESUME = ''.
    *PARAMETER
    lo_navigate_to->LAUNCH_URL( is_url_fields = lv_launch ).
    endif.
    for the test purpose I am trying to open google. It open the link but It opens in a separate window. I want it to open in the same window. Please suggest how to do it.
    Thanks in advance
    Umang

  • Exit from FPM application to non-FPM application

    Hi Experts,
    In my custom project (ABAP Webdynpros), I have created homepage screen using non-FPM webdynpro application. When I click any link on homepage, Iu2019m calling 2nd screen (FPM application) using exit plugs and this is working fine.
    In FPM application I have [EXIT] button. When I click [EXIT] button I want to call homepage in the same screen. How can I do this? Exit plugs are not working in FPM application. 
    There is a similar post I have seen in SDN, but it was not answered.
    Exit from ABAP FPM application to anothor WD application (W/O FPM)
    [Exit from ABAP FPM application to anothor WD application (W/O FPM) ]

    You are right, it is a simillar post as you already mentioned. I am afraid there is not much beter answer available from me than already posted in that other thread.
    I am not sure in 7.02 the navigation api's are expanded such a way that you can supply window as inplce or new.

  • Custom FPM application: why is not visible when creating iview?

    hi,
    I am trying to modify an exiting mss application which is a fpm application.
    i use the self service admin tool to copy the standard fpm application to a deltalink, and ,according to the documentation , next step should be creating an iview (webdynpro iview), and the delta link should be visible as an application variant ,but it's not there.
    i tried many times and option ,but failed.
    does anyone know what's going wrong?
    another question is , if i build a new fpm application using the given tool, can it be visible when i create the iview? under which webdynpro component? i can only see com.sap...
    br.
    zj

    Hi,
    I've the same problem, after copy the FPM application as delta linkit doesn't appear as  anew app_variant when I create a new iview.
    Does anybody know why this occurs?
    Thanks!
    Pablo.

  • Close Window (main application) in 2004s

    Hi,
    I have a webdynpro application (developed in 2004s)  where I have a close button. When user clicks close button, I simply need to close the browser.
    I tried using javascript:void(window.close())" as exit plug parameter from interface view still throws me an exception  com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Invalid URL=javascript:void(window.close())
    Is there any way to close the main application window.
    Thanks for your time and help.
    Best Regards,
    Shiva

    Hi,
    Go thru the below steps. Here u need to create a html file to close the main window.
    1. In your component's interface view, create an exit plug. Name it as - ExitPlug.It's type as "Exit".
    2. Create a paramater for this exit plug. Name this parameter "Url". It should be exactly like the same name.
    3. In your view add the interface view as a required controller.
    4. Create your HTML file. Let's say you call it Static.html.
    <html>
    <head>
    <script langauage="javascript">
    function closeWin(){                    window.close();     
    </script>
    </head>
    <body onload="javascript:closeWin();">     </body></html>
    5. Save this in the mimes folder for your DC under your package. You do this from the navigator view.
    6. Now use the following code:
    try {String url = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"Static.html");wdThis.wdGet<your component name>InterfaceViewController().wdFirePlugExitPlug(url);} catch (WDURLException e) {}
    For more information go thru Re: JavaScript in WD link.

  • Warning before leaving FPM application

    Hi,
    I have an FPM Application exected from Portal. Is there any way to display a warning popup that the user is trying to exit the application when the user closes the browser or clicks on any other link available?

    i think it should be possible when the application is on work protected mode. refer work protected mode. Otherwise closing the browser  would end the session, you cannot control them in your application.

  • Opening FPM Application in a seperate Model Window

    Dear Experts,
    I have a FPM Application which i need to open in new Window in my Webdynpro Application.
    As of now I am using the URL of the Application to open it as an external WIndow, this causes some problem while refreshing the main Webdynrpo view While closing the FPM application window.
    In the Main Webdypro view the refresh is not happeing since it is opening as an external WIndow.
    If i open as a model window it may solve the issue. But Since i am using the URL if i open a model Window using the Window name it is not calling the FPM application.
    Kindly give some suggestions or link to achieve the same.
    Thanks,
    Nalla B.

    Hi Nalla,
    I suggest you the below points to achieve your requirement
    Create a view V_FPM_APP and insert an iFrame ui element
    Create an attribute FPM_URL as string and bind it to the source of iFrame ui element
    Create a window, W_FPM_APP and embed the view V_FPM_APP
    Now, you can use method CREATE_WINDOW of interface IF_WD_WINDOW_MANAGER to open the FPM application and pass parameter MODEL = ABAP_TRUE
    You can register the onClose action of popup window to your own action on view as below
              data lo_view_ctrl type ref to if_wd_view_controller.
              lo_view_ctrl ?= wd_this->wd_get_api( ).
              lo_window->set_on_close_action(
                   exporting
                        view = lo_view_ctrl
                        action_name = 'ON_CLOSE'
    Create an action ON_CLOSE in view from where the popup window is called
    Now, you get the control when user closes the popup window, so, you can refresh the main view
    Also other way, you can use the concept component usages to achieve your requirement
    Hope this helps you.
    Regards,
    Rama

  • Logoff button in FPM application

    Hi,
    I've created a FPM application, which is accessed directly through IE (as opposed to Portal).  Because of this, the standard Close button is not appearing, so I have added my own logoff button.  When pressed, this raises the event cl_fpm_event=>gc_event_close in the Configuration Controller component, which causes IE to prompt that the window is being closed and the standard logoff page to be displayed.
    My problem is that the authentication data is still existing in IE if the window is not actually closed, so if the user then presses Back or goes to the URL again they can access the application without having to login again.
    The SAP help [http://help.sap.com/saphelp_nw70/helpdata/en/fc/04a5421935c511e10000000a1550b0/content.htm] shows how to create your own logoff page, and also how to clear the authentication cache with
    document.execCommand( 'ClearAuthenticationCache' );
    I've tried to implement this for my FPM application in SICF, but it is being ignored.  I can't even get a simple bit of HTML to be displayed instead of the standard logoff page.  Can anyone help please?
    - How to get your own logoff page working with a FPM application
    - How to run the Javascript to clear the Authentication Cache (I'm assuming that once I can get my own page inserted it will be a case of executing the Javascript in the BODY ONLOAD event).
    Thanks

    hi,
    I am able to use the logoff page with slightly modified java script.
    use the script like this
    http://wiki.sdn.sap.com/wiki/display/BSP/ClosingaBrowserWindowviaaBSP
    clearing the authentication, i havent tried  but i have read in forums that they are not successful to implement that.
    http://wiki.sdn.sap.com/wiki/display/ERPHCM/Sessionnotendingafterlogoff

Maybe you are looking for

  • Powermac crashes when playing games

    Hi. I've got a problem with my Powermac G4 (Dual 450MHz). Everytime I play a game (Quake 3 or Redline for example) the mac crashes sooner or later and I need to reboot. I've checked RAM, fixed HD permissions, fixed the HDs and cleared all cache. The

  • T400 4500mhd video issue

    Hi I have a Lenovo T400 with 4500mhd graphics, 4 GB RAM with Windows 7 x64. When playing video e.g. xvid, it's pixelated and looks generally poor. I've tried the same file on my old T42 and it works fine. I've put the latest BIOS and video drivers fr

  • Partner functions relevant for interaction history

    Hello Experts, We want to register projects in our CRM system. One of the main requirements is that all partners involved in this project (both internal and external) and that the project is shown in all the BP's interaction history. We've copied sta

  • Feature request to be able to skip to a page.

    I have a 25MB documents in my phone which is about 861 pages. Every time I open the document to read at night I have to skip hunderdths of pages one at a time, it get's kinda annoying. It would be nice if I can directly browse to a page number. Thank

  • Using National Instruments LabVIEW with X-10

    Has anyone written a LabVIEW instrument driver/s for X-10 based devices? Just curious. Thanks, bonzo Sent via Deja.com http://www.deja.com/