RFC Connection Type -G and Using it in program with CL_HTTP_CLIENT to read an xml file from the Web

DATA :   lr_request TYPE REF TO if_http_request, lr_client TYPE REF TO if_http_client, lv_code TYPE i, lv_xdata TYPE xstring. * Create a link to the source xml by the RFC destination CALL METHOD cl_http_client=>create_by_destination EXPORTING destination              = ‘ZW3SCHOOL’    ” Logical destination (specified in function call) IMPORTING client                = lr_client    ” HTTP Client Abstraction EXCEPTIONS argument_not_found       = 1 destination_not_found    = 2 destination_no_authority = 3 plugin_not_active        = 4 internal_error           = 5 OTHERS                   = 6. IF sy–subrc <> 0. MESSAGE ID sy–msgid TYPE sy–msgty NUMBER sy–msgno WITH sy–msgv1 sy–msgv2 sy–msgv3 sy–msgv4. ENDIF. * Set the method type as Set CALL METHOD lr_client->request->set_method EXPORTING

Continue reading

Rate this:

1 52 53 54 55 56 113