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

What are the data types of the abap/4 layer?

961


What are the system table used in abap?

855


What is the difference between Exit and Stop?

861


B -Credit Note report Selection Screen Ranges: Creation date Sales Org Sold to Party Selection condition: Document Category – VBTYP should be ‘O’ Table to be used: VBRK, VBRP,VBPA,ADRC List the CR order types or credit billing type by customer number (or selected customer) and displays the: - Billing Document date (FKDAT) - Customer number (KUNRG) - Name of the reseller (on top of the SAP No) (NAME1) - Billing document number,(VBELN) - order reason (AUGRU_AUFT) - Amount (NETWR) - Currency (WAERK) Group Currency wise, billing type wise sum of Net value. When user double click on field ‘Billing Document #’ , display the document in VF03 Do this using OO ABAP.

2745


Performance tuning techniques

1125


Can we control the sequence in which multiple implementations of a multiple use BADI are called? If yes, how?

1138


What are the differences between structure and table in data dictionary in abap? : sap abap data dictionary

813


What are the different types of laws. What are they?

831


Explain the systems fields used for interactive lists and lists?

754


What is the client concept in sap?

789


What are the two levels in defining a match code ?

844


What are the two ways for restricting the value range for a domain ?

970


Can we display a list in a pop-up screen other than full-size stacked list?

913


Why do we use FOR ALL ENTRIES and what is the pre-requisite

1186


How is conversion of data types done between abap/4 & db layer?

877