Sap-syscmd=nocookie and Statefull BSP's - Session timeout

I have a tricky problem - and I'am hoping for your helpfull input... please..
I have developed a Statefull BSP application - and this application should be called from a SAP CRM application - and it should be possible to call and execute this aplication in a new session everytime it's called from CRM (a new controller/model instance per call).
In the CRM application I can define the JavaScript which should be exectued in order to start the external application - and I have used the script window.open('bsp-url) to start my BSP application.
In my first attempt I ran into the problem that all new windows was started in the same new session - with the consequence that all new windows tried to use the same controller and model instance - leading to inconsistent data...
Then I read an SDN article about the parameter sap-syscmd=nocookie. With this url parameter it should be possible to force the BSP to be executed in a new session - and it works.... or... a new session is generated and the BSP generates the correct output after the initial call  (and according to SM04 I have a new session). I was quite happy until I pressed a button in my BSP page triggering an HTMLB-event - which lead to the following error: "400 Session timed out - please login again". So it looks like the 1. part is okay with the new session - but the response generated and sent to the browser cannot frind it's way bay to the right session in SAP... what did I do wrong???

I have already tried with sap-sessioncmd=open - and the first time the call is made from CRM a new sesion is created and the BSP is intialized. But if I go back to the CRM application again (without closing the BSP window) and hits the button again - then a new window is created but no new session meaning that the underlying BSP is referenced in both windows - and producing wrong results (they both refer to the same instance of the BSP). When I use sap-syscmd=nocookie - I get a new window and a new session everytime I hit the button in CRM, but for some reason the page-output generated cannot find it's way back to this session afterwards...

Similar Messages

  • How to check and change the dafault session timeout of the Portal?

    Hello,
    When leaving a portal page open without using it for a certain amount of time and then accessing it again the Session times-out.
    Where can I check and change this default time-out time in case I would like to extand it for the end users?
    Roy

    Hi Roy,
    Session timeout includes multiple settings (J2EE setting and SSO setting at User Management).
    Defining the Timeout in J2EE Session
           1.      Open file web.xml (path depends on the version of EP6.0. If it is based on NW04, then
    ..\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF
           2.      Enter a value in minutes under <session-timeout>. The value should roughly correspond to the length of a synchronization cycle. The default is 30 minutes.
    After a successful login, it receives a SSO ticket which is valid for longer duration (generally 8 hrs, default which you can changed using  "System Admin" as mentioned by Yoel.
    Thanks,
    Swapan

  • SAP E- Recruitment and Manager BSP

    Hi,
    When i try loging to Manager BSP encountring an error message "you dont have required authorization to use this start page". btw we are on E- Recruitment Enhancement pack 1.
    I have maintained the required settings. ie. reference user and a dialog user. Have also maintained Business partner for this role.
    Rest of my other roles like internal candidate / ext candidate, recruiter , restricited recruiter, administrator are working fine.
    Manager BSP is an issue. Would appreciate if you could share in your inputs on same.
    Thanks for your time.
    Kind regards
    Saipriyan

    Which authorization roles did you assign to your user?
    Try out the SAP_RCF* roles.
    In productive use, build your customer based roles.
    If you customized customer specific start pages, you need customer roles. There is an authorization check on the start page id.
    Trace the authorization checks via Transaction ST01

  • I received an itunes store gift certificate. When I try to redeem it, the screen says Session Timeout.  I have entered and reentered the certificate code, but Session Timeout comes up each time.  What am I doing wrong?

    I received an iTunes gift certificate for Christmas.  When I try to redeem it, a window comes up saying "Session Timeout."  I have signed out, signed back in, tried again, and when I enter the code and press Redeem, the "Session Timeout--Your session has timed out.  Try again." message pops up.  What am I doing wrong?

    Clic here:  iTunes: Advanced iTunes Store troubleshooting
    Then click:  Expand All Sections
    Then scroll down to error 5002.

  • HFM and Session Timeout

    Is there any way to change the time before you are automatically logged out of an HFM (or Workspace) web session due to inactivity?
    Thanks.
    Terri T.

    Hi,
    Try something like this:
    Workspace timeout settings:
    ● Application server session timeout— Time in minutes after which the application server
    times out a session if no requests are received for that session
    ❍ In \Workspace deployment\WEB-INF\web.xml:
    <session-config>
    <session-timeout>60 </session-timeout>
    </session-config>
    ❍ Default is 60 minutes
    Note:
    All Reporting and Analysis Web applications session timeouts should be greater than
    10 minutes.
    ● Workspace timeout—Time in minutes after which Workspace warns and logs out inactive
    users
    Workspace sends “keep alive” requests to all the application servers (Workspace, Financial
    Reporting, Web Analysis, and Oracle's Hyperion® Performance Scorecard – System 9). If
    there is no activity in Workspace per the session timeout setting, the user is warned that the
    session is about to end. If the user does not take action within 5 minutes, the user is logged
    out.
    ❍ In \conf\subcontext.properties of the Workspace Web application:
    KeepAliveInteral=10
    SessionTimeout=30
    22 Administration Tools and Tasks
    ❍ Default is 10 minutes for keep alive and 30 minutes for session timeout
    Regards,
    Marcin Kuzdra

  • Statefull and stateless Bsp application

    Hi All,
    Plz tell me What is the difference between Statefull and stateless Bsp applications.
    Thanks.
    Regards,
    Pooja Joshi.

    hi
    good
    go through this link,this would help you to solve your problem.
    http://www.sap-press.de/download/dateien/933/sap_press_bsp_programming.pdf
    thanks
    mrutyun^

  • Trouble changing a class attribute in a STATEFULL bsp app - PLEASE HELP!!!!

    hello, i have some trouble changing the value of a class attribute, in certain point of the execution of a statefull bsp app. The scenario is: the bsp app is on a url iview in a portal; i have some link in the portal, that do a window.open (pop up) of that app. the question is: how can i change the class attribute of the bsp app when i close that pop up?, if when i first click the link that show me the pop up, its doesn't create another instance of the class...i mean it continuing working with the same instance of the url iview in the portal. ANY help it will well received. Thanx in advance

    hello Durairaj...yes indeed in the other thread thats the issue with the portal_version attribute, the person who create the iview dont want to change it...so i try to solve it with something else....thats bring me to another problem (posted in this thread). Now i have a question...in the url iview it calls a template that start the bsp app...i mean is not the url iview who calls the bsp app is a middle template...with this scenario can i pass the parameter sap-sessioncmd=open to the url iview or i have to pass it to the bsp app directly when in the middle template i call it??? another question when i pass that parameter via url, it create another instances (apart) of the class or restart the same instance that the app work with until that moment....tell me more about that parameter coz' i am new in bsp and i need help....i will give a lots of rewards point who help me!!! i promise....i am kind of desperade for sure....  thanx in advance

  • Internal table content not retained in statefull BSP application.

    Hi Forum,
    I have a statefull BSP application with two pages.I fill an internal table ITAB in the OnInputProcessing eventhandler of first page and then transfer this ITAB to second page , but when i navigate back from second page to first page , the internal table ITAB is cleared.I need the data in ITAB when i come back to first page.
    The internal tables that i fill in the OnCreate eventhandler of the first page are intact but this  ITAB that  i fill in OnInputProcessing is cleared.
    I tried using
    runtime->keep_context = 1.
    but it is not helping either...and i have checked the code carefully to ensure that ITAB is not cleared anywhere using CLEAR ITAB.
    ITAB is declared in PAGE ATTRIBUTES using a tabletype.
    What might be the problem?
    Thanks,
    Anubhav.

    Hi Heth,
    I carried out a small test application as follwos:
    1)Filled an internal table ITAB_ZSCMG in OnCreate event of first page.
    2)Filled an internal table ITAB_MATERIALS in OnInputProcessing for the OnClick of button event.
    When my application was stateless the internal table ITAB_ZSCMG was initial in the OnInputProcessing event .
    When i switched to STATEFULL mode , it contained data in the OnInputProcessing .
    3)Crearted one more page SECOND.HTM.
    4)in the OnClick event for button in OnInputProcessing eventhandler i navigated back to FIRST.HTM .
    Found that all the internal tables were initial , although my page was statefull.
    All these ITABs were declared using Page Attributes.
    So i guess , a statefull application just means that DATA is retained between different eventhandlers of the SAME PAGE and not if we navigate from that page....
    Hence in my case i have to transfer the ITAB back to first page again using SERVER SIDE COOKIES..
    Please correct me if my derivations are wrong!!!
    But the question still remains....
    How to retain data after navigation?
    Do we have a solution in BSP or we need to use SET/GET or EXPORT/IMPORT or COOKIES?
    Thanks,
    Anubhav.
    Edited by: Anubhav Jain on Jun 19, 2008 9:04 AM

  • Need to warn user of session timeout in BSP app hap_document......

    Hi,
    We're using the hap_document app to allow employees to change appraisal documents in ESS and for managers to create them thru MSS....
    When employees have their documents open for more than 1 hour, the next time they click on save, it takes them to the session timeout (ICM, version 6040, module icxxthr_mt.c)....
    Is there a way to add a timer to the document.htm or body.htm pages in the application to start a timer, reset it each time user clicks on save, and warn him with a popup when we're within 5 minutes to a timeout...
    I've read messages on the BSP thread that say...
    "Document.htm is split in two frames. One hidden to enable session handling, the second one visible which contains the document.
    So the document.htm is not refreshed, the second frame is refreshed. I tried your approach as well and was not able to tie the script to the second frame.
    Regards and Groetjes,
    Maurice"
    I've also read Thomas's stateful/stateless timeout parameters article...
    Can anyone help me with where I would put the timer javascript code (if not in document.htm or body.htm) and which timeout parameter to check...
    Thanks for all your help,
    Venkatesh

    Look at the sample code..Will solve your problem..
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <script type="text/javascript">
    function remind() {
    var msg = "Your Session will be timed out in 10 Secs";
    alert(msg);
    </script>
    <htmlb:content design="design2003" >
      <%
      data: v_rem type string.
      DATA: port TYPE STRING.
      port = request->get_header_field( if_http_header_fields_sap=>server_port ).
      DATA: services TYPE TABLE OF ICM_SINFO.
      CALL FUNCTION 'ICM_GET_INFO' TABLES SERVLIST = services.
      FIELD-SYMBOLS: <service> TYPE ICM_SINFO.
      DATA: wait TYPE STRING.
      READ TABLE services ASSIGNING <service> WITH KEY service = port.
      wait = <service>-KEEPALIVE - 10.
      CONDENSE wait.
      concatenate `'remind(`  wait `)',2000` into v_rem.
      %>
      <htmlb:page onLoad = "setTimeout(<%= v_rem %>)"
                  title  = " " >
        <htmlb:form>
          <htmlb:textView text   = "Hello World!"
                          design = "EMPHASIZED" />
          <htmlb:button text    = "Press Me"
                        onClick = "myClickHandler" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <i>* Reward each useful answer</i>
    Raja T

  • Loosing application attribute in a statefull bsp app

    Hello guys,
    i have a little problem. I got a statefull bsp app that contain an application attribute that is loose between the oninit and the oninput...any ideas that could solve my problem? Thanx in advance

    Hi Mariana,
    I got (perhaps ?) a very similar problem just few minutes ago.
    In my OnInitialization event handler, I have :
    DATA: ta_usr01  TYPE TABLE OF usr01.
    SELECT * FROM usr01 UP TO 100 ROWS
             INTO TABLE ta_usr01.
    GET REFERENCE OF ta_usr01 INTO ta_data.
    where
    ta_data is declared as a page attribute TYPE REF TO DATA. 
    When I tried to dislay the data in the Layout, I observed in Debud that ta_data was like this :
    FREED STACK:{A:2*TYPE=%_T00004S00000072O0000002784}
    And then "Eurêka !" 
    It is because
    ta_data is pointing on a local variable (ta_usr01) which has long gone (since the end of OnInitialization event handler) 
    Everything went fine once I had declared ta_usr01 as a Page attribute (which means declared globally)
    I guess you experience the same kind of problem.
    Best regards,
    Guillaume

  • E-recruiting Session Timeout BSP application

    Hi,
    for the BSP applications for E-recruiting Session Timeout occurs as a result I am not able to view any start page.
    Regards,
    Manish

    Hi,
    Go to SMICM and Goto-Services
    There for http go to change.
    And increase the time for keep alive and processing time to 1000 sec in the beginning . Later after all applications are opened atleast once you can reduce it.
    Also if the server is restarted it becomes default.
    Regards,
    Divya

  • How Backup and restore BSP application to Local computer

    How Backup and restore BSP application to Local computer.
    How Backup whole Package to a Local file?

    check out this code sample.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3330a5e1-0701-0010-6e81-e88984de611a">Tool to Download Complete BSP Application</a>
    Regards
    Raja
    is the following thread of yours is answered? or do you have more questions.
    htmlb tableview with CSS
    Message was edited by: Durairaj Athavan Raja

  • Is WAS 6.2 needed to develop and deploy BSP applications

    I'm currently on SAP v4.71. I'm trying to find out if WAS 6.2 is needed to develop and deploy BSP applications or is BSP available straight from the 4.71 box.
    Any input is greatly appreciated.
    Thanks

    Hello sap gurus, I am new to ABAP. I alredy have SAP NetWeaver Enterprise Portal on MaxDB - Developer Edition Sneak Preview installed on my server. However I want to use the ABAP Development Workbench.  I do now want to buy a book with cds or go to the sap shop site to get minisap.
    Is there any way to Use ABAP Development Workbench with Web Application Server 6.4 or 6.1?
    If yes where to get the WAS 6.1?
    Thanks

  • Difference between SAP 4.6C and SAP ECC6.0 debugger

    Hi,
    Can any one give me the difference between SAP 4.6C and SAP ECC6.0 in respect to following points
    Assertions and Breakpoints
    New Debugger
    New Editor

    Hi Anjali,
    There is lot difference between 4.6c and 6.0
    1) ecc 6.0 coming with inbuild webdynpro , BSP it is not 4.6c
    2) In ecc we have interactive forms concept where it was not there in 4.6c
    3) 4.6c there is no unicode concept here we have unicode and non unicode
    Reward point if helpful.
    Regards
    Sasikanth.Ch

  • Difference between BSP_WD_CMPWB  and SE80/BSP Application

    Hi Guys,
    This is related to SAP CRM Module.
    Can somebody tell the difference between BSP_WD_CMPWB and SE80 / BSP Applications.
    Also can somebody give the tutorial for BSP_WD_CMPWB.
    Thanks,

    post this in CRM web forum at
    SAP CRM: Interaction Center

