‎2007 Jul 30 8:31 AM
What is RFC? what is relation between idoc and rfc, which is better?
Regards,
swathi
‎2007 Jul 30 8:32 AM
hi,
<u>Remote Function Call:</u>
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.
<u>IDOC</u>
IDOC is a intermediate document to exchange data between two SAP Systems.
*IDocs are structured ASCII files (or a virtual equivalent).
*Electronic Interchange Document
*They are the file format used by SAP R/3 to exchange data with foreign systems.
*Data Is transmitted in ASCII format, i.e. human readable form
*IDocs exchange messages
*IDocs are used like classical interface files
IDOC types are templates for specific message types depending on what is the business document, you want to exchange.
WE30 - you can create a IDOC type.
An IDOC with data, will have to be triggered by the application that is trying to send out the data.
FOr testing you can use WE19.
how to create idoc?
*WE30 - you can create a IDOC type
For more information in details on the same along with the examples can be viewed on:
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400404
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm
http://www.sappoint.com/presentation.html
http://www.allsaplinks.com/idoc_search.html
http://www.sapgenie.com/sapedi/idoc_abap.htm
Rgds
Reshma
‎2007 Jul 30 8:36 AM
Hi,
RFC (remote function call) is a call to a function module running in a different system.Programmatically ,you can call the RFC enabled function module
using the "CALL FUNCTION Destination" statement.
There are 3 types of RFC's.
1.Synchronous RFC: With this call,the calling program stops processing until the control is returned back to the called function
2.Transactional RFC (tRFC)
Transactional RFC (known as asynchronous RFC) is an asynchronous communication method that executes the called function module in the RFC server only once.
3.Queued RFC: LUWs are processed in the order specified by the application, tRFC can be serialized using queues (inbound and outbound queues). This type of RFC is called queued RFC (qRFC).
Regarding the Gateway Host of RFC scenario, you need to go to trnx SM59, select the TCP/IP Connections and follow the Michal's Blog for further steps.
For IDOC Scenarios you need to do the ALE Configuration First.For the ALE Configuration you can look into this Blog:
/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
You will know waht is Partner profiles
Regards