Skip to Content
0

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

Feb 13, 2017 at 09:08 AM

80

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sandra Rossi Feb 13, 2017 at 01:29 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded