Close Web Dynpro Application on click of button

Hi,
     I have a Web Dynpro Appliaction which would be open in a Portal iView. I have a close button in the application. How do I close the application on the click of "Close" button.
Thanks,
Prasanna.

Hi prasanna,
First, it is very bad decision to make decisions instead of user. Just redirect him to logoff page and let close window himself.
In WebDynpro you may use Exit plug on interface view with parameter Url (notice the case) of type string.
Then you may previously fire this plug with JavaScript url: javascript:void(window.top.close())
In recent versions of WD this will not work. So you have to redirect user via exit plug to some static html page, that contains in header <script>window.top.close();</script>
Check the below thread,u will get an solution for your question....
Close Button
How to close portal page by Web Dynpro App
Exit button that close me the window in personalize
Re: Close Button Issue

Similar Messages

  • Call ESS FPM CATS Working time application from non FPM web dynpro application on click of button

    Hi,
    My requirement is to launch ESS Working time application HRESS_AC_CATS_1 from custom web dynpro application.
    ESS CATS working time application is configured in LPD_CUST launchpad.
    I tried using method  cl_hr_navigation_services=>navigate in my custom web dynpro but it did not work.
    Regards,
    Ibrahim

    In case you want to use Launchpad, you can use ABAP class CL_APB_LAUNCHPAD_API. If choose not to use Launchpad, you can use method CONSTRUCT_WD_URL of ABAP class CL_WD_UTILITIES to generate the URL. Specify Web Dynpro application and Web Dynpro Configuration as parameter. Finally create an external window using method CREATE_EXTERNAL_WINDOW that points to that URL.

  • Exiting a Web Dynpro Application by pressing a button on a Web Dynpro View

    Hi all,
    I want to exit a Web Dynpro application when the user presses an Exit button on the screen. Is there an API for closing the current browser window and exiting the application?Thanks.
    Sukru

    hi,
    For closing Main Window, use Exit Plug in Windows:
    Do the following steps :
    -> Make an Outbound Plug to the Window.
    ->Make the type of Outbound plug to Exit Type.
    ->Add CLOSE_WINDOW of type wdy_boolean 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 be possible ).
    ->Fire the outbound plug with close_window as X in the onAction of Exit Button .
    Refer SAP online help on using Exit plug to close a window:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/content.htm
    method ONACTIONGO_EXIT .
    data: L_REF_MAIN_WINDOW type ref to IG_MAIN_WINDOW .  
    L_REF_MAIN_WINDOW =   WD_THIS->GET_MAIN_WINDOW_CTR( ). 
    L_REF_MAIN_WINDOW->FIRE_MY_EXIT_PLUG_PLG(     CLOSE_WINDOW =   'X' ).
    endmethod.
    here Main_window is the window which needs to be closed.
    I hope it is clear.

  • Problem in Closing a web dynpro application

    Hi experts,
    I wanted to close the application when the user clicks on the close button.
    I created a out bound plug "EXIT" of type 'EXIT' in my window.
    I also created a parameter "CLOSE_WINDOW" of type "WDY_BOOLEAN" for the outbound plug
    Now in action of the close button i have done the below code:
    DATA: l_ref_ywd_maintain_catalog TYPE REF TO ig_ywd_maintain_catalog .
    l_ref_ywd_maintain_catalog = wd_this->get_ywd_maintain_catalog( ).
      l_ref_ywd_maintain_catalog->fire_exit_plg( CLOSE_WINDOW = 'X'
    where ywd_maintain_catalog  is my window name.
    when i check the program i am getting the below error:
    get_ywd_maintain_catalog_ctr is unknown or protected or private.
    I refered the standard web dynpro component "WDR_TEST_EXIT_PLUG" to implement the logic
    Pls help
    Regards,
    Vinod

    Hi all,
    This is my requirement when i click on a close button the application should close.
    i refered to a web dynpro component "WDR_TEST_EXIT_PLUG" where they have explained the way to use exit plug.
    They have created a outbound plug in the window called "EXIT" of type exit. and in the action of the button they have used the below code to fire the outbound plug.
    method onactionfire_exit .
      data: l_ref_wdr_test_exit_plug type ref to ig_wdr_test_exit_plug .
      l_ref_wdr_test_exit_plug =   wd_this->get_wdr_test_exit_plug_ctr( ).
      l_ref_wdr_test_exit_plug->fire_exit_plg(
        url = 'http://www.google.de/'
    endmethod.
    I followed the similiar approach in my code:
    I created a out bound plug "EXIT" of type exit in my window.
    then in the action of the close button i have done the below code:
      DATA: l_ref_ywd_maintain_catalog TYPE REF TO ig_ywd_maintain_catalog .
    l_ref_ywd_maintain_catalog =wd_this->get_ywd_maintain_catalog_ctr( ).
      l_ref_ywd_maintain_catalog->fire_exit_plg( CLOSE_WINDOW = 'X'
    The problem i am facing is i am getting the error  "method get_ywd_maintain_catalog_ctr is unknown or public or private"
    I am referred to the below URL to do it :
    link: [Exiting a Web Dynpro Application by pressing a button on a Web Dynpro View]
    Regards,
    Vinod

  • Close External Window in Web Dynpro Application

    Hi Folks,
    I am working on a development in Web Dynpro and I am pretty new to this topic, so I seek your help.
    The scene is:
    I have created a Web Dynpro application in which I open an URL using CREATE_EXTERNAL_WINDOW method of the Window Controller. I am able to open the window but not able to close it.
    I tried using methods,
    CLOSE()
      and
      SET_CLOSE_IN_ANY_CASE()
      but no success.
    Please guide me if anything more needs to be done for closing the opened window.
    Thank you.
    Sud.

    Thank you Thomas,
    You correctly pointed out, I was trying to close the external window from my source window.
    More precisely, I have a WD application which has a button (Search) on one of its views. On click of 'Search' button, I open a new window using 'CREATE_EXTERNAL_WINDOW' passing the URL 'www.google.com'.
    Till this point its fine, but now I want to close this newly opened window. As you said now these are 2 different sessions and cannot communicate anymore, so any guidance how to close this new window?.
    OR
    Is this the only way to call an URL i.e using CREATE_EXTERNAL_WINDOW? Is there any other way to call an URL without closing my current running WD application?
    Request your  help......
    Thanks.
    Regards,
    Sud....

  • Short dump when trying to open FPM for Web Dynpro Application

    Hi,
    I am receiving a short dump while trying to open a Web Dynpro Application in FPM.  I go to SE80 and open the Web Dynpro component 'FPM_OIF_COMPONENT'.  I then choose the application '/sapsrm/wda_l_fpm_oif'.  I then click Web Dynpro Application -> Test -> Execute in Administration Mode.  A new IE browser is opened and I then receive a short dump.  The name of the short dump runtime error is 'OBJECTS_OBJREF_NOT_ASSIGNED_NO' and the exception is 'CX_SY_REF_IS_INITIAL'.
    I have not used FPM before.  I would like to use it to remove the 'Close' button from this application.  Do I need to initialize FPM before using it?
    Please help.
    Thanks,
    Jeff

    >
    Chinnu wrote:
    > Hello Jeffery Andersen,
    >
    > If I understand correctly, you are trying to preview FPM_OIF_COMPONENT.
    >
    > I think this component can not be executed as it just is a template for creating a FPM applications. In other words, it is an interface that can be used to created a WD ABAP application from work bench.
    >
    > This [Floor Plan Manager - ABAP|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90f3cfd2-46d0-2b10-b3ab-eabf3452cc50&overridelayout=true] can help you understand better.
    >
    > Best regards,
    > Chinnu
    Hi Chinnu,
    Your understanding is not correct, he is trying to execute the application /sapsrm/wda_l_fpm_oif'.
    Hallo Jeff,
    everyone have suggested lots of possibilities. Nothing works for you. I would suggest the following.
    Go and execute any other FPM application which uses FPM_OIF_COMPONENT,does it work ?
    If it works then you can narrow down that /sapsrm/wda_l_fpm_oif is not working and you can raise a OSS ticket.
    If it is not working then you have to see if you have right BASIS versions to use FPM.
    Edited by: Baskaran Senthivel on Dec 6, 2010 1:09 PM

  • Reg: Closing and Opening Web Dynpro Application in same browser

    Dear Experts
    In my webdynpro application when i click a button another web dynpro application is opened in another window(another browser) .
    But i want to open the second web dynpro application inside the same browser in which closing the first applicaiton and opening the second web application in same browser window .
    Please guide me to do this.
    Regards
    Arun

    hi ,
    Exit plugs have the special property that they use the defined URL parameter. After you have created the URL parameter in the parameter list on the Outbound Plugs tab page in the window editor, you can specify a value for this parameter in the method that calls the exit plug.
    ref
    link:[http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/content.htm]
    it would help u
    regards,
    amit

  • FPM Form Scripting - How to call a web dynpro application as pop up

    Hi All,
    I want to call a web dynpro application as a pop up from FPM form scripting.
    Like click on button -Maintain Approval Routing in a FPM form i want to open a web dynpro pop up..
    Thanks In Advance.

    Refer to the post How to show pop up’s in WDA HCMPF by Yugandhar Reddy - on some hints
    Hope this helps.
    Regards,
    Sahir.

  • The Web Dynpro Application 'XssMenu' has expired

    Hi,
    we implement an ESS Scenario, with One Enterprise Portal 6.0 SP17, a mySAP ECC 5.0 System with ERP2004 and a seperate server with a java stack, because our customer don´t want to install and use a java stack on their HR/ERP systems. They want to minimize the performance.
    After some configurations, we get the startpage for ESS. If I click on a service like travel management it has no effect. If I click the second time, I got an error "500 Internal Server Error" with the message
    The Web Dynpro Application 'XssMenu' has expired. Please restart the application either with the refresh button or click the following link XssMenu.
    Same error comes, if I choose travel management in the second navigation level and click the service. And same message on every service.
    Now I tried anotehr way. I call the ess startpage directly on the external java stack. And here´s no problem. All WebDynpro-Services works fine.
    Can anyone help me, why the WebDynpro Service doesn´t work in the Portal?
    Best regards
    Christian

    We had exactly the same problem.  We had multiple java servers and our switch was not retaining stickiness.  So it would send the user to a different java server which hadn't got any session data for that user.
    If this could be it, get something like httplook to do a trace of what is happening.  We saw it switching java servers.
    If you do not have multiple servers it could be switches chopping out cookies, causing the same issue.
    Paul

  • The Web Dynpro application XssMenuArea is expired

    Some of our clients when click tab "Employee Self Service" the
    information menu wonu2019t be displayed and the screen has the following
    error message: the Web Dynpro application "XssMenuArea" is expired,
    please use the refresh button or restart the application.
      When manually click the "restart" hyper-link, the screen leaves
    blank. But the above phenomenon differs from clients. The Same account
    in one PC is OK but in another has the error. We donu2019t know the Client PC
    should install what kind of software or plug-in to run the "ESS"
    application.

    Please check the following posts.
    Regarding Error : Web Dynpro Application 'XssMenu' has expired.
    The Web Dynpro Application 'XssMenu' has expired
    'XssMenu' appication expiration
    ESS XSSMenu Error

  • The Web Dynpro Application 'Explorer' has expired

    hi,
    when I am trying to open the deployed content in the       
    Content Administrator in the sap portal I am getting the following error
    "500   Internal Server Error The Web Dynpro Application 'Explorer' has expired. Restart the application using the Refresh button or via the following link Explorer.
      Details:      
      No details available"
    what can I do?
    I have read here at sdn that I should increase the expiration time but where can I do this?

    Hi Thorsten,
    Close your explorer, open a new explorer and run the application from the new browser.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b52de690-0201-0010-c5a6-b4bde0a12e44
    <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_ep_sys/~form/handler">SAP Note Number: 519191</a>
    <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_fes/~form/handler">SAP Note Number: 856741</a>
    Regards,
    Mithu

  • The Web Dynpro Application 'PcrApplication' has expired.

    Hi,
    I am getting below error:-
    500   Internal Server Error:
    The Web Dynpro Application 'PcrApplication' has expired. Please restart the application either with the refresh button or click the following link PcrApplication.
    Can anyone help me on this.
    Best regards
    Ali

    Hi Rali,
    I think you have not been using this application from long time. So the Portal session time must have expired. Well, Let us know if the problem persist even after RESTART of the browser.
    Regards
    <i><b>Raja Sekhar</b></i>

  • The Web Dynpro application 'UWL' has expired

    Hi ALL,
    We are using Enterprise portal 7.0. and backend SRM server
    When the user login into portal it will take him to the UWL page
    in that the user click for any "Approve shopping cart" the error message showing
    " The web dynpro application *'UWL' has expired. restart the application. choose 'refresh' in the iview tray or use the*
    *browser 'refresh' button to restart the iview"*
    user not getting the error message every time. error coming occasionally
    we suggest the user to clear the cookies and restart the browser and relogin.
    but some times it works some times not
    Can any one know the exact problem (any parameters has to be change or any other solution)?
    Regards,
    Abdul Razzaq
    SAP NW.BASIS Consultant

    Dear Abdul ,
    Hope you are doing good.
    We have seen similar cases of  WD Session Expired error message when the  jsessionid cookie issued by the server with the initial requests was not returned from the client with subsequent requets to the server. The only way to ascertain whether this is the case in your system will be by checking the HTTP watch trace (note 1558903 - How To Trace a Portal Scenario Using HttpWatch).
    As the jsessionid cookie is used for session management, when it is missing from the request headers the correct session could not be retrieved and as result new session will be created for that user. Set the parameter JSESSIONID.CookieDomain to "NONE" as mentioned in the sap note: 791765 and see if the issue persists. This configuration should be accessible in
    Config Tool -> expand the tree "cluster-data" -> "Global Server Configuration" -> "services" -> "servlet_jsp" -> Go to "Global
    Properties". Do make the changes, save the customization and then restart the complete SAP server (not just the JAVA server nodes).
    Kindly go through the note completely.
    Also make sure that the SystemCookiesDataProtection and SystemCookieHTTPProtection is set in the HTTP Provider Service on
    the server nodes.
    Do make the changes,save the customization and then restart the complete SAP server.
    Thank you and have a nice day :).
    Kind Regards,
    Hemanth
    SAP AGS

  • The Web Dynpro Application 'Appl' has expired.

    Hallo altogether,
    i am a newbie in this area.
    I maked a simple Web Dynpro with two views,
    only for navigation test
    and without data transport.
    Everybody view consist of two elements:
    one TXV_Field and one BTN_Element.
    V_ONE:
    TXV_ONE with a text "View one",
    BTN_GO + action GO,
    OP_TO_TWO,
    IP_FROM_TWO
    V_TWO:
    TXV_TWO with a text "View two",
    BTN_BACK + action BACK,
    OP_TO_ONE
    IP_FROM_ONE.
    There are two links between views builds.
    I cann my application APPL deploy without problem and without error messages.
    I see my V_ONE im browser.
    If i click the button BTN_GO ==>
    The Web Dynpro Application 'Appl' has expired.
    I controlled the file default.properties
    the timeout = 3600.
    what cann i do????
    Thank,
    vmath.

    1. check ur server configuration windw> preference->j2ee-engine.
    I have DeveloperStudio local on my PC.
    There are  following settings for j2ee-engine:
    SAP J2EE-engine is installed on local host
    System name: J2E
    J2EE Instance: 0
    SCS Instance: 1
    BEN_1\sapmnt\J2E\SYS\profile\J2E_JC00_ben_1
    BEN_1\sapmnt\J2E\SYS\profile\J2E_SCS01_ben_1
    vmath

  • The Web Dynpro Application 'WebAdminApp' has expired.

    Hello all,
    I am getting this error when I click on anything from /nwa.
    The Web Dynpro Application 'WebAdminApp' has expired. Restart the application using the Refresh button or via the following link WebAdminApp.
    I have to configure LogOn Group for the WebDispatcher ( to be able to see the logon group from the java system) and from this link:
    Logon Group Configuration - System Landscape Administration with SAP NetWeaver Administrator - SAP Library
    I got the solution:
    Activities
    You can display the overview page of the existing logon groups if you choose System Management  → Configuration  →  Logon Groups. The Logon Groups frame on the right contains a table that lists all logon groups on all registered systems.
    So, I started /nwa and when I click on Configuration, I am getting:
    The Web Dynpro Application 'WebAdminApp' has expired. Restart the application using the Refresh button or via the following link WebAdminApp.
    Can you suggest me a solution?
    thx
    Chris

    Solution:
    1907152 - Web Dynpro Application 'WebAdminApp' has expired when access NWA

Maybe you are looking for

  • How can I disable back button

    How can I disable the back button and/or prevent the back button displaying my recent searches on right click ?

  • Jce1_2_1 problem in SP2,  iAS 6.0 on UNIX

    Hi, experts, Has any of you encountered the problem using jce1_2_1 in the applications in SP2, iPlanet AS 6.0 on UNIX? I followed exactly the jce1_2_1 installation guide (for the JRE bundled with iAS) but still got a SecurityException: certs cannot b

  • Selecting Graphics Card

    With the Mac Pro which graphics card is sufficent for FCS?

  • LR5 Not showing in CC

    I have purchased LR5; Downloaded trial from Adobe; S/N came from Amazon. I subscribed to CC today. LR5 does not show as installed. Can someone tell me how to have my CC subscription be aware of LR5? Thanks.

  • Why am i kicked out of my wireless network everytime my computer sleeps or shuts down?

    why am i kicked out of my wireless network every time there the machine goes to sleep or when i shut the computer off. is there a setting where i can stay logged-in to my wireless network without having to select it every time? Running Lion 10.7.5 ve