what is RFC?types of RFCs?please any one can give me the
interfaces in sap abap with example?
Answer Posted / saifur rahaman
RFC is an SAP interface protocol based on CPI-C. It is used
to simplify the programming of communication processes
between systems. RFCs enable you to call and execute
predefined functions in a remote system - or in the same
system. They manage the communication process, parameter
transfer, and error handling.
How to Check for the RFC destinations and connections on a
client from abap.
Parameters
EXPORTING
RFCDESTINATION System to be tested
IMPORTING
MSGV1 RFC message
MSGV2 RFC message
RFC_SUBRC RFC return code
Example
REPORT ZEXAMPLE.
DATA: RFCDESTINATION LIKE RSCAT-RFCDEST,
V_MSGV1 LIKE SY-MSGV1,
V_MSGV2 LIKE SY-MSGV2,
V_SUBRC LIKE SYST-SUBRC.
CALL FUNCTION 'CAT_CHECK_RFC_DESTINATION'
EXPORTING
RFCDESTINATION = RFCDESTINATION
IMPORTING
MSGV1 = V_MSGV1
MSGV2 = V_MSGV2
RFC_SUBRC = V_SUBRC.
IF V_SUBRC NE 0.
WRITE:/ 'ERROR:', V_MSGV1, V_MSGV2.
ELSE.
SET PARAMETER ID 'RFC' FIELD RFCDESTINATION.
WRITE:/ 'CONNECTION TO', RFCDESTINATION, 'IS WORKING'.
ENDIF.
See Also
CAT_PING, TH_SERVER_LIST
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What are the techniques involved in using SAP supplied programs? Do you prefer to write your own programs to load master data? Why?
What are uses of foreign key?
i have cleared my technical round and manager round in cts but they told me u will get a call with in couple of days now i dont know about my status
A field containing quantity amounts (data type quan) must be assigned to a reference table and a reference field. Explain? : abap data dictionary
How many types of tables exists and what are they in data dictionary?
How to create any functions? How to go about it?
A function module can be called from a transaction screen outside an abap/4 program. State true or false. : abap modularization
Setting up a BDC program where you find information from?
What kind of deliverables you have on a day to day basis?
What is the difference between abap and hr abap? : abap hr
How can we access the correction and transport system? : abap data dictionary
What are the different types of parameters? : abap modularization
How can you display frames (horizontal and vertical lines) in lists?
What is bdc programming? : abap bdc
What are the update types possible?