Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 15

SAP-ABAP

NAME

: RFC

MODULE

: ABAP

RFC

RFC:
These are Special type of FMS which are used to
communicate with remote servers.
The remote servers can be SAP-SAP Servers or SAP
to NON SAP servers.
Just Select the radio button REMOTE ENABLED,
the FM will be converted into REMOTE ENABLED FM.

NAME

: RFC

MODULE

: ABAP

RFC Destination

RFC Destinations:

It is a communication network or link


between two remote servers.

SM59 is the tcode .


In the real time, RFC Destinations are created by
BASIS Consultants.
Once RFC destinations are created, we can use the
RFC function modules with below syntax,
SYNTAX TO CALL RFC FMOD :
CALL FUNCTION FMOD DESTINATION <RFC
DEST.NAME>

Steps to create RFC Destination:


Goto SM59.
Select ABAP Connections folder
Click on Create
Give the name as Z800_TO_Z810.
Give some desc

Select radio button HOSTNAME


Give the target host as application server name.

Click on Logon and security tab


Specify below details.

Click on save
Click on
to test the connection.
You will enter into remote or target 810 client.
Click on back, you will come back to source client
800

Steps to create RFC FM:


Go to SE37create a FM by name ZGET_MAT_DET
with IM_MATNR and EX_MARA as parameters.
Make all the parameters as PASS BY VALUE..
Click on Attributes tab.
Select REMOTE ENABLED option as below

Using RFC FM in program :


Data : wa_mara type mara.
Parameters : p_matnr type mara-matnr.
Call function ZGET_MAT_DATA
Destination Z800_TO_810
Exporting
im_matnr = p_matnr
Importing
ex_mara = wa_mara.
Write : / wa_mara-matnr , wa_mara-meins.

Unit testing :
Execute the Program
Give P_matnr = some material no from
810
client.
Execute
Observe the results.

THANK YOU

You might also like