Timeout in BSP

Hi,
we have currently a strange problem with a generic bsp application.
In different cases it shows timeouts during application execution.
This happens in SOME actions from the users (not all).
I assume that this is not a real timing problem. The waiting time of the user isn't the problem (sometimes the action is triggered immediately after another one)
Maybe this is a memory administrative problem. But i don't know the special variables responsible for BSP Pages. Maybe one of you out there knows them?
Any other hints regarding this?
Thx, best regards and a happy new year
Florian
Message was edited by:
        Florian Koch

Thanks Bhaskar for the help,
but like i said, this is(was) not normal timeout problem because it occurs in regular situations - even after immediate user actions.
I have solved it on my own in the meantime. It was based on an internal coding error (session got lost).
Best Regards
Florian

Similar Messages

  • 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

  • SAP BSP iview with timeout

    Hi ,
    We have created one SAP BSP iview . Is there a way to set time out only for this view instead of all portal application  ?
    Pl. let me know if anybody has any idea or hint.
    Best Regards,
    Arpit.
    Edited by: Arpit1983 on Jan 25, 2011 8:57 PM

    Hi ,
    in SICF -->BSP we do have Session timeout for a stateful connection . But how about stateless connection.
    if we have iview for this BSP , can we set timeout only for this iview.
    In our case, we need to give 40 min to user to fill the form ( i.e BSP iview ) . How to set this timeout for BSP iview
    Regards,
    Arpit
    Edited by: Arpit1983 on Mar 5, 2011 7:46 AM

  • How to deal the timeout session in BSP application

    Hello everybody,
    inside a BSP application, I want to inform the user that he is near to reach the timeout of its session.
    So I wonder how to know the lifetime of the session and how to calculate the time from its connection.
    Anyone of you can help me on his topic?
    Thanks in advance.

    Starting point: <a href="/people/mark.finnern/blog/2003/09/24/bsp-in-depth-confusion-between-stateless-stateful-and-authentication">BSP In-Depth: Confusion between Stateless, Stateful and Authentication</a>
    The trick will be to after each roundtrip set a JavaScript timer tied to a alert statement. The weblog gives you ideas of what values you want to look at.

  • 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

  • BSP timeout issue - 500 connection timeout(-5)

    Hi all,
    I know there were quite a bit of postings regarding this topic, however, I could not locate the appropriate solution to the scenario that we are currently experiencing. Any input on this is greatly appreciated. We have also posted an OSS message regarding this as well.
    ERROR:
    500 Connection timed out (-5)
    Error: -5
    Version: 6020
    Component: ICM
    Module: icxxthr_mt.c
    Line: 2464
    Detail: Connection to partner timed out
    We have a stateless BSP application, and the page in question is set as "stateful from now until page change", and the page type is flow logic. We have this application running in production for a year now, and always receive complaints from a specific user that she can't load up her page (a 500 connection timeout(-5) error got displayed instead). Our basis folks have set up the TIMEOUT parameter as 900 secs, and the icm/keepalive parameter as 60 secs. We attempted to test with the same amount of data in both our test and production environments, and with the same system parameter settings (TIMEOUT and icm/keepalive parameters), however, we noticed we did not get timed out in our test environment, but continued to get a connection timeout error in the  production environment (only when we retrieved data from this user). We tried to troubleshoot by following the steps listed below.
    1) We tried to narrow down to see whether it was the data extraction part within the program that's prolonging the process. We executed the Function module in the backend (R/3) that will perform the data extraction of the program, and on average, it took about 100,000,000 microseconds to finish running in both environment. And most of the time, the Function Module in our production environment finished faster than our Test environment.
    2) Next step, we executed the BSP application via our portal environments(test and production), and we did not get a timeout error in the test envionrment; however, in our production environment, within 2 minutes or so, we received a connection timeout error.
    The differences between the 2 systems is minimal, and in fact, our production server is much powerful (hardware wise) than our test system. Other than some "unknown to us" system settings (from looking at the error, it's ICM related?), I cannot think of what else will cause the connection timeout that we are currently facing. I spoke with our basis folks, and they have no idea either. Can this be user specific (I doubt it)?
    Any help or input from anyone is greatly appreciated.
    Thanks in advance for all your help!!!
    Best regards,
    Cyanna

    Thanks Raja and  Amandeep for your response. All the system profile are consistent across the production server. I have a question for Amandeep. What's exactly a frame swap application? Is it portal related? We are still trying to troubleshoot the issue, and we are still trying to figure out whether there is a system parameter difference between the 2 systems. We even checked the BSP performance wiki.....
    Please, any help you can offer is greatly appreciated!
    Thanks much and regards,
    Cyanna

  • 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...

  • Bsp error - synthax error - standard pages

    http://server:8000/sap/bc/bsp/sap/dswpnotifcreate/selfsubmit.html
    This is standard and I get the following message
    500 SAP Internal Server Error
    Error message: Syntax error in program CL_O2C3YJC90QK4A21UYC755ZFS5D7CP . ( type of termination: RABAX_STATE )
    WITH DUMP
    Runtime Errors         SYNTAX_ERROR
           Occurred on     12.10.2005 at 14:24:10
    Syntax error in program "CL_O2C3YJC90QK4A21UYC755ZFS5D7CP ".
    What happened?
    What can you do?
    Error analysis
    How to correct the error
    System environment
    User, transaction...
    Information on where terminated
    Source code extract
    000360     if sy-subrc = 0.    " not yet existing
    000370       context = <reg_instance>-context.
    000380   *   set current page instance
    000390       m_page_instance = context->m_page_instance.
    000400   *   re-init page internal properties
    000410       context->m_page_instance->do_reinit(  ).
    000420       return.
    000430     endif.
    000440
    000450
    000460   * create new page context
    000470     create object l_page_context
    000480       exporting runtime = c_runtime.
    000490
    000500   * instantiate new page instance
    000510     if m_page_type = 'C'.
    000520       try.
    000530         create object l_controller_instance type (m_page_class).
    000540         create object l_controller_adapter.
    000550         l_controller_adapter->m_adaptee = l_controller_instance.
    000560         l_controller_instance->adapter  = l_controller_adapter.
    000570         l_page_context->m_page_instance = l_controller_adapter.
    000580         catch cx_root.
    000590           raise exception type cx_bsp_impl_deprecated
    000600             exporting page_name = m_page_name.
    000610
    000620       endtry.
    000630     else.
    000640   * instantiate new page instance
    000650       try.
    >         create object l_page_context->m_page_instance
    000670           type (m_page_class).
    000680
    000690         catch cx_root.
    000700           raise exception type cx_bsp_impl_deprecated
    000710             exporting page_name = m_page_name.
    000720
    000730       endtry.
    000740     endif.
    000750
    000760   * fill-up context information
    000770     l_page_context->m_page_name         = m_page_name.
    000780     l_page_context->m_page_id           = ''.
    000790     l_page_context->m_page_class        = m_page_class.
    000800     l_page_context->m_page_parameters   = m_page_parameters.
    000810     l_page_context->m_page_html_pool    = m_page_html_pool.
    000820     l_page_context->m_page_script_code  = m_page_script_code.
    000830     l_page_context->m_page_mime_type    = m_page_mime_type.
    000840     l_page_context->m_page_secure       = m_page_secure.
    000850     l_page_context->m_page_lifetime     = m_page_lifetime.
    Contents of system fields
    SY field contents..................... SY field contents.....................
    SY-SUBRC 0                             SY-INDEX 1
    SY-TABIX 0                             SY-DBCNT 1
    SY-FDPOS 11                            SY-LSIND 0
    SY-PAGNO 0                             SY-LINNO 1
    SY-COLNO 1                             SY-PFKEY
    SY-UCOMM                               SY-TITLE HTTP Control
    SY-MSGTY                               SY-MSGID
    SY-MSGNO 000                           SY-MSGV1
    SY-MSGV2                               SY-MSGV3
    SY-MSGV4
    Active calls / events
    No.... Type........ Name..........................
           Program
           Include                                  Line
           Class
         7 METHOD       GET_PAGE_CONTEXT_CURRENT
           CL_BSP_CONTEXT================CP
           CL_BSP_CONTEXT================CM009         66
           CL_BSP_CONTEXT
         6 METHOD       ON_REQUEST_ENTER
           CL_BSP_RUNTIME================CP
           CL_BSP_RUNTIME================CM007         45
           CL_BSP_RUNTIME
         5 METHOD       ON_REQUEST
           CL_BSP_RUNTIME================CP
           CL_BSP_RUNTIME================CM002        100
           CL_BSP_RUNTIME
         4 METHOD       IF_HTTP_EXTENSION~HANDLE_REQUEST
           CL_HTTP_EXT_BSP===============CP
           CL_HTTP_EXT_BSP===============CM001         24
           CL_HTTP_EXT_BSP
         3 METHOD       EXECUTE_REQUEST
           CL_HTTP_SERVER================CP
           CL_HTTP_SERVER================CM00G        326
           CL_HTTP_SERVER
         2 FUNCTION     HTTP_DISPATCH_REQUEST
           SAPLHTTP_RUNTIME
           LHTTP_RUNTIMEU02                           490
         1 MODULE (PBO) %_HTTP_START
           SAPMHTTP
           SAPMHTTP                                    13
    Chosen variables
         7 METHOD       GET_PAGE_CONTEXT_CURRENT
           CL_BSP_CONTEXT================CP
           CL_BSP_CONTEXT================CM009         66
    CONTEXT                       
                                   F0000000
                                   F0000000
    L_PAGE_CONTEXT->M_PAGE_INSTANC
                                   F0000000
                                   F0000000
    L_CONTROLLER_ADAPTER          
                                   F0000000
                                   F0000000
    SPACE
                                   2
                                   0
    SY-XFORM
                                   222222222222222222222222222222
                                   000000000000000000000000000000
    SY                             ########################################
                                   0000000000000000000000000001000000000000
                                   0001000000000000000000000004000000000000
    ... +  40                      #######################################P
                                   0000000000000000000000000000000000000005
                                   0001000B00010000000100000000000000000000
    ... +  80                      ########################################
                                   0000000000000000000000000000000000000000
                                   0000000000000000000100000000000000000000
    ... + 120                      #######################################T
                                   0000000000000000000000000000000000010005
                                   0000000000000000000000000000000000060004
    ... + 160                      ################XC#############   E0   0
                                   0000000000000000540000000000000222432223
                                   0000000100000000830030000C0000C000500000
    ... + 200                      010         ####__S                 100
                                   3332222222220000555222222222222222223332
                                   0100000000000000FF3000000000000000001000
    ... + 240                           00
                                   222223322222222
                                   000000000000000
    %_EXCP                        
                                   F0000000
                                   F0000000
    %_SPACE
                                   2
                                   0
    ME->M_PAGE_NAME                selfsubmit.html
                                   766677666726766
                                   35C6352D94E84DC
    %_DUMMY$$
                                   2222
                                   0000
    SYST                           ########################################
                                   0000000000000000000000000001000000000000
                                   0001000000000000000000000004000000000000
    ... +  40                      #######################################P
                                   0000000000000000000000000000000000000005
                                   0001000B00010000000100000000000000000000
    ... +  80                      ########################################
                                   0000000000000000000000000000000000000000
                                   0000000000000000000100000000000000000000
    ... + 120                      #######################################T
                                   0000000000000000000000000000000000010005
                                   0000000000000000000000000000000000060004
    ... + 160                      ################XC#############   E0   0
                                   0000000000000000540000000000000222432223
                                   0000000100000000830030000C0000C000500000
    ... + 200                      010         ####__S                 100
                                   3332222222220000555222222222222222223332
                                   0100000000000000FF3000000000000000001000
    ... + 240                           00
                                   222223322222222
                                   000000000000000
    ME->M_PAGE_CLASS               CL_O2C3YJC90QK4A21UYC755ZFS5D7
                                   445434354433543433554333545343
                                   3CFF2339A3901B4121593755A63547
         6 METHOD       ON_REQUEST_ENTER
           CL_BSP_RUNTIME================CP
           CL_BSP_RUNTIME================CM007         45
    ME->C_NAVIGATION              
                                   F0000000
                                   4000000B
    %_PRINT                            000
                                   2222333222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80                                0 ########
                                   2222222222320000000022222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160                                    0                 ####
                                   222222222222223222222222222222220000
                                   000000000000000000000000000000000000
    %_DUMMY$$
                                   2222
                                   0000
    %_ARCHIVE
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 200
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 240
                                   222222222222222
                                   000000000000000
    ME                            
                                   F0000000
                                   90000006
    ME->C_REDIRECT_URL
    ME->C_REDIRECT_PAGE
    ME->C_REDIRECT_TYPE            0
                                   0000
                                   0000
    ME->C_CONTEXT                 
                                   F0000000
                                   80000007
    SPACE
                                   2
                                   0
    ME->IF_BSP_RUNTIME~SESSION_ID  SID:ANON:sapzoo_SMG_00:YWoc_ZnD_Z7HJoimb
                                   5443444437677665544533355665564553446666
                                   394A1EFEA310AFFF3D7F00A97F3FAE4FA78AF9D2
    ... +  40                      2WAz0Vjxh4P8RnL2CMZkGe0-ATT
                                   354735676353564344564632455
                                   271A06A884082EC23DAB750D144
    ME->C_CONTEXT_APP->M_SESSION_I SID:ANON:sapzoo_SMG_00:YWoc_ZnD_Z7HJoimb
                                   5443444437677665544533355665564553446666
                                   394A1EFEA310AFFF3D7F00A97F3FAE4FA78AF9D2
    ... +  40                      2WAz0Vjxh4P8RnL2CMZkGe0-ATT
                                   354735676353564344564632455
                                   271A06A884082EC23DAB750D144
    SYST                           ########################################
                                   0000000000000000000000000001000000000000
                                   0001000000000000000000000004000000000000
    ... +  40                      #######################################P
                                   0000000000000000000000000000000000000005
                                   0001000B00010000000100000000000000000000
    ... +  80                      ########################################
                                   0000000000000000000000000000000000000000
                                   0000000000000000000100000000000000000000
    ... + 120                      #######################################T
                                   0000000000000000000000000000000000010005
                                   0000000000000000000000000000000000060004
    ... + 160                      ################XC#############   E0   0
                                   0000000000000000540000000000000222432223
                                   0000000100000000830030000C0000C000500000
    ... + 200                      010         ####__S                 100
                                   3332222222220000555222222222222222223332
                                   0100000000000000FF3000000000000000001000
    ... + 240                           00
                                   222223322222222
                                   000000000000000
    L_PAGE_INSTANCE               
                                   F0000000
                                   F0000000
    ME->C_CONTEXT->M_PAGE_INSTANCE
                                   F0000000
                                   F0000000
    SYST-REPID                     CL_BSP_RUNTIME================CP
                                   4454555554544433333333333333334522222222
                                   3CF230F25E49D5DDDDDDDDDDDDDDDD3000000000
         5 METHOD       ON_REQUEST
           CL_BSP_RUNTIME================CP
           CL_BSP_RUNTIME================CM002        100
    SERVER                        
                                   F0000000
                                   D0000002
    RC                             0
                                   0000
                                   0000
    ME->C_NAVIGATION              
                                   F0000000
                                   4000000B
    ME                            
                                   F0000000
                                   90000006
    ME->C_REDIRECT_URL
    SY-REPID                       CL_BSP_RUNTIME================CP
                                   4454555554544433333333333333334522222222
                                   3CF230F25E49D5DDDDDDDDDDDDDDDD3000000000
    CL_BSP_RUNTIME=>IF_BSP_RUNTIME min
                                   666
                                   D9E
    ME->C_STATE                    0
                                   0000
                                   0000
    ME->CO_STATE_ON_LEAVE          99
                                   0006
                                   0003
    ME->C_CONTEXT->M_APP_INSTANCE_
                                   F0000000
                                   F0000000
    RSJOBINFO                                                      00000000
                                   2222222222222222222222222222222233333333
                                   0000000000000000000000000000000000000000
    ... +  40                      000000
                                   3333332222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80                      ####
                                   0000
                                   0000
    %_SPACE
                                   2
                                   0
    %_FSREG_001                    ???
    ME->C_REQUEST                 
                                   F0000000
                                   C0000003
         4 METHOD       IF_HTTP_EXTENSION~HANDLE_REQUEST
           CL_HTTP_EXT_BSP===============CP
           CL_HTTP_EXT_BSP===============CM001         24
    SERVER                        
                                   F0000000
                                   D0000002
    %_DUMMY$$
                                   2222
                                   0000
    %_EXCP                        
                                   F0000000
                                   F0000000
    CLIENT_SIDE_EXCEPTION
    SY-REPID                       CL_HTTP_EXT_BSP===============CP
                                   4454555545554553333333333333334522222222
                                   3CF8440F584F230DDDDDDDDDDDDDDD3000000000
    %_ARCHIVE
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 200
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 240
                                   222222222222222
                                   000000000000000
    SY                             ########################################
                                   0000000000000000000000000001000000000000
                                   0001000000000000000000000004000000000000
    ... +  40                      #######################################P
                                   0000000000000000000000000000000000000005
                                   0001000B00010000000100000000000000000000
    ... +  80                      ########################################
                                   0000000000000000000000000000000000000000
                                   0000000000000000000100000000000000000000
    ... + 120                      #######################################T
                                   0000000000000000000000000000000000010005
                                   0000000000000000000000000000000000060004
    ... + 160                      ################XC#############   E0   0
                                   0000000000000000540000000000000222432223
                                   0000000100000000830030000C0000C000500000
    ... + 200                      010         ####__S                 100
                                   3332222222220000555222222222222222223332
                                   0100000000000000FF3000000000000000001000
    ... + 240                           00
                                   222223322222222
                                   000000000000000
    SYST-REPID                     CL_HTTP_EXT_BSP===============CP
                                   4454555545554553333333333333334522222222
                                   3CF8440F584F230DDDDDDDDDDDDDDD3000000000
    ME->M_BSP_RUNTIME             
                                   F0000000
                                   90000006
    L_RC                           0
                                   0000
                                   0000
    L_EXCEPTION                   
                                   F0000000
                                   F0000000
    SY-ONCOM                       X
                                   5
                                   8
    %_SPACE
                                   2
                                   0
         3 METHOD       EXECUTE_REQUEST
           CL_HTTP_SERVER================CP
           CL_HTTP_SERVER================CM00G        326
    SERVER                        
                                   F0000000
                                   D0000002
    SERVTBL                        Table IT_5[6x1112]
    FIRSTALIAS
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 200
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 240
                                   222222222222222
                                   000000000000000
    URLSUFFIX                      selfsubmit.html
                                   766677666726766
                                   35C6352D94E84DC
    FLOW_RC                        0
                                   0000
                                   0000
    TIMEOUT                        000000
                                   333333
                                   000000
    PF_OPCODE_CHANGE_PAR           #
                                   0
                                   2
    PF_OPCODE_CLOSE_INTERVAL       #
                                   1
                                   2
    PF_LOCK_ERROR                  10
                                   0000
                                   000A
    SY-SUBRC                       0
                                   0000
                                   0000
    %_DUMMY$$
                                   2222
                                   0000
    SY-REPID                       CL_HTTP_SERVER================CP
                                   4454555554554533333333333333334522222222
                                   3CF8440F352652DDDDDDDDDDDDDDDD3000000000
    %_SPACE
                                   2
                                   0
    STIME                          16248
                                   0037
                                   00F8
    CL_HTTP_SERVER=>C_STATISTIC_ST 0
                                   0000
                                   0000
    SY-XFORM
                                   222222222222222222222222222222
                                   000000000000000000000000000000
    PF_OPCODE_OPEN_INTERVAL        #
                                   1
                                   1
    %_PRINT                            000
                                   2222333222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80                                0 ########
                                   2222222222320000000022222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160                                    0                 ####
                                   222222222222223222222222222222220000
                                   000000000000000000000000000000000000
    ETIME                          0
                                   0000
                                   0000
    CL_HTTP_SERVER=>M_EXE_TIME     0
                                   00000000
                                   00000000
         2 FUNCTION     HTTP_DISPATCH_REQUEST
           SAPLHTTP_RUNTIME
           LHTTP_RUNTIMEU02                           490
    CLIENT_NAME
    DOCUMENT_IN
    VIRTUAL_HOST                   0
                                   0000
                                   0000
    DOCUMENT_OUT
    SY                             ########################################
                                   0000000000000000000000000001000000000000
                                   0001000000000000000000000004000000000000
    ... +  40                      #######################################P
                                   0000000000000000000000000000000000000005
                                   0001000B00010000000100000000000000000000
    ... +  80                      ########################################
                                   0000000000000000000000000000000000000000
                                   0000000000000000000100000000000000000000
    ... + 120                      #######################################T
                                   0000000000000000000000000000000000010005
                                   0000000000000000000000000000000000060004
    ... + 160                      ################XC#############   E0   0
                                   0000000000000000540000000000000222432223
                                   0000000100000000830030000C0000C000500000
    ... + 200                      010         ####__S                 100
                                   3332222222220000555222222222222222223332
                                   0100000000000000FF3000000000000000001000
    ... + 240                           00
                                   222223322222222
                                   000000000000000
    %_DUMMY$$
                                   2222
                                   0000
    C_SERVER                      
                                   F0000000
                                   D0000002
    %_ARCHIVE
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 200
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 240
                                   222222222222222
                                   000000000000000
    C_SERVER->IF_HTTP_SERVER~CO_CO 2
                                   0000
                                   0002
    SY-REPID                       SAPLHTTP_RUNTIME
                                   5454455555545444222222222222222222222222
                                   310C8440F25E49D5000000000000000000000000
    PF_EYE_END_DESTROYED           4
                                   0000
                                   0004
    CL_ABAP_TRACE=>DEFAULT_VARIANT
                                   F0000000
                                   F0000000
    ERROR_STATE                    0
                                   0000
                                   0000
    PF_TASK_RFC                    #
                                   0
                                   9
    C_STATISTIC_STATE              0
                                   0000
                                   0000
    SY-XFORM
                                   222222222222222222222222222222
                                   000000000000000000000000000000
    SERVER_ACCEPTED               
                                   F0000000
                                   D0000002
    PF_OPCODE_OPEN_INTERVAL        #
                                   1
                                   1
    SERVTBL                        Table IT_5[6x1112]
    FIRSTALIAS
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 200
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 240
                                   222222222222222
                                   000000000000000
    URLSUFFIX                      selfsubmit.html
                                   766677666726766
                                   35C6352D94E84DC
    FLOW_RC                        0
                                   0000
                                   0000
    TIMEOUT                        000000
                                   333333
                                   000000
    %_PRINT                            000
                                   2222333222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80                                0 ########
                                   2222222222320000000022222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160                                    0                 ####
                                   222222222222223222222222222222220000
                                   000000000000000000000000000000000000
    PF_OPCODE_CLOSE_INTERVAL       #
                                   1
                                   2
    C_SERVER->IF_HTTP_SERVER~STATE 0
                                   0000
                                   0000
    ICF_ACTIVE_INVALID             I
                                   4
                                   9
    C_SERVER->C_DEBUGGING_POSSIBLE N
                                   4
                                   E
    C_SERVER->PUBLIC_SERVICE       0
                                   0000
                                   0000
         1 MODULE (PBO) %_HTTP_START
           SAPMHTTP
           SAPMHTTP                                    13
    SY-REPID                       SAPMHTTP
                                   5454455522222222222222222222222222222222
                                   310D844000000000000000000000000000000000
    SYST-REPID                     SAPMHTTP
                                   5454455522222222222222222222222222222222
                                   310D844000000000000000000000000000000000
    %_ARCHIVE
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 200
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 240
                                   222222222222222
                                   000000000000000
    %_DUMMY$$
                                   2222
                                   0000
    %_SPACE
                                   2
                                   0
    Application Calls
    No dump information available
    Application Information
    No dump information available
    Internal notes

    Hi,
    These are the possible notes linked to dswpnotifcreate
    830882 DSWPNOTIFCREATE URL initialization parameters 24.03.2005
    820012 Retransport of OTR Texts for BSP DSWPNOTIFCREATE 23.02.2005
    820015 DSWPNOTIFCREATE: Long text incorrectly transmitted 17.02.2005
    819504 DSWPNOTIFCREATE: OS and DB missing in CRM message from BSP 16.02.2005
    855646 Messages created from Web browser lose attachments II 22.06.2005
    855119 Messages created from Web browser lose attachments 22.06.2005
    879905 Text for category missing in BSP DSWPNOTIFCREATE 16.09.2005
    829635 Create Message: Long text incorrectly formatted
    Eddy

  • Refresh problem of Webdynpro application which is wrapped in a BSP IFrame

    I have a BSP Iframe inside which I am calling a webdynpro application ('zwdc_re_replenishment'). The requirement is that this WD application should be reloaded whenever a timeout occurs. Currently, when there is a timeout, an error is shown.
    In order to achieve this, for this WD Application , I have a SICF node to which I have attached a customized Errorpage via the option 'Redirect URL'.
    Whenever the WD application undergoes a timeout error, my custom error page is called which is named as errorpage.htm. On this page in the 'OnInitialization event', I try to call the WD application URL again (via the following code) which should reload the application. But instead I get a blank page.
    CALL METHOD cl_wd_utilities=>construct_wd_url
      EXPORTING
        application_name = 'zwdc_re_replenishment'
      IMPORTING
        out_absolute_url = lv_def_url.
    response->redirect( url         = lv_def_url
                        permanently = 1 ).
    Just as a note I have already tried out the following methods as well but nothing works
    *navigation->exit( lv_def_url ).
    *navigation->call_application( lv_def_url ).
    Is this because my WD application is inside a BSP Iframe and therefore reloading it manually does not work ?
    Please help!
    Thanks.
    Sukanya

    Hi Thomas,
    First of all, thanks a lot for replying !!
    Sorry for the confusion. Although seems like you have answered my question already.
    Actually the requirement for embedding WDA inside a BSP Iframe came up since there are some WD report applications  that are accessed by very controlled environments in which the users were not able to close the WDA session directly (without the IFrame)  and were getting some errors. Hence the WDAs had to be wrapped inside BSP IFrame which solved the above problem.
    I am working with only one BSP app which has the Iframe and one WD app which is called within the BSP app.
    Now, the other requirement that came up was that whenever the WDA session inside the BSP IFrame expires, there should be no error page and instead the WD app should be reloaded.
    So  I was trying to reload the WD App in the following way.
    1. For the SICF node of WDA, I attached an errorpage.htm for all the tabs under the tab 'Error Pages'. I have defined this errorpage.htm inside the same BSP App which has got another default.htm page. So the BSP App has 2 views : default.htm which has the IFrame and Errorpage.htm.
    2. So now when the WDA expires, the events of errorpage.htm are called like OnInitialization, In this event I was calling the methods navigation->exit( 'URL of the same WDA' ).
    I did this because I wanted to reload the WDA whenever it expires. I tried to specify the WDA Url in the SICF node of the same WDA in 'Redirect URL' under the Error Page tabs but it didnot work.
    Now I realize this is not gonna work. I didnot want to modify the WDA and so I didnot specify any exit plugs in the WDA which would have taken care of reloading the WDA. But that seems to be the only way out.
    Actually speaking there are multiple WDAs which will open inside the same BSP IFrame via their own Application URLs. I have coded the BSP IFrame to read the URL Parameters and open up the corresponding WDA.  So now I have to define an exit plug in all of these WDAs.
    Do you suggest that this will solve the problem of WDA refresh ? Just to confirm.
    Thanks again.

  • Exporting data from table to Excel in a particular format using BSP.

    Hello all,
          I am creating a application in BSP  wherein i have to export data to excel sheet.
      I am able to do that but the output in excel sheet is not formatted. it is displaying the data in a single 
    column. For example, the internal table which i am exporting to excel contains fields "product
    name", "area name", country name", "values". all these should be displayed in different columns.How 
    can i achieve this functionality.A sample code will be of great help..
    Below is the code i hav written for exporting to excel :
         data: l_len type i,
               l_string type string,
               app_type type string,
               file_content type xstring,
               file_mime_type type string.
         create OBJECT cached_response TYPE cl_http_response EXPORTING add_c_msg = 1.
         cached_response->set_data( file_content ).
         cached_response->set_header_field(
                          name = if_http_header_fields=>content_type
                          value = file_mime_type ).
    LOOP AT itab_xls INTO wa_xls.
       CONCATENATE L_STRING wa_xls-product_name
       wa_xls-area_name
       wa_xls-landx
       CL_ABAP_CHAR_UTILITIES=>CR_LF INTO L_STRING SEPARATED BY SPACE.
    ENDLOOP.
      APP_TYPE = 'APPLICATION/MSEXCEL; charset=utf-16le'.
      data: l_xstring type xstring.
    call function 'SCMS_STRING_TO_XSTRING'
        exporting
          text = l_string
          MIMETYPE = 'APPLICATION/MSEXCEL; charset=utf-16le'
        IMPORTING
          BUFFER = l_xstring.
    Add the Byte Order Mark - UTF-16 Little Endian
      concatenate  cl_abap_char_utilities=>byte_order_mark_little
                   l_xstring
                   into l_xstring in byte mode.
       cached_response->set_data( l_xstring ).
       cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                         value = 'APPLICATION/MSEXCEL; charset=utf-16le' ).
    *Set the filename into the response header
       cached_response->set_header_field( name  = 'Content-Disposition'
                                  value = 'attachment; filename=gkb_excel.xls' ).
    *Set the Response Status
       cached_response->set_status( code = 200 reason = 'OK' ).
    *Set the Cache Timeout - 60 seconds - we only need this in the cache
    *long enough to build the page and allow the IFrame on the Client to request it.
       cached_response->server_cache_expire_rel( expires_rel = 60 ).
        CALL FUNCTION 'GUID_CREATE'
        IMPORTING
          ev_guid_32 = guid.
        CONCATENATE runtime->application_url '/' guid '.xls' INTO url.
        cl_http_server=>server_cache_upload( url      = url
                                           response = cached_response ).
    Can anyone help me with some solution.
    Thanks in advance.
    Gurmahima.

    the issue is here
    LOOP AT itab_xls INTO wa_xls.
    CONCATENATE L_STRING wa_xls-product_name
    wa_xls-area_name
    wa_xls-landx
    CL_ABAP_CHAR_UTILITIES=>CR_LF INTO L_STRING SEPARATED BY SPACE.
    ENDLOOP.
    instead do the following
    LOOP AT itab_xls INTO wa_xls.
    CONCATENATE L_STRING wa_xls-product_name ','
    wa_xls-area_name  ','
    wa_xls-landx  ','
    CL_ABAP_CHAR_UTILITIES=>CR_LF INTO L_STRING .
    ENDLOOP.
    and then change the file name extension from xls to csv. it should open properly in excel.
    Note that this is only excel csv file. if you want a proper excel excel file, then
    option one: build a html table with your data into a string and pass it to excel
    option 2: build excel xml using your data into a string and pass it to excel.
    Regards
    Raja

  • Download File from BSP-Application

    Hello !
    i hope i can get some help for my problem.
    from my BSP-Application i want to download an internal table to p:\eigenedateien\bv.txt (always the same filename)
    the internal table ist type table of string.
    i read that gui_download doesn't work in my BSP
    so i went through this weblog 756
    but it is really hard.
    i put some code from the weblog in my application:
    concatenate 'attachment; filename='
    w_para-pwert = p:\eigenedatieen\bv.txt
                w_para-pwert into dl_pathfile.
    Download der Datei
    Create the cached response object that we will insert our content into
    dl_xstring = 'Test'. "nur zum testen
                CREATE OBJECT CACHED_RESPONSE TYPE CL_HTTP_RESPONSE
                       EXPORTING ADD_C_MSG = 1.
    set the data and the headers
                CACHED_RESPONSE->SET_DATA( DL_XSTRING ).
                CACHED_RESPONSE->SET_HEADER_FIELD( NAME  =
                                        IF_HTTP_HEADER_FIELDS=>CONTENT_TYPE
                                                   VALUE = 'text/html' ).
    Set the filename into the response header
           CACHED_RESPONSE->SET_HEADER_FIELD( NAME  = 'Content-Disposition'
                                       VALUE = DL_PATHFILE ).
    Set the Response Status
                CACHED_RESPONSE->SET_STATUS( CODE = 200 REASON = 'OK' ).
    Set the Cache Timeout - 60 seconds - we only need this in the cache
               CACHED_RESPONSE->SERVER_CACHE_EXPIRE_REL( EXPIRES_REL = 60 ).
    Create a unique URL for the object
                CALL FUNCTION 'GUID_CREATE'
                  IMPORTING
                    EV_GUID_32 = GUID.
                CONCATENATE RUNTIME->APPLICATION_URL '/' GUID INTO URL.
    Cache the URL
                CL_HTTP_SERVER=>SERVER_CACHE_UPLOAD( URL      = URL
                                               RESPONSE = CACHED_RESPONSE ).
    Ende Download
    now it should be cached.
    but hot can i start the download to p:\eigenedateien... now?
    thanks very much for your help
    Helmut

    Hi,
    Could you try adding at the end:
    navigation->response_complete( ).
    and/or
    data: guid type guid_32,
          display_url TYPE string.
    call function 'GUID_CREATE'
    importing
    ev_guid_32 = guid.
    concatenate runtime->application_url '/' guid into display_url.
    cl_http_server=>server_cache_upload( url = display_url response = cached_response ).
    Best regards,
    Guillaume
    Message was edited by: Guillaume Garcia

  • Calling the ASP page through a BSP application

    Hi,
    We are in the process of implementing Digital signature for SRM cFolders.
    BSP application : CFX_RFC_UI
    Pages with flow logic : doc_de_download
    The digitally signed files are uploaded to the cFolders.On click of a
    particular file in cFolders, the 'ASP' page residing on the server in IIS
    vertual directory i.e. 'verifyfile.asp' should get called.This ASP page has
    the logic to verify the signed file.
    The signed file resides on the file system in the same vertual directory.
    As a result we want to post a message on the screen which
    will be the output of the ASP page logic.
    Please suggest the way to achieve this.
    Regards,
    Nilesh
    Message : ---
    <b>Verification Successful</b>
      Certificate Details
    The certificate is valid
    CRL Status: Certificate Revocation Status is Unknown: CRL Not checked
    Email Id: [email protected]
    Issuer Name: ock Demo Certification Authority
    Serial Number: 15 65 7a 0a  00 00 0d d9
    Subject Name: Email Address = [email protected] | Country = US
    | StateOrProvince = VA | Locality = McLean | Organization = Technologies Corporation | Organizational Unit = ock Demo | Common Name = Valid ock |
    ThumbPrint: 16 00 c1 f4 76 aa 57 f2 20 27 0f 21 44 9e 08 9d 61 ca dd 95
    Valid From: Monday, April 10 2006,02:19:58
    <i><b>The code in OnInitialization event handler is as follows :----</b></i>
    * doc_de_download.htm
    DATA lp_root_exception   TYPE REF TO cx_root.
    DATA lp_doc              TYPE REF TO cl_cfx_document.
    DATA l_cur_ver_id        TYPE guid_32.
    DATA lp_col_app          TYPE REF TO cl_cfx_col_application.
    DATA lp_col              TYPE REF TO cl_cfx_collaboration.
    DATA : icontent type table of  sdokcntbin.
    data :  w_tmpcontent TYPE sdokcntbin.
    **** Data declaration
    data : g_folder_path TYPE btcxpgpar value 'usrsapDigitally signed files',
          g_md(100)      TYPE c,
          g_file_path    TYPE string,
          g_system       TYPE rfcdisplay-rfchost,
          g_os           TYPE sxpgcolist-opsystem,
          g_file_size    TYPE string,
          g_mime_type    TYPE string,
          g_file_ext     TYPE string,
          g_len1         TYPE i,
          g_var          TYPE c,
          g_out_file     TYPE c LENGTH 600,
          g_file_count   TYPE p,
          g_table_lines  TYPE p,
          g_counter      TYPE p VALUE 1,
          g_flag         TYPE c.
    DATA : i_doc_id TYPE sysuuid_c.
    CONSTANTS : c_dot TYPE c VALUE '.'.
    TRY.
        IF NOT p_refresh IS INITIAL.
          cl_cfx_ui_application=>delete_instance( ).
        ENDIF.
        TRANSLATE p_col_id TO UPPER CASE. "Just in case...
        TRANSLATE p_area_id TO UPPER CASE. "Just in case...
        TRANSLATE p_topic_id TO UPPER CASE. "Just in case...
        TRANSLATE p_doc_id TO UPPER CASE. "Just in case...
        TRANSLATE p_ver_id TO UPPER CASE. "Just in case...
        TRANSLATE p_save TO UPPER CASE. "Just in case...
    *   initialize in case of server state timeout
        IF ( NOT p_col_id IS INITIAL ) AND
           ( NOT p_area_id IS INITIAL ) AND
           ( NOT p_topic_id IS INITIAL ).
          CALL METHOD cl_cfx_context_ui=>initialize
            EXPORTING
              i_col_id      = p_col_id
              i_area_id     = p_area_id
              i_topic_id    = p_topic_id
              i_doc_id      = p_doc_id
              i_object_type = cfxf1_sc_doc_type_document.
        ENDIF.
        IF NOT p_col_id IS INITIAL.
          lp_col_app = cl_cfx_col_application=>get_instance( ).
          lp_col = lp_col_app->get_collaboration( p_col_id ).
        ENDIF.
    *   Do we need to prepare to checkout this document?
        cl_cfx_doc_ui=>get_docref_safe(
          EXPORTING
            i_guid        = p_doc_id
          IMPORTING
            ep_docref     = lp_doc ).
        IF ( NOT p_filepath IS INITIAL ) AND ( p_do_lock = 'X' ).
          l_cur_ver_id = lp_doc->if_cfx_versioning~get_current_version( ).
          IF l_cur_ver_id = p_ver_id.
    *       OK, prepare checkout
            TRY.
                lp_doc->if_cfx_document~lock( ).
              CATCH cx_root.
            ENDTRY.
          ENDIF.
        ENDIF.
    data: lt_formfields type TIHTTPNVP,
          l_formfield   type IHTTPNVP,
          l_request     type STRING.
    data: lt_headerfields type TIHTTPNVP,
          l_headerfield   type IHTTPNVP.
    CALL METHOD request->get_form_fields
      CHANGING
        fields = lt_formfields.
    CALL METHOD request->get_header_fields
      CHANGING
        fields = lt_headerfields.
    *    CALL METHOD cl_cfx_doc_ui=>retrieve_content
    *      EXPORTING
    *        ip_navigation = navigation
    *        ip_response   = response
    *        ip_runtime    = runtime
    *        i_col_id      = p_col_id
    *        i_area_id     = p_area_id
    *        i_topic_id    = p_topic_id
    *        i_doc_id      = p_doc_id
    *        i_ver_id      = p_ver_id
    *        i_save        = p_save.
    *   Do we need to checkout this document?
        cl_cfx_doc_ui=>get_docref_safe(
          EXPORTING
            i_guid        = p_doc_id
          IMPORTING
            ep_docref     = lp_doc ).
        IF ( NOT p_filepath IS INITIAL ) AND ( p_do_lock = 'X' ).
    *      l_cur_ver_id = lp_doc->if_cfx_versioning~get_current_version( ).
          IF l_cur_ver_id = p_ver_id.
    *       OK, do checkout
            TRY.
                CALL METHOD cl_cfx_doc_ui=>mark_doc_as_checked_out
                  EXPORTING
                    ip_doc     = lp_doc
                    i_filepath = p_filepath.
              CATCH cx_root.
            ENDTRY.
          ENDIF.
        ENDIF.
    i_doc_id = p_ver_id.
    CALL FUNCTION 'CFX_API_DOC_DOCUMENT_READ'
    Exporting
        i_doc_version_id = i_doc_id
      IMPORTING
        e_file_path      = g_file_path
        e_file_size      = g_file_size
        e_mime_type      = g_mime_type
        e_file_ext       = g_file_ext
      TABLES
        et_content       = icontent.
    ******  Download document
    IF NOT icontent[] IS INITIAL.
    ***  PERFORM sub_download_file USING g_file_path.
      CONCATENATE g_folder_path g_file_path
      INTO g_out_file.
      OPEN DATASET g_out_file FOR OUTPUT IN BINARY MODE.
      IF sy-subrc = 0.
        LOOP AT icontent INTO w_tmpcontent.
          TRANSFER w_tmpcontent TO g_out_file.
        ENDLOOP.
      ENDIF.
      CLOSE DATASET g_out_file.
      CLEAR g_out_file.
    ENDIF.
        CLEAR: p_area_id, p_col_id, p_doc_id, p_save,
               p_topic_id, p_ver_id, p_filepath.
    ** handle other standard exceptions
      CATCH cx_root INTO lp_root_exception.
        CALL METHOD cl_cfx_exception_ui=>handle
          EXPORTING
            ip_exception  = lp_root_exception
            ip_navigation = navigation.
    ENDTRY.

    Hi,
    Something like this should work:
    REPORT  zggar_http_client.
    PARAMETERS: p_host  TYPE char100 DEFAULT 'http://www.google.fr',
                p_port  TYPE char20.
    DATA: wcl_client TYPE REF TO if_http_client.
    DATA: w_content    TYPE string,
          w_host       TYPE string,
          w_port       TYPE string,
          w_proxy_host TYPE string,
          w_proxy_port TYPE string,
          w_path       TYPE string.
    w_host = p_host.
    w_port = p_port.
    CALL METHOD cl_http_client=>create
      EXPORTING
        host          = w_host
        service       = w_port
        proxy_host    = w_proxy_host
        proxy_service = w_proxy_port
      IMPORTING
        client        = wcl_client.
    wcl_client->request->set_header_field( name  = '~request_uri'
                                       value = w_path ).        "#EC *
    wcl_client->request->set_header_field( name  = '~request_method'
                                       value = 'GET' ).         "#EC *
    * send and receive
    wcl_client->send( ).
    wcl_client->receive( ).
    * display content
    w_content = wcl_client->response->get_cdata( ).
    Best regards,
    Guillaume

  • BSP not displayed

    Hi Experts,
    I am facing an issue with testing BSP's, both std as well as Z .
    When I right click and test, it first gives an error message in browser saying 400- Session timed out please login again. next when I press refresh on the same error page it displays a page with only
    sap-client=800
    sap-sessioncmd=open
    written on the page and nothing else(HTML coding of BSP) is displayed. This time it also creates a plugin HTTP session in SM04.
    Ive checked the timeout parameter rdisp/plugin_auto_logout in SMICM, it has value 1800. Service and other basic things are inplace.
    Can anybody get a clue of why this is happening and how can I resolve this?
    Thanks,
    Sam

    Dear Sam,
    First create a node through transaction SICF. Have a break point in Do_init, so that u can find problem for time consuming.
    Kindly both Standard & Z application.
    Regrads,
    Gokul.N

  • Login in BSP (WAS) doesn't work when navigating to ITS (PAS)

    Hi,
    We have a BSP application working on WAS, clicking a tab we show a ITS application.
    We have setup Single Sign On (SSO) with the SAP Logon Ticket. On BSP application first we made log on. WAS create a SSO2 Logon Ticket.
    How can we pass any HTTP Header (for SAP-User) from BSP to ITS for PAS?
    WAS 620
    ITS 620
    Best regards.
    Thomas

    I don't know if I have a lot to add on what exactly your setup problem is, but I can tell you that what you are trying to do is possible.  We do the same thing at our facility.
    We logon to a BSP application (which generates the SSO2 ticket).  The BSP then navigates to an ITS transaction. Now when we navigate to the ITS service we always pass through a PAS Service File.  I use the following settings:
    @Copyright SAP AG 2002
    Example Service File for the Pluggable Authentication Service (PAS)
    Remark:The PAS Modul sapextauth must be included in ~xgateways in global.srvc
    There are following types for PAS on ITS:
        X509              --> ITS 4.6D
        NTLM           --> ITS 4.6D
        NTPassword     --> ITS 4.6D
        LDAP          --> ITS 6.10 (remark also note: 509237)
        HTTP          --> ITS 4.6D (see note: 493107 and 494984)
    The following settings are an example for NTLM :
    For detailed information see documentation (http://service.sap.com/security)
    ~theme                  99
    Module
    ~xgateway               sapextauth
    possible settings  -> X509 , NTLM , NTPassword , LDAP , HTTP
    ~extauthtype            NTLM
    For NTLM and NTPassword: NT , for LDAP: LD , for HTTP: define your
    own mapping in USREXTID
    Remark: extid_type UN (user name) can also be set. Then you dont have to
    map in USREXTID, but the authentication mechanism must provide the unique
    SAP System user ID. This might be useful for LDAP and/or HTTP mechanism.
    ~extid_type          NT
    predefine Domainname - only for type NTPassword
    ~ntdomain
    for LDAP connect - only for type LDAP
    #~ldaphost          ldap.sap.com
    ~ldaphost
    #~ldapport          389
    ~ldapport
    #~ldapbasedn                //Base DN
    ~ldapbasedn
    #~ldapuid                //User Attribute Name e.g. cn
    ~ldapuid
    #~ldapsapuid                //SAP User Attribute Name e.g. sapuid
    ~ldapsapuid
    Remark: ~ldapsapuid should be only set in combination with ~extid_type UN
    #~maxtrials          3        //limits the ldap logon trails
    ~maxtrials
    define which HTTP Header Variable contain the User - only for type HTTP
    #~remote_user_alias - the most common and useful value is REMOTE_USER
                        which will be set by webservers for authenticated users
    please remark here note 494984 for the WGate settings
    ~remote_user_alias
    settings for PAS service self
    ~client               088
    ~language               en
    #get a SSO2 Ticket
    ~mysapcomgetsso2cookie     1
    ~timeout                10
    #converts the login input to upper case. Might useful for LDAP and NTPassword
    #if in doubt, set to 1 and maintain USREXTID mapping in caps.
    ~login_to_upcase 1
    after external authentication
    Hostname which should redirected
    ~redirectHost          kww-d15i.kimball.com:81
    path to another service 
    ~redirectPath           /scripts/wgate/su3!
    #~redirectQS (Query String): ITS specific service parameters can be set there
    ~redirectQS             client=088&language=en
    ~redirectHttps          0
    ~login_template         login
    if 1, user get only a ticket, if there is no
    ~dont_recreate_ticket   1
    ~sncNameR3 p:[email protected]
    #~sncQoPR3 9
    ~mysapcomusesso2cookie 1
    ~mysapcomnosso1cookie 0
    ~mysapcomssonoits 1
    This way if my logon ticket already exists, it doesn't try and recreate it.  In this particular situation a Link in our BSP page lets the user change their user profile.  Therefore we launch SU3 using the ITS (WebGui).

  • STS: Portal HTTPS to BSP HTTP transfer issue

    Hi Experts,
    We have the following issue.
    We use portal with SSL, and we put SSL on out BW backend system. We also use STS, and we created a BSP iView in the portal to use STS inside portal.
    The problem occurs when a link to the iView is clicked. What happens is that when the iView is being loaded, all the session cookies are getting blocked for some reason, so that clicking on any link in STS results in timeout error.
    My observation is that STS only uses SSL for the login page. So when a request comes through the portal that uses SSL it goes to a BSP iView without an SSL (you get the warning that you are about to display non-secure items).
    A workaround solution is to goo to IE properties, security/privacy and click the "Allow all session cookies" checkbox. This a bad solution because it involves telling users to configure their browser. I am wondering if anybody had the same or similar issue, and if there is any other resolution then just explicitly allowing cookies in the browser.
    We have another environment setup in QA that does NOT use SSL for either portal or a backend BW, and this problem with cookies does not happen there. I am guessing it has something to do with a switch from HTTPS to an HTTP request when it comes through the portal.
    Please let me know if you know how to resolve this.
    Thank you,
    AG

    Hi Marc,
    Thank you very much. The note helped us ensure that all the STS pages are using HTTPS protocol. There is still one issue remaining though.
    When STS generates its start URL, for some reason it starts with HTTP, not HTTPS. It is evident when you go to BPS_TC tcode and try to execute option "Test call with display of URL". The URL that gets displayed is for example:
    http://test.somedomain.com:8000/sap/bc/bsp/sap/tunguska/start_sts2.htm?teilplan=ZBUDGET&version=002&sap-client=200&sap-language=E
    When pasting this link in the browser, STS automatically redirects you to the https protocol, which is fine if you are using STS BSP application stand alone.
    This represents a problem however, if the application is integrated into portal BSP iView. If portal is running under HTTPS, then clicking on the STS iView causes a warning message to be displayed saying that you are about to be redirected to the page that is not secure because for some reason the very first page STS generates uses http protocol disregarding the fact that HTTPS has been setup for STS. This warning message creates a false assumption that the pages are not secured, while in fact right after the warning message is displayed a redirect to https occurs making sure STS pages are protected.
    My question is there some sort of global setting where you can control the generation of STS start URL? I made changes for every page making sure Transfer Options set to HTTPS, and also made sure Logon page is using HTTPS in the SICF transaction for tunguska and tunguska_detail services.
    At this point we are stuck and do not know what to do to eliminate that warning and how to control the generation of start URL in STS. Any help would  be greatly appreciated.
    Thank you,
    Andrei

Maybe you are looking for