2007 Jul 30 8:04 AM
2007 Jul 30 8:06 AM
Hi
check the link below
http://help.sap.com/saphelp_47x200/helpdata/en/22/042860488911d189490000e829fbbd/frameset.htm.
2007 Jul 30 8:07 AM
Hi Mohit
CALL FUNCTION RFC
A remote function call is a call to a function module running in a system different from the caller's. The remote function can also be called from within the same system (as a remote call).RFC consists of two interfaces
: A calling interface for ABAP Programs and a calling interface for Non-SAP programs. Any ABAP program can call a remote function using the CALL FUNCTION...DESTINATION statement. The DESTINATION parameter tells the SAP System that the called function runs in a system other than the caller's.
 You can use the CALL FUNCTION statement to call remote functions by including an additional DESTINATION clause.

CALL FUNCTION remotefunction
DESTINATION dest
EXPORTING f1 =
IMPORTING f2 =
TABLES t1 =
EXCEPTIONS

Calling remote functions locally
:-( i.e. call a remote function within the same system )
The two options to do this are
CALL FUNCTION...DESTINATION = 'NONE'
The remote function can invoke its own caller (if the caller is itself a function module), or any function module loaded with the caller.
You can trigger this call-back mechanism using
CALL FUNCTION... DESTINATION 'BACK.
Types of RFCs
Synchronous RFC
The calling program continues the execution only after the called function is complete.
SYNTAX: CALL FUNCTION func DESTINATION dest
parameter_list.
<b>EXAMPLE:</b>
data : posnr type posnr.
posnr = '70'.
CALL FUNCTION 'ZUPDATE' DESTINATION 'ESUCLNT500'
EXPORTING
ITEM = posnr.
FUNCTION ZUPDATE. IN ESUIDES
*"----------------------------------------------------------------------
*"*"Update Function Module:
*"
*"*"Local Interface:
*" IMPORTING
*" VALUE(ITEM) TYPE POSNR
*"----------------------------------------------------------------------
data: itab type standard table of zupdatetable1,
wa_itab type zupdatetable1 .
wa_itab-posnr = item.
append wa_itab to itab.
update zupdatetable1 from table itab .
ENDFUNCTION.

Asynchronous RFC
- The calling program continues the execution without waiting for return from the called function.SYNTAX
Eg: CALL FUNCTION remotefunction STARTING NEW TASK taskname.
REPORT calltransaction.
CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'TEST'
EXPORTING
tcode = 'SM59'
EXCEPTIONS
call_transaction_denied = 1
tcode_invalid = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CASE sy-subrc.
WHEN 2.
WRITE 😕 ' transaction doesnot exist'.
ENDCASE.
WRITE: / ' Demo For Asynchronous Transaction End'.

Transactional RFC
This type of RFC was renamed from asynchronous to transactional RFC, because asynchronous RFC has another meaning in R/3 Systems.DISADVANTAGES
SAMPLE PROGRAM
RSTRFCT0
Thanks & regards
Ravish Garg
*reward if of any help
2007 Jul 30 8:08 AM
hi,
Remote Function Call:
RFC is an SAP interface protocol. Based on CPI-C, it considerably simplifies the programming of communication processes between systems.
RFCs enable you to call and execute predefined functions in a remote system - or even in the same system.
RFCs manage the communication process, parameter transfer and error handling.
How to create it.
goto Se37 create a Function module.
in the attribute tab select remote function enabled radio button.
in Sm59 create a destination, select type 3 for R/3 system
specify the ip address of the target system & save it.then click the button test connection to check the connection.
in Function module specify ur import export parameters. it must be pass by value so tick the check box.
write ur code & save it.
Have a look at this link.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE2/BCFESDE2.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/22/042860488911d189490000e829fbbd/frameset.htm.
Regards
Reshma
2007 Jul 30 8:08 AM
hi,
Remote Function Call:
RFC is an SAP interface protocol. Based on CPI-C, it considerably simplifies the programming of communication processes between systems.
RFCs enable you to call and execute predefined functions in a remote system - or even in the same system.
RFCs manage the communication process, parameter transfer and error handling.
Have a look at this link.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE2/BCFESDE2.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/22/042860488911d189490000e829fbbd/frameset.htm.
Regards
2007 Jul 30 8:08 AM
Hi Dear.
RFC is Remote Function Call. Suppose when u Select the Radio Button while Creating
any Function Module in se37 u can call this Function Module any where in SAP using RFC Destination in sm59.
If more doubts feel free to ask
Reward Points if this supports you.
Regards,
Bohra.
2007 Jul 30 8:10 AM
RFC(Remote Function call): you basically use RFC connection to do connectivity to any remote system.Basically use in data transfer between sap system to another sap system or sap to another system.
you can create RFC using SM59 tcode.
1.Goto SM59
2. Choose Connection type.
3.Choose R/3 if you want to connect another sap system.
4.then enter IP address of remote system on which remote server installed.
4.then enter logon parameter for traget system like user id,password,client.
5.Now test ur connection and try to log on remote system by pressing remote logon tab on application toolbar.
plz rewards the point if helpful.