Skip to Content
0
Former Member
May 09, 2009 at 07:34 AM

CREATE_SESSION of programCL_SAM_BSP_SESSION_LAUNCHER "COMMUNICATION ERROR".

41 Views

Hi Experts,

I am trying to open the transaction "HREIC" which is BSP Application.

On opening I get the below error


Error when processing your request 


What has happened? 
The URL http://<portal>:<port>/sap/bc/bsp/sap/ic_base/main.htm was not called due to an error. 
 
   
Note 

The following error text was processed in the system SBD : Exception condition "COMMUNICATION_ERROR" raised. 
The error occurred on the application server SBISBD_SBD_00 and in the work process 1 . 
The termination type was: RABAX_STATE 
The ABAP call stack was: 
Method: CREATE_SESSION of program CL_SAM_BSP_SESSION_LAUNCHER===CP
Method: START_WORKER_SESSION of program CL_ICWC_SESSION_REGISTRY======CP
Method: _ONCREATE of program CL_O23UTXK1DHIM8WX0QZD2TBW2KZ9CP
Method: %_ONCREATE of program CL_O23UTXK1DHIM8WX0QZD2TBW2KZ9CP
Method: DO_INIT of program CL_BSP_PAGE===================CP
Method: GET_PAGE_CONTEXT_CURRENT of program CL_BSP_CONTEXT================CP
Method: ON_REQUEST_ENTER of program CL_BSP_RUNTIME================CP
Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_BSP===============CP
Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP

I have checked the dump at transaction "ST22" .

It says that in the programme CL_SAM_BSP_SESSION_LAUNCHER===CP

the method CREATE_SESSION is throughing the error.

the code is as below


method CREATE_SESSION .

  data: rfcdest     type rfcdest.
  data: status      type i.
  data: http_client type ref to if_http_client.

  rfcdest = destination.
  cl_http_client=>create_by_destination( EXPORTING destination = rfcdest IMPORTING client = http_client   ).

  http_client->request->set_header_field( name = '~request_uri'     value = uri                           ).
  http_client->request->set_header_field( name = '~request_method'  value = 'GET'                         ).
  http_client->request->set_header_field( name = if_http_header_fields=>user_agent value = s_user_agent   ).
  http_client->send( exporting timeout = 10 ).
  http_client->receive(  ).
  data = http_client->response->get_data( ).
  http_client->response->get_status( importing code = status ).
  http_client->close( ).

  data: s type string.                                      "#EC NEEDED
  s = cl_sam_toolkit=>x2s( data ).

  *if ( status <> 200 ).*
    *raise communication_error.*
  *endif.*


endmethod.

the code in bold is throughing the error.

The programme is standard and we have not modified it.

Please help.

Regards,

Sanjyoti.

Edited by: sanjyoti lengare on May 9, 2009 1:25 PM