Skip to Content

changing the url of a destination wich is managed in the transaction SM59

Hi,

I am calling a Website in ABAP with some lines of code. The initial call will be this:

CALL METHOD cl_http_client=>create_by_destination
EXPORTING
destination = <destination in SM59>
IMPORTING
client = l_client

After this I want to modify the URL of the Call.

I tried to modify the Destination with
cl_http_utility=>set_request_uri( request = l_client->request uri = '/test/')
but the new URL will be ignored.

Is it possible to make a call different of the destination which is managed in SM59?

Regards
Henning

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 13, 2017 at 01:29 PM

    Just read the URL from SM59 (RFC_READ_HTTP_DESTINATION), and create HTTP client (cl_http_client=>create_by_url( EXPORTING url = 'http://...' ))

    Add comment
    10|10000 characters needed characters exceeded