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


Please Help Members By Posting Answers For Below Questions

Explain the advantage of structures?

724


Which FM do you use to find out who is reporting to whom

5411


When the top-of-page event does get triggered?

857


Difference between stand alone CRM and back-end CRM

3973


identify valid statement when coding a field exit ? a) submit RSCA101X b)MESSAGE E101 C)MESSAGE I101 d)BREASK-POINT

2186






The data of a view is not physically stored, but derived from one or more tables (t/f) : abap data dictionary

1063


Name the special commands of list?

787


How to create report in SD open sales order which covers all Organization, delivery status, shipping details and partner function details. plz mention the detail coding Tahnks, Rahul

2334


How do we handle multiple line items in BDC's.

6859


How many types of tables exists and what are they in data dictionary? : abap data dictionary

888


What work you have done in HR module

1079


Differentiate between table and template ?

772


How are BAPI different from normal function modules?

1900


Does sap handle multiple languages?

739


If your project is support project ? when is your implementation has completed ?

1734