What is rfc. and uses

<u></u>what is rfc. and uses

Hi,
RFC
Remote Function Call:
RFCs are requests that an SAP component sends to invoke functions on remote systems, or calls that remote systems initiate to invoke functions on an SAP component.A process that can accept RFCs from SAP components. This allows SAP components to access functions in external systems. In SAP BC terminology, the process is called a Listener. Listeners are one or more threads on SAP Business Connector that wait for incoming requests from SAP components. Listeners are named and register with an SAP gateway to indicate that they are ready to accept requests. Listeners can accept RFC or tRFC requests.
Transactional RFC (tRFC) and Queued RFC (qRFC). tRFC is used mainly to transfer ALE Intermediate Documents (IDocs).
Transactional RFC:
If an error occurs during a synchronous remote function call, the system cannot tell at what point the error occurred (most crucially, whether the function module was actually processed in R/3 before the operation failed). Restarting a failed call is therefore a dangerous thing to do, since you risk duplicating a completed function call.
To alleviate this problem, you can use transactional RFC, which guarantees that each function call you issue will only be executed once, even if you submit it repeatedly to the R/3 System. The system implements this safeguard by assigning a unique transaction ID (TID) to each transaction that you submit. When you attempt to process the transaction, the system checks whether that TID has already been processed. If it has, the transaction is ignored.
Queued RFC:
When you use transactional RFC, you cannot guarantee the order in which the function calls will be processed in the system (it is quite possible that one call might overtake another). For cases where you need to specify a particular processing order, you can use queued RFC, which is an extension of transactional RFC. In qRFC, you place each function call in a logical queue. A function call cannot be executed until all of its predecessors in the queue have been processed. Queued RFC calls are processed asynchronously.
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.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f078394a-4469-2910-c4bf-853c75674694
Please go through the following link. You will get good info on RFC & its types.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f078394a-4469-2910-c4bf-853c75674694
Regards,
Priyanka.

