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 different abap editors? What is the used of different editors in abap?
What are the main uses of the primary key?
How to convert the Unit for 'Distance' (The value from one Unit to another).
Have you set up a back ground job? How to create a background job without a variant ? : abap bdc
If I want to execute a bdc program only in background not in foreground is there any option for this? : abap bdc
What is Transactional based Application & Role based Application?
What are system variable in abap?
Polymorphism real time scenario
How many types of tables exists and what are they in data dictionary? : abap data dictionary
How to Raise a Particular Ticket in Realtime ?
Advantages and disadvantages of different types of bdc's?
What are the events we use in dialog programming and explain them?
How do you read files from the application server ? : abap bdc
Which table stores the programs created?
Difference between Insert, Update and Modify?