新建SM59 连接 外部系统 RFC Destination
配置 http proxy Options
输入 proxy : eg : proxy.xxxxx.cn
Proxy Service : ip port eg : 8080
配置代理 账号 密码
调用:
CALL METHOD cl_http_client=>create_by_destination
EXPORTING
destination = lv_destination (SM59 配置的 destination )
IMPORTING
client = DATA(http_client)
EXCEPTIONS
argument_not_found = 1
destination_not_found = 2
destination_no_authority = 3
plugin_not_active = 4
internal_error = 5.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.