Logoff BSP closing application and closing SAP session.

When I'm closing my  BSP appication by closing browser ,SAP session are not ending.I need to implement logoff functionality into my BSP application.
Please send me some sample code for logoff from BSP.

Use this..it worked for me.
  Restart of BSP test application IT00 use sap-sessioncmd=open:
Example:
http://myServer.sap.corp:1080/sap/bc/bsp/sap/it00?sap-sessioncmd=open
Ending the application externally:
Example:
http://myServer.sap.corp:1080/sap/bc/bsp/sap/it00?sap-sessioncmd=close&sap-exiturl=http%3a%2f%2fwww.sap.com

Similar Messages

  • Closing sap session

    Hi all i have got a slight problem when closing an SAP session from an BSP(MVC). I am currently using navigation->goto_page( 'main.do?sap-sessioncmd=close' ), which works when i call my BSP using a GET method form:
    <FORM name=form1 action=https://www.not_real_url/main.do method=GET target="_blank">  ... </FORM>
    But when i use a POST method form it just does not seem to close the session:
    <FORM name=form1 action=https://www.not_real_url/main.do method=POST target="_blank">  ... </FORM>
    Has anyone got any ideas?
    Regards
    Mart

    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <script language="JavaScript">
    function exitBSPApplication()
    <% CLASS cl_bsp_login_application DEFINITION LOAD. %>
    var EXIT_URL = "<%= CL_BSP_LOGIN_APPLICATION=>GET_SESSIONEXIT_URL( page = page ) %>";
    EXIT_URL += "&bsp_do_not_delete_sso2_cookie=X";
    alert(EXIT_URL);
    self.location.href=EXIT_URL;
    window.open(EXIT_URL);
    </script>
    <form name="frmmenu" method="post">
    <table width="760" border="0" cellspacing="0" cellpadding="0">
    <tr><td>
       <input type=submit name="pributton" value="exit" alt="Click here to Print" onClick="Javascript:exitBSPApplication()">
    </td></tr>
      </table>
      </form>
    It works for me.<b> Create a new BSP Page with the above code and test.
    Rgds,
    Jothi.

  • How to clear the variables before closing a BSP MVC application

    I am calling a custom stateful BSP MVC application to display additional PO information as a popup window inside SAP BSP. When I close this popup window and open it later on a different PO, it still displays the old PO information. I am clearing the variables in the DO_HANDLE_EVENT. 
    I am using the javascript
    <htmlb:button id      = "Close"
                        text    = "Close window"
                        onClientClick="javascript:window.close()"  />
    to close the window.
    Could someone tell me what do I need to do before closing so that I can clear all the variables.

    Hi Krishana,
    Other neater way could be..
    instead of calling java script.. raise a server event.. in DO_HANDLE_EVENT set a flag <b>lv_close_window</b> to 'X'.
    on the page call the script to close the window if flag <b>lv_close_window</b> is set to 'X'.
    just before setting rhe flag to 'X' you can clear all unnecessary data.
    rememebr: javascript wont take you to DO_HANDLE_EVENT.
    <htmlb:button id = "Close"
    text = "Close window"
    onClick="close_window" />
    i would to this way if i am willing to go to DO_HANDLE_EVENT.
    A.

  • Help - "Acrobat is being used by another application and cannot open PDF files until the other application is closed."

    Hello,
    I searched this site and google for this error terminology and come up dry.  I support a user who has been for years using Acrobat 5 (yes, I know...) to read files in a client DB program, as well as other PDF files on their PC.  In the last week or so, they have started gatting this error "Acrobat is being used by another application and cannot open PDF files until the other application is closed." any time they attempt to open a PDF file attached to an email (via Outlook).
    It is my understanding that they cannot upgrade to a newer version of Acrobat because of limitations of their client software, but had not previously had any issues viewing PDF notes from the DB, and PDF attachments in their email.
    I have tried uninstalling and re-installing, as well as tried using Adobe Reader 7 & 9 in conjunction with Acrobat to try to get around this issue, but have not been successful.
    Any ideas?
    Thanks,
    Jesse

    I don't have an answer to your technical problem. The product I assume is Acrobat that you are talking about (based on the post title), Adobe is the company name. This is a good place to ask questions on Acrobat if folks can figure out what you are talking about. They will ask for the product version number (like AA9.3.3), operating system, and other applications if appropriate. Also, just what you are doing that generates the message.
    As for Adobe, you are not likely to get an answer from them here in the user forum. You will be lucky if you can get an answer if you can contact them and not be on hold for more than an hour (sorry, this is why a lot of folks end up in the forum).
    So, to help others try to answer your question, what are the products and versions involved? What OS? What are you doing when the message comes up.

  • Help!!! the app Iphoto is closed marking a erros. I go back and open the application and are not photos. How can I recover them? Are not in the image folder.

    I was editing my photos and adding them to a album and suddenly the app is closed marking a erros. I go back and open the application and are not photos. How can I recover them? Are not in the image folder.

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • Closing an application and web browser at same time at runtime

    Does anyone have any ideas of code that addresses that problem of closes the web browser at runtime when the application closes?
    I've been converted about 140+ forms and 300+ reports to 10g from 6i client/server and I've got all the forms converted but now that I've got it up on a website at runtime, I'm documenting all these application issues that I just haven't had time to research.
    It sounded like I do write some Java Beans, based on some threads I've read. But I didn't fully understand.
    Any help is appreciated.
    Regards,
    Chris

    Ok, I was able to do it when I hard-coded to the http://servername:port in the web.show_document. My question is: I have a windows and Linux (Development and Test server). All 3 are different servers. How can I make it to where I don't have to hard-code the server name. I've put the html page in the ORACLE_HOME/forms/java folder. The application and web browser closes just fine when I hard-code the server name in the web.show_document command. Is there a way I can get around this where I don't have to hard-code the name, but still access it from the same path on all 3 servers?
    web.show_document(http://servername:port/forms/java/closewebbrowser.htm, -self)

  • Logoff while closing the browser.

    HI all,
    Portal logoff is different from closing the browser,as i know.
    But can we do logoff while closing the browser?
    We must close the session such as BSP application.
    Any helpful answer is welcomed.
    THank you.
    Best Regards,
    delma

    hi
    THank you for your advice.
    The strange thing is : there's no popup "closing session" window when i close the browser.
    And I look after the trace.No dsm.terminator is called at all when i close the browser.
    But when I logoff, dsm.terminator is called and the window is poped up.
    This is what i am confused.
    Thank you.
    Best Regards,
    delma

  • File Upload in BSP Applications and store in Application server

    Hi we have requirement to store the attachments from BSP application into the external/internal storage space connected to application server.
    I search for weblogs and all talking about <a href="http://help.sap.com/saphelp_me21sp2/helpdata/en/eb/8c683c8de8a969e10000000a114084/content.htm">File Upload in BSP Applications and store in MIME Repository</a>.
    But our requirement is upload and store(no need to read the file content) attachments from BSP page into file server, and then make a link back in BSP page to open.
    I know we can handle documnets in R/3 using DMS, but our system is SRM.
    Please give a suggestion and solution.
    Thanks,
    Giri

    Hi,
    I faced a similar problem some time ago (uploading a file via BSP, storing it to the application server and then linking the archived document to a business object.
    Here is the coding I used:
    when 'SubmitUploadFile'. "OnInputProcessing
        DATA: data_fileupload TYPE REF TO CL_HTMLB_FILEUPLOAD,
              l_filename type string,
              l_archiv_doc_id type SAPB-SAPADOKID,
              l_content type string,
              l_file_ixos(100) type c value '/transfer/PV2/aus/IXOS/',
              l_file(200) type c,
              tbl_bin TYPE STANDARD TABLE OF tbl1024,
              wa_bin type TBL1024,
              l_xstring type xstring,
              l_arc_doc_id type SAPB-SAPADOKID,
              l_doctype type TOADD-DOC_TYPE,
              l_filename_e type DRAW-FILEP.
    upload the file from the BSP web interface (e.g. file C:TempSUTestPDF_SU.pdf)
        data_fileupload ?= CL_HTMLB_MANAGER=>GET_DATA(
                                           request = runtime->server->request 
                                           name    = 'fileUpload'
                                           id      = ‘InputFieldFileUpload’
        IF NOT data_fileupload IS INITIAL.
          l_filename         = data_fileupload->file_name.
          l_content      = data_fileupload->file_content.
          l_content_type = data_fileupload->file_content_type.
        ENDIF.
    The uploaded file is returned as XSTRING, so we have to convert it to BINARY
    (or STRING alternatively)!
        l_xstring = l_content.
        CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
          EXPORTING
            BUFFER          = l_xstring
            APPEND_TO_TABLE = 'X'
          TABLES
            BINARY_TAB      = tbl_bin.
    split path for storing the file to the application server
        l_filename_c = l_filename.
        CALL FUNCTION 'CV120_SPLIT_PATH'
          EXPORTING
            PF_PATH  = l_filename_c
          IMPORTING
            PFX_FILE = l_filename_e.
    write the uploaded file to the application server
        l_filename = l_filename_e.
        concatenate l_file_ixos l_filename into l_file.
        open dataset l_file for output IN LEGACY BINARY MODE.
        loop at tbl_bin into wa_bin.
          transfer wa_bin-line to l_file.
        endloop.
        close dataset l_file.
    store the uploaded file on the IXOS-archive
        l_doctype = l_content_type.
        CALL FUNCTION 'ARCHIVOBJECT_CREATE_FILE'
          EXPORTING
            ARCHIV_ID                = '2T'
            DOCUMENT_TYPE            = l_doctype
            PATH                     = l_file_arc
          IMPORTING
            ARCHIV_DOC_ID            = l_arc_doc_id
          EXCEPTIONS
            ERROR_ARCHIV             = 1
            ERROR_COMMUNICATIONTABLE = 2
            ERROR_UPLOAD             = 3
            ERROR_KERNEL             = 4
            OTHERS                   = 5.
    link the archived document to the business object ‘DRAW’
        CALL FUNCTION 'ARCHIV_CONNECTION_INSERT'
          EXPORTING
            ARCHIV_ID                   = '2T'
            ARC_DOC_ID                  = l_arc_doc_id
            AR_OBJECT                   = 'DRW'
            OBJECT_ID                   = g_object_id_arc
            SAP_OBJECT                  = 'DRAW'
           DOC_TYPE                    = l_extend
         EXCEPTIONS
           ERROR_CONNECTIONTABLE       = 1
           OTHERS                      = 2.
    Remark: It´s vital to convert the uploaded file from XSTRING to BINARY. Otherwise the file cannot be stored/archived properly.
    The archived document can then be displayed by inserting the (IXOS-web client-)link to the BSP page (e.g. http://193.228.208.78:4060/archive.dll/get?arc=2T&doc=44439F1B4F701E65E1000000C1E4D00A).
    Hope this helps!
    Regards,
    Ulli

  • Closing ITS Sessions

    Hi,
    We migrated our ISR services to Integrated ITS. ISR has a main service QISR from which we can call the required services. The new service is opened in a new window. All the services called from QISR are custom services. These custom services have their own HTML templates and Java Script (JS).
    Earlier on Standalone ITS if we choose "Quit" from the main QISR, along with the main QISR session all the sessions of the subsequent services gets closed.
    This is not happening in Integrated ITS. If I quit the main QISR service, only the main QISR session gets closed. All the sessions of subsequent services still hang around. (I can see them in SM04)
    These custom services doesnt have the "Quit" option within them. How to close these sessions on closing their browser window? Can we use the onunload event..?
    I saw the thread [Close ITS-Session|Close ITS-Session] but couldnt be able to close it using JS or by different means.
    Can somebody post the JS code? or any other ideas on closing the sessions?
    Thanks,
    Ravikanth
    Edited by: Ravikanth Tunuguntla on Jan 25, 2009 3:30 PM

    Any ideas please?
    Regards,
    Ravikanth

  • BSP Web Application anonymous and no-anonymous for Solution Manager 4.0

    Hi all,
    I’ve created BSP Web Application to access Earlywatch, alerts, monitoring from Solution Manager 4.0:
    1.- http://emvpml501.endesa.es:8000/sap/bc/bsp/sap/dswp_bsp?sap-client=420&ISBSP=X&CMD=SLDSP&SLID=000000380242000&ASID=0000000265&SUBASID=0000000265&ISIV=X
    2.- http://emvpml501.endesa.es:8000/sap/bc/bsp/sap/dswp_bsp?sap-client=420&ISBSP=X&CMD=SLDSP&SLID=000000380242000&ASID=0000000267&SUBASID=0000000267&ISIV=X
    3.- http://emvpml501.endesa.es:8000/sap/bc/bsp/sap/dswp_bsp?sap-client=420&ISBSP=X&CMD=SLDSP&SLID=000000380242000&ASID=0000000266&SUBASID=0000000266&ISIV=X&sap-user=ES02532022k&sap-password=endesa
    URL (1, 2) needs authentication, appears a pop-up to type usr/pwd
    URL (3) is anonymous, I’ve added usr/pwd in order to pass logon and It works ok.
    My problem is that when I first access to anonymous URL(3), and after, I return to html file, to access other URLs(1 or 2), these URLs don’t appear logon pop-up to authenticate.
    Does anyone know about this ?
    Regards,
    Raul

    Hi Raul,
    The problem is : when you access link 3 , you are authenticated with user : ES02532022k and password=endesa, an one time authenticated ,the  system not inquiry logon pop-up anymore.
    My suggestion is NOT access link with login and pass...
    I hope this help you..
    Claudenir Bispo

  • SSO for SAP and Non-SAP applications without Enterprise Portal

    Dear all,
    Is it possible to implement SSO for both SAP and non-SAP applications without involvement of EP at all?
    I have gone through this link.
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/e5/4344b6d24a05408ca4faa94554e851/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/e5/4344b6d24a05408ca4faa94554e851/frameset.htm</a>
    But I still i am not able to get the precise answer on how to enable SSO for both  SAP and non-SAP applications without EP.
    We have decided not to implement EP in first phase of SAP implementation. But we need to enable SSO for other SAP and Non-SAP applications.
    A detailed description on how to deal this kind of scenarios will be helpful.
    Thanks.

    A client of our's uses <b>SAP Enterprise Portal</b>, and is using the SAP SSO, which is implemented with tickets, and requires the use of SAPSECULIB.  My company provides an application for this client, and our application in hosted in our data center for the client, as a Software as a Service application, obviously across the internet.  Our client, which owns a SAP license, has asked that we support the SAP SSO as a non-SAP SSO application.  The client user's SSO ticket will be created from SAP EP, and then passed across the internet to our application, and we are to use that SSO ticket as an authentication ticket to our application.  I beleive I know how to do this work technically, having reviewed the SAP document named: "Dynamic Library for Verifying SSO Tickets in Third-Party Software"   Specification   Version 2.00  December 2005.
    My question is, does my company have the right to use the SAPSECULIB?  Where is the official download and <b>license</b> download, that indicates we can download this library, and use it to support a SAP customer?  We do not own a SAP license.  Thank you for your help.  I have searched many places in SAP support.<b></b>

  • How to share the same session between JNLP Application and browser session

    How to share the same session between JNLP Application and browser session using BasicService.showDocument(url) method? It appears whenever i launch any URL from within a JNLP application using BasicService.showDocument(url) , it creates new instance of browser and session even after i used cooke handlers to restore JSESSIONID and Ltpa token etc.
    public static int showDocument(String urlToOpen)
    BasicService obj = (BasicService) ServiceManager.lookup("javax.jnlp.BasicService");
    obj.showDocument(urlToOpen);
    }

    Try using Reflection

  • How can we do the data migration between Oracle Applications and SAP R/3.

    Hi All,
    How can we do the data migration between Oracle Applications and SAP R/3 system.What are all the possible ways to move bulk data from Oracle Apps to SAP r/3 system.
    Provide any 3rd party tools which supports data migration and also pls rpovide the SAP's own data migration tools with supports the above feature.
    Awaiting for best possible solution.
    Thanks in advance.
    Regards
    Dharmaraju

    the 3rd party tool is ETL , you can use ETL tool and the prepare the load files then you can use LSMW method to upload the data to SAP.

  • Reading a document from application server / opening in SAP session

    Hi guys,
    we  have a requirment has follows , please help me with your inputs.
    We have list of documents available in the DMS server....(XLS,DOC,PDF)
    1. How to get the list of file names ( available in the DMS server )  into the internal table.
    2. i need to open these documents by clicking - into the same sap session itself. (it should not open in windows)
    Please Note : Many of our forum friends earlier to open the file in windows.
    regards
    Giri

    Hi,
        You can show any  doc that is uploaded in DMS using the URL of the doc . the doc will be shown in a container. You can refer the std prog . SAPRDEMOPIVOTINTERFACE.. or some thg like that ( i dont remember the exact name ) .
    You need to pass the Class name . object type and object name to  find the URL.  Check transaction OAER and enter class as SSOFFICEINTEGRATION ,  type as OT and name as SSOFFICEINTEGRATION.
    Hope this helps.

  • About integration between SAP and non-SAP applications via javaidoc classes

    Hi,All
    Now we are implementing a SAP-Retail project,we encounter a problem of integration between SAP and non-SAP applications(POS),we want to set Inbound/Outbound between SAP and POS applications realtimely,POS can connect to the SAP system via VPN,weather it can be implemented?
    I conceive to implement it with SAP Java Connector IDoc Class,I don't know weather it is the best solution?If not,please give some other proposal.
    I have download the classes from SAP website and try it with the samples provided by SAP(JCoIDocSample1.java/JCoIDocSample3.java),In my testing,Inbound is succeed,but,in SAP-Retail IS,standard Outbound message type is defined via file port,some one told me that SAP Java Connector IDoc Class can only receive idocs from tRFC port?is it true?If not,please tell me how to deploy in SAP so java program can receive idocs from file port?

    We too are interested in finding information on integration between SAP and Intergraph.  Were you able to obtain information and I was wondering if could share this with us.
    Thanks,
    Sue
    City of Edmonton

Maybe you are looking for

  • Why doesn't my call waiting feature work AT ALL?

    My call waiting feature does not work at all. I receive absolutely no alert when I am on the phone and have a second incoming call. My phone goes straight to voicemail for the person who is attempting to call me while I'm on the phone.

  • Ora 12543 tns destination host not reachable

    Dear All, OS: RHEL 5 DB VERSION:-11.2.0 I am facing problem related to ora 12543 tns destination host not reachable The problem here is little bit different what exactly other face:- i have 2 servers with name abc.localdomain & xyz.localdomain. Db na

  • Arabic text in indesign

    Hi I have indesign cs6 version 8.0.2. I would like to know how I can have a document that has arabic and english text. As when i copy and paste my arabic text into a text window, with the correct font selected (adobe arabic), it does not work. Do I n

  • How do I add songs to my iphone using a different computer?

    The original computer I used to import songs onto my iphone has crashed.  I now have a new computer that I am using.  I can add songs to the itunes library and update my iphone, however my iphone will not import any songs from the computer.  How can

  • Update a file from WSP in several site collection based on my SiteDefinition

    Hi, i have a minimalisitic SiteDefinition with a Stapling Feature. The Stapling Feature includes one site-scoped and another web-scoped feature. Within the Site-Scoped Feature i am deploying tweo pages. <?xml version="1.0" encoding="utf-8"?> <Element