cancel
Showing results for 
Search instead for 
Did you mean: 

Error reading file from KPRO

Former Member
0 Kudos

Hi

I am using this excerpt to retrieve the content of a text file

uploaded to KPRO.:

data lo_client  type ref to if_http_client. 

data lv_content type xstring. 

data lv_url     type string. 

lv_url = 'http://XXXXXXXXXX.XXXX.XXXXX'. 

call method cl_http_client=>create_by_url 

  exporting 

    url                = lv_url 

  importing 

    client             = lo_client 

  exceptions 

    argument_not_found = 1 

    plugin_not_active  = 2 

    internal_error     = 3 

    others             = 4. 

if sy-subrc = 0. 

  lo_client->send( ). 

  lo_client->receive( ). 

  lv_content = lo_client->response->get_data( ).  " store content in variable lv_content 

  lo_client->close( ). 

endif. 

(courtesy of Mr Samuli Kaski ).

When opening the file I receive the following msg (instead of the original message)

HTTP error: 401 (Unauthorized) "Security SsfVerify failed rc=5 .. lasterror="12848" wrong messageDigest PSE =\\?\C:\Program Files\SAP\Content Server\Security\My_System.pse

When I upload a PDF  file, I get a system message saying the file is corrupt.

Any idea how this can be resolved?

regards

Yuval


Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This is a DMS question, close this thread and open a new one in the space. Share technical details on your DMS configuration, content repository and landscape.

Former Member
0 Kudos

Hi

Thank you.

Regards

Yuval

Answers (0)