Code: Alles auswählen.
CALL METHOD lo_client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
OTHERS = 4.
lv_rc = sy-subrc. "error receive
IF lv_rc = 0.
**http status code
lo_client->response->get_status( IMPORTING code = lv_http_rc ).
IF lv_http_rc <> 200.
"""KO
ELSE. "status 200 ->>OK
CLEAR: lv_xml_xstring.
lv_xml_xstring = lo_client->response->get_data( ).
ENDIF.
ENDIF.