Monday, 2 December 2013

How to do RFC


In our example there are 3 System with following configuration –
DEV ( client 200,300,400 ; H1/192.168.0.1 )
QAS ( client 200,300,400 ; H2/192.168.0.2 )
PRD ( client 200 ; H3/192.168.0.3 )  
       Task ->  DEV(Source) wants to talk to QAS (Target)
Steps :-
1.Login to source (DEV).
2.Execute SM59.
3.Select R/3 connection and click on the create button.
4. Select Connection type 3
5. Provide a description for the destination as below- 








6. Save it.
7. Now we will show the technical details like
 (target host should be ip address
 or host name. system number is 00 in this example)

8.Then provide logon details (In this example)
    Language en;
    Client 200;
    User aleada;
    Password pass;
      
9.Then click to save it.
10. Then click on Test connection.

11.Then look for successful message. 
12. After it authorization test






RFC (Remote Function Call)


RFC is the call of a function module that is running in a different system . It is used to maintain the communication between SAP or NON-SAP system with SAP system.
There are 4 types of RFC present in SAP –
1.Synchronous System :- For direct combination between different system and between SAP system. Both system should be active at that time.
2.Asynchronous System :- For direct combination between different system and for parallel processing of selected task. System can be active or not.
3.Transaction RFC :- The main problem with asynchronous rfc is that when we send data in it, same message can be send one or more time. So removing this type of inconsistency we send an id with that data. With the help of this id receiving of same message more than 1 time will be rejected.
4.Queue RFC :- It is extension of TRFC. That type of RFC maintain a queue. It also ensure that individual steps are processed in the sequence.
5.Background RFC :- It is successor to TRFC and QRFC.