Code: Alles auswählen.
cl_http_client=>create_by_destination(
EXPORTING
destination = iv_rfcdest
IMPORTING
client = lo_client
EXCEPTIONS
argument_not_found = 1
destination_not_found = 2
destination_no_authority = 3
plugin_not_active = 4
internal_error = 5
OTHERS = 6
).
.....
DATA(lo_rest) = NEW cl_rest_http_client( io_http_client = lo_client ).
lo_entity = lo_rest->if_rest_client~create_request_entity( iv_multipart =
abap_true ).
.....
* HTTP PUT
lo_entity->set_binary_data( iv_data = lv_data ). "lv_data = XSTRING
lo_rest->if_rest_resource~put( io_entity = lo_entity ).
DATA(lo_response) = lo_rest->if_rest_client~get_response_entity( ).
DATA(lv_http_status) = lo_response->get_header_field( '~status_code' ).
lv_http_status = 405!?!?!?