cancel
Showing results for 
Search instead for 
Did you mean: 

Service request mail form. URL without port

0 Kudos

Hi!

I'm using mail forms to send notifications for incidents in SAP Solution Manager. So the attribute context for service request is used.

One of the attributes is 'URL link to the transaction'. In HTML it looks like

SAP_CRMS_SRQM_GEN_FIELDS-CRM_SRQM_URL. It works fine. But the link is generated with port. So it doesn't work for some customers because of their IT secure policy. They need to delete port manually to enter the incident.

So, is there way to generate the link without port in it? Our main link to login SAP Solution Manager wich leads to the main page can work without port in URL.

Thanks in advance and best regards, Andrey.

Accepted Solutions (0)

Answers (1)

Answers (1)

richard_pietsch
Active Contributor
0 Kudos

Hi,
you can check the settings in table HTTPSURLLOC (see How to maintain the table HTTPURLLOC?).

Another option maybe this one: create a ICF service, e.g. "id", enter a custom handler to it, which creates the corresponding url for the given id, here's an example:

METHOD if_http_extension~handle_request.
  DATA: lv_lines TYPE i,
        lv_surl  TYPE zshort_url,
        lv_path  TYPE string,
        lt_path  TYPE TABLE OF string,
        ls_path  TYPE string.

  DATA: lo_exception    TYPE REF TO zcx_short_url_exception.
  lv_path = server->request->get_header_field( '~path_translated' ).

  IF NOT lv_path IS INITIAL.
    SPLIT lv_path AT '/' INTO TABLE lt_path.
    DESCRIBE TABLE lt_path LINES lv_lines.
    READ TABLE lt_path INTO ls_path INDEX lv_lines.
    lv_surl = ls_path.
  ENDIF.

  TRY.
    lv_path = zcl_short_url_model=>get_long_url( iv_url = lv_surl ).
      server->response->redirect( lv_path ).
    CATCH zcx_short_url_exception INTO lo_exception.
      server->response->set_status( code = 404 reason = 'Not found' ).
  ENDTRY.
ENDMETHOD.

So you can access the incident from internal network with a url like http://server.intern:8000/id/123456 as well as from external network via webdispatcher like https://solman.company.com/id/123456.

Regards, Richard