1 / 16

Remote Function Call

Remote Function Call. RFC from SAP R/3. Remote system. R/3 Application Server. Work Process. Function group. Call Function. FM. Work Process. Work Process. Call Function destination. FM. RFC. Remote Destinations.

davin
Download Presentation

Remote Function Call

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Remote Function Call

  2. RFC from SAP R/3 Remote system R/3 Application Server Work Process Function group Call Function FM Work Process Work Process Call Function destination FM

  3. RFC

  4. Remote Destinations • You maintain RFC destinations that must specify an ABAP program when calling remote function modules in the RFC sideinfo table RFCDES using Transaction SM59

  5. RFC Destinations

  6. Remote Destinations : SM59

  7. RFC Types • Synchronous RFC • Asynchronous RFC • Transactional RFC • Queued RFC

  8. Synchronous RFC REPORT ... ... CALL FUNCTION ‘ABC’ DESTINATION ‘PRD’ EXPORTING ... IMPORTING ... ... FUNCTION ABC. ... ... ENDFUNCTION.

  9. Synchronous RFC REPORT ... ... CALL FUNCTION ‘ABC’ DESTINATION ‘PRD’ EXPORTING ... IMPORTING ... TABLES ... EXCEPTIONS communication_failure = 1 system_failure = 2 ... FUNCTION ABC. ... ... ENDFUNCTION.

  10. Asynchronous RFC : aRFC REPORT ... ... CALL FUNCTION ‘ABC’ DESTINATION ‘PRD’ STARTING NEW TASK ‘T1’ EXPORTING ... ... FUNCTION ABC. ... ... ENDFUNCTION.

  11. Asynchronous RFC : aRFC REPORT ... ... CALL FUNCTION ‘Z_ABC’ DESTINATION ‘PRD’ STARTING NEW TASK ‘T1’ PERFORMING get_result ON END OF TASK EXPORTING ... ... FORM get_result using t. RECEIVE RESULT FROM FUNCTION ‘Z_ABC’ IMPORTING … TABLES … … ENDFORM. FUNCTION Z_ABC. ... ... ENDFUNCTION.

  12. Transactional RFC : tRFC REPORT ... ... CALL FUNCTION ‘Z_RFC1’ IN BACKGROUND TASK DESTINATION ‘PRD’ ... CALL FUNCTION ‘Z_RFC2’ IN BACKGROUND TASK DESTINATION ‘PRD’ ... COMMIT WORK. ... FUNCTION Z_RFC1. ... ... ENDFUNCTION. FUNCTION ZRFC2. ... ... ENDFUNCTION.

  13. Transactional RFC : tRFC • In the source system, you can use the administration Transaction SM58 that let you display and monitor the tRFC • tRFC calls are stored in the local tRFC tables ARFCSSTATE and ARFCSDATA • If the remote tRFC is executed successfully, the accompanying entries are deleted from the tRFC tables

  14. Transactional RFC : tRFC • If the connection cannot be made to the partner,this is logged in the tRFC table ARFCSSTATE,and the job is rescheduled • The default interval time for rescheduling the job is a maximum 30 times with a 15 minute interval

  15. Queued RFC ... CALL FUNCTION ‘TRFC_SET_QUEUE_NAME’ EXPORTING qname = ‘Q01’. … CALL FUNCTION ‘Z_RFC1’ IN BACKGROUND TASK DESTINATION ‘PRD’ EXPORTING ... ... CALL FUNCTION ‘Z_RFC2’ IN BACKGROUND TASK DESTINATION ‘PRD’ EXPORTING ... … COMMIT WORK.

  16. qRFC Monitor • SMQ1 for outbound Queue RFC

More Related