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 is modularization and its benefits?

790


What is occurs in internal table?

832


What is the differences between structure and table in data dictionary in abap?

801


What is partner selection?

821


What are the payroll related infotypes? : abap hr

801


Difference between function group and function module?

850


What is a subscreen? How can we use a subscreen?

767


Explain how data is stored in cluster table?

907


What is match code? : sap abap hr

927


How do you populate data into a multiple line field? : abap bdc

847


Power is interrupted while transferring data from internal table to application server. How will you determine many records are transferred in session method and call transaction method? : abap bdc

970


What is pnp-sw-found ? : abap hr

1150


Does SAP has a GUI screen painter or not? If yes what operating systems is it available on? What is the other type of screen painter called?

828


How to create user interfaces for lists?

798


What are the different types of abap/4 programs?

832