However so far there is no such destination. * the JCo server (via ev_response_payload) and want to display it here in the ABAP backend.įor now the ABAP program only knows to call some function module in destination MY_JCO_SRV. * call - done by the JCo server - results in a XML response. In the exmaple we are expecting that the HTTP-get WRITE: / 'Call Z_SAMPLE_ABAP_CONNECTOR_CALL SY-SUBRC = ', sy-subrc. * also retrieve the result (ev_response_payload).ĬALL FUNCTION 'Z_SAMPLE_ABAP_CONNECTOR_CALL' Lv_uri = | * Call the FM remotely and hand the data (iv_uri), but * to say this is just some data that is handed to the FM. * Define the URI that should be called from the JCo server. REPORT z_test_jco_server.ĭATA: rfc_destination LIKE rfcdes-rfcdest VALUE 'NONE', A part of the JCO server provides a kind of relay function to forward an HTTP-get request and sent back its response to the caller in the ABAP backend.įrom the ABAP backend the whole use case just looks like calling some function module remotely.Call an internet resource from an ABAP backend that has no direct internet connection.
Thus I would like to put such an example here. When writing my first JCo server for I found it very cumbersome to find guiding code snippets and as well as a self-contained, fully working example.