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
How to handle errors in call transaction bdc method without using bdcmsgcoll internal table? : abap bdc
How can end-of-selection be used?
What are local objects? : abap data dictionary
What is dynpro? what are its components ?
How do you set up background jobs in sap? What are the steps? What are the events driven batch jobs?
How can we access the correction and transport system?
What are matchcodes?
the problem is that , while i am undergoing with my practice session, i am creating too many new programs.they are occupying much space in my hard-disk. how to delete un-necessary programs completely from my data- base........... plz help me with this .....
Do we have to migrate all sapscript forms to smart forms?
There is a situation where there is a field "MATERIAL DESCRIPTION" in say 20 display only transaction. You want that whenever user opens any of these transaction, this particular field is masked with ****. But table does not holds ****. It holds the actual value. What are different ways of doing it? Which is the best way.
What is the step-by-step process to create a table in data dictionary? : abap data dictionary
While doing bdc exp va01 transaction sometime in the item level data shows only 4 items and other times it will show 6 line items, how will you maintain this kind of screen resolutions scenerio? : abap bdc
Can i Have Some Realtime Examples On Modulepool programming.
what is diff between ECC 5.0 AND ECC 6.0
What are the mandatory fields to be filled for BAPI_CUSTOMER_CREATEFROMDATA1