Similar Messages

  • What is RFC and IDOC Adapters in XI  ?

    Hi,
    What is the RFC and IDOC Adapters in XI , in which scenarios we use this adapter , what is the advantages and disadvantages of RFC , IDOC ? can any help me out.
    Thanks & Regards
    Surendra M

    Surendra,
    <b>What is the RFC and IDOC Adapters in XI</b> :
    <b>IDOC:</b> Generaly standard IDOCs are used to update the data in R/3 or to extarct the data from R/3.
    <b>RFC:</b> Are generally used for synchronoue scenarios.
    <b>in which scenarios we use this adapter</b>
    For example you can use the IDOC <b>ORDERS05</b> to post the sales orders.
    Similarly you can use <b>BAPI_COMPANY_GETDETAILS</b> to fetch the company details.
    <b>what is the advantages and disadvantages of RFC , IDOC ?</b>
    <b>Advantages:</b> Both can be used for data retrival and posting. RFC can be used for synchronus purpose but IDOCs are always asynchronous.
    <b>Disadvangages:</b> If you are using custome made RFC/IDOC then you have to import the RFC/IDOC into XI every time when you make any small changes in the structure.
    Also go through this blog to choose the right adapter to integrate with SAP systems.
    /people/ravikumar.allampallam/blog/2005/08/14/choose-the-right-adapter-to-integrate-with-sap-systems
    Regards,
    Sarvesh

  • How to pass table in RFC and use that table to populate fields in Mapping?

    Hi,
    I have a requirement FIle to CSV, the file consists of thousand lines...
    What I did first is to put RFC look up per line. It is taking too long to process the message.
    One work around that I could think of is to pass all the values to a table then pass the table to RFC then RFC returns another table, so only one RFC call is required.
    How am I going to use the table returned by the RFC? Please advise how to achieve this scenario.

    Hi,
    I use an ABAP RFC function, which has a parameter that contains many rows.
    In ABAP, I create a two types. First is a ROW - contains some fields, for example, param1, param2, etc.
    Second is a TABLE - contains multiple count of ROW.
    Then I create a Remotecallable Function that has this TABLE-type as parameter (you can make this parameter as INPUT and OUTPUT). So in my mapping program after import RFC Function, I see a message looks like this:
    MY_TABLE_PARAM (Occurences: 1)
    item (Occureces: 0..unbounded)
    param1 (Occureces: 1)
    param2 (Occureces: 1)
    etc (Occureces: 1)
    Regards.

  • What the difference and use between   of  TABLES and SY-REPID?

    Hi,
    Experts,
    I have came accross 2 cases that i can't able understand
    EX1:
    TABLES: VBAP   -
    >( Here also Appplication Server(AS) creates Wrokarea of Structure VBAP but, by 
    data: v_vbeln like vbap-vbeln.    double clicking on variable v_vbeln AS taking me to DDIC VBAP table VBELN field then what the using declaring tables. )
    ( and ) 
    DATA: VBAP TYPE VBAP -->( Here also Appplication Server(AS) creates Wrokarea of Structure VBAP data: v_vbeln like vbap-vbeln.    but,double clicking on variable v_vbeln AS taking me to user declared VBAP
                                                  i.e., above DATA declaration statement )
    Then Which one is better in Functionality wise as well as Performance wise or when we have to go for TABLES and when we have to go for DATA declaration of DDIC objects.
    EX2:
    what the difference between
    I know that SY_REPID is not a system variable. And also that
    Data: vrepid type SY_REPID.--> Predefined data type in ABAP
    and
    Data: vrepid like SY_REPID.-> Predefined Constatnt in ABAP( it is a constant it allowing with out VALUE                                                                               
    attribute)
    what difference between them and when we have to go Data: vrepid type SY_REPID and when we have to go Data: vrepid like SY_REPID.
    Thank U,
    Shabeer Ahmed.

    Hi Ahmed,
    TABLES:
      VBAP.   " DDIC
    DATA:
      v_vbeln like vbap-vbeln.
    *Here you are using the DDIC VBAP
    DATA:
      VBAP TYPE VBAP.
    DATA:
      vbeln like vbap-vbeln.
    *Here you are using the local data object as your data type so it will always
    * take you to user declared VBAP which is declared by you.
    DATA:
      T_VBAP TYPE VBAP.
    DATA:
      vbeln like vbap-vbeln.
    * here its using T_VBAP not DDIC VBAP
    And for performance always the second option is better, use Data instead of tables, declare your own local structure.
    Data:
      vrepid type SY_REPID.  thereis nop redefined data type in ABAP as SY_REPID
    * its SY-REPID which is a system variable.
    Data:
      vrepid type SY-REPID.
    Also refer to the links:
    Difference between tables statement and by using type statement
    for type and like:
    Re: LIKE and Type in abap statements
    With luck,
    Pritam.

  • What is RFC and how does work

    Hi Sap Guru's
    I want to know the RFC in SAP and how does it work?
    Thanks in advance
    Regards
    Ramesh

    Hi Ramesh,
    These are the types of RFC
    Asynchronous RFC (aRFC)
    Synchronous RFC (sRFC)
    Transactional RFC (tRFC)
    Queued RFC (qRFC)
    Parallel RFC (pRFC)
    Asynchronous RFC :
    This is used when you need to increase the performance of ABAP program by having system call more than one function module in parallel than forcing the program to wait for results .
    Transactional RFC
    This let you group one or more function module call together o tRFC LUW and ensure that fucnction module within LUW is called once . In contrast to aRFC and sRFC the tRFC belonging to tRFC LUW are executed in order .
    tRFC is always used if a function is executed as a Logical Unit of Work (LUW). Within a LUW, all calls are
    1.Executed in the order in which they are called
    2.Executed in the same program context in the target system
    3.Run as a single transaction: they are either committed or rolled back as a unit.
    Implementation of tRFC is recommended if you want to guarantee that the transactional order of the calls is preserved
    Asynchronous remote function calls (aRFCs) are similar to transactional RFCs, in that the user does not have to wait for their completion before continuing the calling dialog. There are three characteristics, however, that distinguish asynchronous RFCs from transactional RFCs:
    • When the caller starts an asynchronous RFC, the called server must be available to accept the request.
    The parameters of asynchronous RFCs are not logged to the database, but sent directly to the server.
    • Asynchronous RFCs allow the user to carry on an interactive dialog with the remote system.
    • The calling program can receive results from the asynchronous RFC.
    You can use asynchronous remote function calls whenever you need to establish communication with a remote system, but do not want to wait for the function’s result before continuing processing. Asynchronous RFCs can also be sent to the same system. In this case, the system opens a new session (or window). You can then switch back and for between the calling dialog and the called session
    RECEIVE RESULTS FROM FUNCTION Remotefunction is used within a FORM routine to receive the results of an asynchronous remote function call. The following receiving parameters are available:
    IMPORTING
    TABLES
    EXCEPTIONS
    The addition KEEPING TASK prevents an asynchronous connection from being closed after receiving the results of the processing. The relevant remote context (roll area) is kept for re-use until the caller terminates the connection.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • SBWP ..? what its role and use ..?

    Hi experts
    Can anybody give some detailed inputs about the SBWP transaction code .
    What is use , what is advantages ..?
    Please Expalin step by steps  ..
    Thanks
    MM group

    Hi,
    SBWP is used for managing your workplace in SAP. Refer following link;
    [Managing your IRIS Business Workplace|http://eastern.tennessee.edu/IRIS%20Travel/Managing%2520Your%2520Business%2520Workplace.pdf]

  • What u hear and microphone at the same ti

    Hey,
    I am planning on broadcasting some video and audio with my commentary online, but can't seem to find a solution to my problem.
    In order to do it'sI need to talk and send out the audio from my computer. But it is impossible since I can't choose "What U hear" and microphone under sound options in vista at the same time.
    Anyone knows how to fix it's
    I have a X-fi Xtrememusic.
    Thanks

    The new X-Fi cards have both What U Hear and the microphone enabled at the same time. It makes for a good card to stream with if you have a decent mic.
    If Mike knew anything he would also know that for streaming you need both What U Hear..and the mic enabled at the same time so you can stream though What U hear and use the mic without switching back and forth.
    The older cards do NOT have this feature making it very difficult to stream music while having the microphone function correctly.
    Message Edited by chevell on 04-06-2008 11:15 PM

  • What is adaptive RFC and How to Use it

    hi friends
    what is the adaptive RFC
    what is the use of it
    how we can use it
    explain me anyone
    and send pdf also
    thanks
    ramu.

    Hi,
    To give u a brief idea.
    rfcs are used to call data from the backend that is R/3.We use the Bapis from the R/3 system which have some pre defined functionality and data is populated in the correspoding ui elements in webdynpro interface.earlier Rfcs were used but now we have adaptive rfcs in which
    if there are changes in the backend(R/3 system) such as changes in the datatype,structures,fields would be automatically be refllected in the rfcs and there would be no errors in web dyn pro even if there is  a change in the back end
    to be more specific folow this link
    http://help.sap.com/saphelp_nw70/helpdata/EN/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm
    and try out this application
    to use the rfcs firstly check out this document for configurations
    Important Configurations for Calling ABAP Function from Java Web Dynpro Application
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07753b9-fa0c-2a10-64a8-c6754c45396e
    heres the application.
    Creating a Web Dynpro Application Accessing ABAP Functions
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/355b9c90-0201-0010-d2a8-89fece426526
    regards
    Nikhil Tapkir

  • What is the diffrence between BAPI and RFC and business object

    Hi Experts,
    Can anybody tel me what is the diffrence between RFC and BAPI , and also what is ther relation with business object?
    Thanx in advance.
    Nilesh Hiwale

    Hi,
    BAPI's are associated with Business Objects and also they are RFC enabled.
    But RFC's are the FM's which can be called from external systems, those FM's can be used in many places based on the applications..
    Check these Links
    whats the difference between BAPI and RFC??
    Diff. Between BAPI and RFC
    Regards
    Kiran

  • What is the difference between rfc and idoc

    hi,
       My name is rambabu.can anyone of u please tell me the main differences between idoc and rfc??
    Thanks in Advance

    hi Ramesh,
    Remote Function Calls (RFC) and data exchange through IDoc
    message documents. RFC makes direct and synchronous calls of a program in
    the remote system. If the caller is an external program it will call an
    RFC-enabled function in R/3 and if the calling program is the R/3 system
    it will call an RFC-function in another R/3-system or it will call a
    non-R/3 program through a gateway-proxy (usually rfcexec.exe). BAPIs are
    a subset of the RFC-enabled function modules, especially designed as
    Application Programming Interface (API) to the SAP business object, or in
    other words: are function modules officially released by SAP to be called
    from external programs.
    IDocs are text encoded documents with a rigid structure that are used to
    exchange data between R/3 and a foreign system. Instead of calling a
    program in the destination system directly, the data is first packed into
    an IDoc and then sent to the receiving system, where it is analyzed and
    properly processed. Therefore an IDoc data exchange is always an
    asynchronous process. The significant difference between simple RFC-calls
    and IDoc data exchange is the fact, that every action performed on IDocs
    are protocolled by R/3 and IDocs can be reprocessed if an error occurred
    in one of the message steps.
    While IDocs have to be understood as a data exchange protocol, EDI and ALE
    are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to
    deliver data to the receiving system. ALE is basically the scheduling
    mechanism that defines when and between which partners and what kind of
    data will be exchanged on a regular or event triggered basis. Such a
    set-up is called an ALE-scenario.
    Regards
    Sreeram.G.Reddy

  • Use EOIO on Sender RFC and outbound ABAP proxy calls

    In the comm channel of SOAP and FILE there is a simple flag to set for QOS = EOIO
    In Plain HTTP adapter a QOS parameter can be supplied.
    IDOC uses control record tricks or a Receiver adapter option.
    But what about the RFC and XI adapters.
    The docu states QOS of EOIO for RFC and XI adapters is possible.
    How is set for sender RFC and Sender XI adapters?
    regards
    Phil

    Phil,
    I was discussing with Michal about this.
    I suppose it is not fully EOIO, because you don't send directly from the outbound queue to the inbound queue. The AE service may not have a specific queue for that message, until the queue is associated in adapter module. Maybe (just maybe), if you get unexpected extra processing in the initial AE reception of the message (and hence, before the queue is set, in adapter module), you may have some inconsistencies with the processing order in sender system.
    But again, that is just a speculation.
    I'm not sure what is the behavior it'll have.
    And even if what I speculated is right, it is a really short amount of time.
    But again, EOIO would not be 100% guaranteed (maybe 99% hehe).
    But sometimes (most of the times) that is not enough.
    Regards,
    Henrique.

  • What is RFC? How it can be used?

    Hi All,
         Can anybody explain about RFC (Remote Function Call) and also explain how it can be used?
    Thanks in Advance.

    Hi,
    RFC- remote functional call. It may be any external device used to make an entry in SAP.
    For example Bar Code reader is on of RFC.
    U need to study for what purpose u r using this RFC and and what data u want to captured out of this RFC.
    One need to implement the abap code so that to accept the per defined format for this RFC.
    Please take the help fo ur ABAP associate to map this requirement.
    Hope this will help u to understand the RFC.
    Regards
    JB

  • What is the difference between 'command delete' and using 'delete original and all versions'?

    My masters are not referenced and I usually have only one version.  What is the difference between using 'command delete' versus going to the top menu bar and using 'dele

    Good question  .
    When the Version is the only Version based on the Original of that Version, the two commands have the same effect.
    See this User Tip by master Aperturist Frank Caggiano.

  • HT204407 my 2 daughters and I are sharing one icloud.  I am trying to set up and use find my friends with them, but it won't let me.  It says I can't send a request to myself when I send one to her email address, which is different than mine.  What am I d

    my two daughters and I have iphones.  I am trying to set up and use find my friends with them. We have 1 icloud, but different emails.  When I send a request it states that I can't send a request to myself.  What am I doing wrong

    Sharing an Apple ID is never recommended for these reasons.
    They can create their own: http://appleid.apple.com and you can add them at the addresses they use for their ID.
    Sharing an Apple ID is not recommended because all of your data gets merged and when it gets deleted from one device, it deletes from them all, such as Contacts.
    iCloud Guide

  • Why when i want to download a free app from app store it asks for my apple id and when i give my apple id it then says "this apple id has not yet been used in the itunes store". i dont even know what that means and it will this happen everytime?

    why when i want to download a free app from app store it asks for my apple id and when i give my apple id it then says "this apple id has not yet been used in the itunes store". i dont even know what that means and it will this happen everytime?

    If you are within 14 days of purchase you can still return the iPhone and get the phone that suits your needs, however, I think you will find that no matter which phone you get the content provider will want to know how you are going to pay for future purchases. For Android phones it is Google, and they will certainly want to know.
    To create an Apple account without a credit card see: http://support.apple.com/kb/HT2534

Maybe you are looking for

  • Number Range (series) for Billing Document (F2) and Excise Invoice

    Hi All, I want to know how the number ranges / number series is defined for billing documents (F2) and excise invoice, for India business scenario. In India, the excise invoice is given to the customer so that he can the excise duty/ cenvat. This inv

  • Can I partition my HD for Time Machine?

    Hi all, I just bought a drive intended for use with Time Machine. However, I would like to know, if its possible to partition the drive first and use only one half for Time Machine? Another thing, do I have to format the drive to Mac OS Extended jour

  • Runtime error R6034, itunesHelper.exe and the missing library MSVCR80.dll

    I made the mistake of upgrading to the new version of itunes and I appeared the following errors: - Runtime Error R6034 on ituneshelper.exe - Library MSVCR80.dll not found - Error 7 (windows error 126)   I tried to install and uninstall as they say a

  • 3rd Party SAP Business One Directory - Where is it?

    Hi, I'm trying to find the third party turnkey applications directory for product extensions. I used to have a PDF file with the listing. Can anyone point me to it? Thanks! Vic

  • Camileo S20 - recorded file cannot start due to format error

    Hi! I have a problem here. My camileo S20 format is .avi but when i try to put the film on a stick or dvd and play it on my dvd-player it won't start (format error) , i changed the dvd-player and the same problem , i tried to make it .mpg , still no