Automatically close the window

Hi All.
I am having a BSP which has a few buttons. Those buttons call some methods of standard class.
That method then defines a navigation target as "EXIT_PAGE". This page I have defined in my customized BSP application.
Now I just want to close the window and do nothing else in this page of my customized application.
How can I do that?
Please note that there will be no additional button that I can show to users on clicking of which I could fire the window.close event.
Can I just navigate to a javascript page which will close the window?
To elaborate more:
The standard method calls this statement after doing whatever it has to do:
          navigation->next_page( 'EXIT_FINAL' ).
Now this page I have defined in my customized BSP as follows:
Start                                  Navigation Request                  Target
document_redirect.htm     EXIT_FINAL                                document_final.htm
Now in this document_final.htm, I just want to close the window and do nothing else without clicking on anything.
Another related doubt: I am well versed in Webdynpro abap, but not so much in BSP. In web dynpro abap, we can fire windows exit plug and the application knows it is closed. So in SICF, we can write the code to logoff to close the window.
In BSP, how can we make sure that the code that is writtten in the logoff tab of SICF service is executed? That might also solve my problem.
Thanks in adv.

Same thing Durai.
I actually went to View-SOurce: The following code comes there:
<h t m l>
<h ead><title>Appraisal Document            </title></h ead>
<s cr i p t language="J a v a S c ri pt">
function exit BSPApplication(){var prop = 'height=100,width=400,top='+(screen.height-100)/2+',left='+(screen.width-400)/2;var out = windowdotopen('document_exit.htm','_blank',prop);documentdotgetElementById("4A527F69BC0E00B2E10080000AFB4223_FRAMESET")dotonunload = null;}</s c ri p t>
<f ram eset id="4A527F69BC0E00B2E10080000AFB4223_FRAMESET" rows="*,0" on un lo a d="exitBSPApplication();"  resize ="no" framespacing="0" fra meb order="0">
<fr am e name="4A527F69BC0E00B2E10080000AFB4223_A" src="document_redirect.htm?PREVIOUS_VIEW=">
<fr  a me name="Block_Back" s r c ="a b out.htm">
< / f ra meset>
</h t m l>
Then I saw that this code is from the starting BSP page document.html. The code in that is as follows:
< % @ pa g e l a n guage="a ba p" %>
< %
  " Copy this page into your BSP application, and change line below.
  " This page should always used be as entry point into application.
  DATA: target_page               TYPE STRING VALUE 'document_redirect.htm'.
  DATA: about_page               TYPE STRING VALUE 'about.htm'.
  DATA: do_not_delete_sso2_cookie TYPE XFELD  VALUE SPACE.
% >
< h t m l>
  <h e ad>
    <title>< % =  otr(PAOC_HAP_DOCUMENT_UI/TITLE_DOCUMENT) %></title>
  </h e ad>
<s c ri p t l an guage="J av aS cr  ip  t">
< %
   DATA: guid TYPE GUID_32.
   CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_32 = guid.
% >
f u nc tion exit BSPApplication()
< %
DATA: pvi TYPE i.   "customer message 319887
TRY.
   pvi = runtime->portal_version_major.
   CATCH cx_sy_conversion_error.
     pvi = 0.
ENDTRY.
if pvi < 6
or runtime->session_manager->is_running = 0. % >
  var prop = 'height=100,width=400,top='+(screen.height-100)/2+',left='+(screen.width-400)/2;
  var out = windowdotopen('document_exit.htm','_blank',prop);
  < % endif. % >
  documentdotgetElementById("<%=guid%>_FRAMESET")dotonunload = null;
< / s  c ri p t>
< %
  if application->frameIsNotInitial is initial.
    application->frameIsNotInitial = 'X'.
% >
<f ra meset id="<%=guid%>_FRAMESET" rows="*,0" on u n lo ad="exitBSPApplication();"  resize="no" framespacing="0" frameborder="0">
    <f ra me name="<%=guid%>_A"  s r c ="<%=target_page%>?PREVIOUS_VIEW=<%=previous_VIEW%>">
    <fr am e name="Block_Back"  s r  c="<%= about_page%>">
< / f rameset>
< %
  else.
% >
<f ra meset id="<%=guid%>_FRAMESET" rows="*,0" resize="no" framespacing="0" frameborder="0">
    <fr a me name="<%=guid%>_A" s r c="<%=target_page%>?PREVIOUS_VIEW=<%=previous_VIEW%>">
    <fr ame name="Block_Back" s r c="<%= about_page%>">
</f ra meset>
<%
  endif.
%>
</h t m l>
I tried to put selfdotclose and windowdotclose in the exit BSPApplication().function. But does not work.
Any clues. Totally lost now
Thanks in adv.