Maybe you are looking for

  • Tempo grid not related audio regions

    So I'm feeling stupid - I'm working on a sound design which uses only human voices. I've placed tons of samples into the arrange window, found an order I like for some of them and now want to align with them with the beginnings of bars related to the

  • HP LaserJet P1606dn Printer

    I have LaserJet P1606dn Printer i cofig ip address  manual, now i move it to another network i want change ip

  • Dual Boot Snow Leopard and Leopard

    Hi All i am looking to Dual boot my Intel iMac with Leopard (10.5.8) + Snow Leopard (10.6) for testing purposes. How do i go about doing this? I have the Leopard install disc i do not have Snow leopard yet and the only version i have seen is an updat

  • Adjusting pixels in PhotoShop CS4 and removing 'rough edges'

    PhotoShop CS4 WinVista Ultimate Need: 1) File #1 - I need to adjust the pixels on an *.eps file to a maximum of 600 pixels. The entire drawing is a single layer to my knowledge.           2) File #2: - I also need to adjust the rough edges of a 'clou

  • CorrelationSet error on TaskActionHandler Service

    Hi all, there's an error on CorrelationSet related to property taskId (propertyAlias: task/taskId) when using the Human Workflow Wizard (Pattern= sequential). I experienced this problem running "OrderBooking" tutorial and the util StarLoanWithWorkflo