Introduction to RFC in SAP

 


  • RFC stands for Remote function Call.
  • The name itself is suggesting that with the help of RFC we can connect with the external system, the external system can be SAP or Non - SAP system.
  • Whenever, we execute a function module in a SAP system, we use CALL FUNCTION statement.
    • The statement CALL FUNCTION executes a function module in the same system.

Note :-

  • RFC is an extension for CALL Function, so whenever we add RFC to CALL FUNCTION, It gets distributed to different environments

    i.e. we can call it from different systems as well.


Syntax for Calling Function Module Using RFC :-

  • We add DESTINATION clause to the CALL FUNCTION statement.

Syntax :-

  • CALL FUNCTION ‘FUNCTON_MODULE_NAME’ DESTINATION ‘DESTINATION_NAME’.
  • In the above syntax :-
    • CALL FUNCTION :- keyword
    • FUNCTON_MODULE_NAME :- Name of the function module
    • DESTINATION :- keyword
    • DESTINATION_NAME :- Name of the Source system in which function module is created.

Difference between BAPI and RFC :-

  • BAPI :- RFC function module + business object
    • The external system connects with the business object and that business object calls the RFC function module.
    • BAPI is based on OOPS concept, i.e. we need to create a method in case of BAPI.
  • RFC :-
    • In case of RFC, external system connects with the RFC function module.
    • RFC does not follow OOPS concepts.

Comments

Popular posts from this blog

Understanding Different Types of SAP Function Modules: Normal, RFC, and Update

Mastering ABAP: A Step-by-Step Guide to Function Modules and Groups for Modularized Programming

Introduction to SAP