Similar Messages

  • When a website launches a new window to enter information, Firefox no longer automatically closes the window when you click the submit button. Why?

    For example, when I create a message in my autoresponder service and want to attach an image a new window opens up so I can enter the details of the image (url, position, alt text). When I click the Save button, the information is captured but the window remains open and I have to manually close it.
    Firefox used to close the window automatically.

    YES!! Thank you jscher2000! You sir are a legend. Thanks for this, changed the newtaburl in about:config, totally worked. Nope, never saw it happening! Speedy machine this one :P Yep, that change completely sorted the issue, just opened about 741 new tabs through the shortcut on my mouse just to celebrate. Thanks guys who helped, no thanks those who didn't.

  • HT6154 not able to open emails on iphone 5S.. it automatically closes the window

    When I am trying to access emails using email icon on home screen, the window opens for a sec and then closes automaticaly. So, I am not able to access my email. Tried reset options, restarting etc. etc..Any idea?

    Did your password change?
    Have tyou changed any setting sin Settings->Mail, Contacts & Calendars?

  • Is there a setting to automatically close the "please wait while we generate your document" page that pops up when downloading a pdf file?

    I am constantly downloading pdf's and excel files from our company software which uses a web browser to access it. When I download a file, firefox generates a full screen pop up window that states "please wait while we generate your document." My problem with it is the fact that pop up window does not close after the download. I have to manually close the window. Is there a way to set that pop up window to close automatically after the file has finished downloading and is open in foxit reader or excel or word or whatever?
    Thanks,
    Tony

    Hi,
    You could try is to '''Disable''' the Foxit, Adobe and Office '''Plugins''' in '''Tools '''('''Alt '''+ '''T''') > '''Add-ons''' and use the normal Firefox Open with (when you click on a link) to browse/open it in the required application.
    [https://support.mozilla.org/en-US/kb/Using%20plugins%20with%20Firefox Using plugins]

  • Firefox won't open a message tells me it is all ready running I need to close the window to open firefox. Firefox is not open so why do I get this message

    When I try to open firefox a box opens up and tells me firefox is already running in another window and I need to close the window if I want to open firefox in a new window. Firefox is already closed, nothing is left open when I close out firefox. I would only have this problem once in a while but now it is happening more often why?

    Open Task Manager and click on the Processes tab. Scroll down to "Firefox.exe" , click on that line and click on "End Process" button.

  • Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...

    Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...  When I search for a file, A) it asks me if it's a name, or it wont produce anything, and B), its slower than in prior OS versions and in some instances I have to toggle to a different directory and go back to my original directory in the search: menu bar or the search wont produce anything...  Very buggy. 

    It appears to me that network file access is buggy in Maverick.
    In my case I have a USB Drive attached to airport extreme (new model) and when I open folders on that drive they all appear empty. If I right click and I select get info after a few minutes! I get a list of the content.
    It makes impossible navigate a directory tree.
    File access has been trashed in Maverick.
    They have improved (read broken) Finder. I need to manage a way to downgrade to Lion again.

  • How can I turn back the suggest option on iTunes when I purchase a song? somehow I close the window and now it doesn't come up

    how can I turn back the suggest option when I purchase a song? somehow I close the window that suggest the song similar to what we purchase on itunes

    NVM!!! Everything is strangely fine now!

  • Regarding the alert Message when i try to close the window

    Hi All,
    I am trying to give the alert message when the user tries to close the window.
    For this i have coded a jsp in which i have written
    <html>
    <head>Test in the Page Ajay</head>
    <body onUnload="alert('Test UnLoad')">
    </body>
    </html>
    and in the portalapp.xml i have given as jspnative.
    then if i try to unload the page the alert message is not executing.
    Plz help me out in this.
    Thanks
    Ajay

    Delete the iPod photo cache, as described here:
    http://support.apple.com/kb/ts1314

  • I have my FireFox browser set to delete the history when I close the window. It was working for a while and has recently just stopped with no changes to the settings.

    I have my FireFox browser set to delete all the history when I close the window. It was working for a very long time and has recently stopped with no changes to the settings. This has happened once before and I deleted FireFox and re-downloaded it, that solved the problem for a short period of time but the issue has come up again. How can I fix this?

    Can you check your configuration again? Maybe something went pear-shaped somewhere. It's located in Tools | Options | Privacy and then click the Settings button (see screenshot).

  • The webpage your are viewing is trying to close the window

    Hi. I run an HTML script which in turn runs my Web Form and quickly closes the initial IE window (for neatness). However, it the user first is prompted:
    "The webpage your are viewing is trying to close the window.
    Do you want to close this window?"
    Do you know what causes this and how I can surpress the message?
    Thanks in advance.

    See Re: HELP - CLOSE WEB BROWSER

  • I downloads the latest iTunes software update and it properly installed.  But,  I cannot close the window showing it was completed and the blue completion bar is full but cannot cancel or close it either.  Any ideas on how to clear that out and close the

    I downloaded the latest iTunes software update and it properly installed.  But,  I cannot close the update window showing it was completed and the blue completion bar is full but cannot cancel or close it either.  Any ideas on how to clear that out and close the window.  Tried to quit on both the big window and the software update title in the menu bar.  No luck.

    Tried that by shutting down via the power button only as the normal shutdown was nixed by the open window issue.  It did not help.  Found a very similar question in the discussions and it recommended "Force Quit".  That worked and the update works normal and the window is gone.  Thanks!

  • When i close the window if press pressed next to the closure and returned again press not work

    When i close the window if press pressed next to the closure and returned again press not work

    Please expand upon your question with more detail. You can also post in your native language if English is a difficulty.

  • Get rid of message: "If you close the window, your changes will be lost..."

    Whenever I enter text, then close the window, I get the message, "if you close the window, your changes will be lost. Do you want to close the window anyway?"
    Yes, I do want to close the window, and I want to get rid of this message from popping up. Can't find it anywhere in Safari. Please help me out. Please, how do you configure Safari so this message will not pop up?

    HI David,
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset. Relaunch Safari. If you still see that dialog...
    Go to the Safari Menu Bar, click Safari/Preferences. Make note of all the preferences under each tab. Quit Safari. Now go to ~/Library/Preferences and move this file com.apple.safari.plist to the Desktop.
    Relaunch Safari and see if that makes a difference. If not, move the .plist file back to the Preferences folder. If Safari functions as it should, move that .plist file to the Trash.
    Carolyn

  • Firefox will close when i close the window but the process doesn't shutdown ever since i had updated to FF25

    I am running Win. 8.1 and had no issues with FF 24. Since upgrading to FF 25, firefox will appear closed when i close the window but the process doesn't shutdown. I have to go into Task Manager to end the process. I can then launch it again.

    SOLUTION (possible).
    Hi all. I had this problem as well. I currently run FF26. A week or so ago, out of nowhere FF wouldn't exit - the window would close but firefox.exe process would keep running in the background using about 50% of CPU. Not sure if it's connected, but just prior to that I clicked on a link on Facebook that looked like spam website, nothing happened, site loaded (sort of, all I saw was a msg - Please Wait...) but nothing happened, I have Eset antivirus and it monitors network traffic and files for viruses, so maybe it prevented my PC getting infected...
    So, I had this problem for a few days, was searching the net for solutions, but nothing seem to help. Then, just out of luck I did something that WORKED!
    Here's what I did. I noticed that svchost.exe was using a lot of CPU alongside with FF. I ran ProcessExplorer to see what might be connected to this process, the list was long and I didn't have any idea where to start, so what I did was - Right click on svchost process, choose Debug and dismiss the warning. In a few seconds svchost process quit and after that FF started closing properly.
    I had to re-enable all my plugins and themes I disabled prior, I also lost my history and preferences which I trashed in the process of searching for solution. But heck, it worked, hopefully for good. Now if someone could point out the real cause of this and fix it for everyone - that would be great. Cheers!

  • How to automatically close the client?

    Hi all,
    Is there any way to automatically close the client?
    Att,
    Renan Lopes

    >
    Juan Reyes wrote:
    > Theres no such tool as standard and to be honest you wouldn't like to have one, Opening the system on a production environment should be only done in very particular situations and the utilization should be monitored closely.
    >
    > Regards
    > Juan
    Hi Juan,
    The implementation of our environment was a six months ago and during the implementation, the client production was opened a few times. The problem is we are in a process of audit and I suggested as a security measure the automatic closing of the client.
    Att,
    Renan Lopes

Maybe you are looking for

  • Clearing document (posting)

    i have purchase order number and invoice number. now i need clearing document number . can any body tell me how to get???

  • Transfer pictures/music to new ipod

    I would like to get my daughter a new ipod because she is having minor issues with her current ipod and the screen is cracked.  She has informed me that she will not be able to transfer or save her current pictures and music on a new or different ipo

  • Data Load Best Practice.

    Hi, I needed to know what is the best way to load the data from a source. Is the SQL load the best way or using data files better? What are the inherent advantages and disadvantages of the two processes? Thanks for any help.

  • PR Release Strategy for MRP & Manually created PR

    There is a scenario in which it's required when, PR is generated automaticaly through MRP then Release strategt should be applicable and when PR is created manually then release strategy won't be applicale. Please suggest about this..........        

  • Parse HTML document embedded in IFRAME

    Dear fellows: How can I access contents of an HTML document embedded in an IFRAME tag, by using java class HTMLEditorKit.Parser? It is well known that the contents of such embedded HTML document can be accessed by javascript at front end. However, I