Running into problems or found a bug? Create an issue here
Remotely call abap2UI5 apps via RFC:
Link
Install this repository with abapGit on the system with your abap2UI5 apps. Install this handler on client system.
Handler:
CLASS z2ui5_cl_rfc_connector_handler DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES if_http_extension.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS z2ui5_cl_rfc_connector_handler IMPLEMENTATION.
METHOD if_http_extension~handle_request.
DATA(lv_resp) = ``.
CALL FUNCTION 'Z2UI5_FM_RFC_CONECTOR'
DESTINATION 'NONE' "setup your destination here
EXPORTING
iv_method = server->request->get_method( )
iv_request = server->request->get_cdata( )
IMPORTING
rv_response = lv_resp.
server->response->set_header_field( name = `cache-control` value = `no-cache` ).
server->response->set_cdata( lv_resp ).
server->response->set_status( code = 200 reason = `success` ).
ENDMETHOD.
ENDCLASS.
Setup destinations in SM50 that both systems can call each other and create an ICF Endpoint to call your abap2UI5 apps.
Check out this blog post on LinkedIn to learn more.