Function module  VS RFC

any body can help me to know the difference between function module and remote function module...?

hi,
function module: is a function module it is available with in sap system only.
RFC
A remote function call is a procedure for data interchange between a client and server. Typically the client calls a server program and the server returns the results via a TCP/IP connection. Remote function calls may be associated with SAP software and ABAP programming and provide a way for an external program (written in languages such as PHP, ASP Java, or C, C++) to use data returned from the server. Data transactions are not limited to getting data from the server, but can insert data into server records as well.
A remote function call (RFC) is the call of a function module that runs in an external system to the calling program. Although it is possible to call a function module in the same system as an RFC, normally RFCs are used when the caller and the called function module run in different systems.
In the SAP system, these functions are provided by the RFC interface system. The RFC interface system enables function calls between two SAP systems, or between a SAP system and an external system.

Similar Messages

  • Problem in converting a function module in RFC

    hi All,
    when i m converting a function module in RFC it is showing a error message ,
    Generic Types are not allowed in RFC.
    How can i handel this.
    Regards,
    Susheel Joshi

    Hi Susheel,
    RFC module interface parameters (import, export , tables) can only refer to data dictionary types. Hence if you currently have one of the parameters referring to a type defined in your function group main include or in a type pool, you need to create a SE11 data dictionary structure/ table type for that and then change the data type reference.
    Cheers,
    Aditya

  • Unable to send table to function module using RFC

    Hi all,
    I'm trying to send a table from XI to a function module using RFC. I tested the process first using indivdual parameters. At this point there were no problems. Now I changed the import parameter of
    the FM into a table and imported the changes into XI. I changed the Message mapping and tested it with multiple records. When I run the process XI calls the FM but the FM doesn't receive any data. I tested this by puting a break-point in the FM. There are no errors in the XML Messages Monitor. I found this message in the Communication Channel Monitoring:
    Short Log:
    Server 0 10_39293 Receiver channel 'CC_BackendIn' for party '', service 'BS_Backend' (internal name 'RfcClient[CC_BackendIn]')
    Client data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=610, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=Admin, jco.client.sysnr=10, jco.client.ashost=192.168.51.8}
    Repository data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=610, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=Admin, jco.client.sysnr=10, jco.client.ashost=192.168.51.8}
    Current pool size: 0, maximum pool size : 1
    Channel History
    - OK: 2009-02-18 01:35:14 CET: Message processed for interface MIIA_BapiIn
    Any ideas?
    Thanks for your help!
    Regards,
    Ivo van Ee

    Hi everyone,
    thanks for your prompt response! I tested the mapping in XI and didn't find any error here. So I concentrated on the receiver side. There were some communication channels running on the server that were generating errors. I stopped alle the communication channels and started just the two communication channels for this process. This time the table was successfully exported to the function module! Problem solved. Still not sure what caused the problem in the first place, but everything is working fine now.
    Thanks for your help.
    Regards,
    Ivo

  • How to create IDOC from Function module or RFC

    Hi all,
            I have tested one inbound IDOC for Time Upload to CAT2 using basic type "CATS_INSERT01"  in WE19 through function module BAPI_IDOC_INPUT1 .It works well.
    Now i need to create this IDOC once the sale order gets created thru BAPI.
    For creation of Sale order i wrote one RFC in which i will call the Standard Sale Order Bapi.My question is once the Sale order gets created in that RFC How do i trigger the IDOC for CATS upload.

    Hi,
    Which SAP product of wich release of which SP are you using ?
    The procedure is documented in help.sap.com and in blogs and SDN forum messages.
    It means that the use of the SEARCH button should give plenty of answers...
    >When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign >namespaces"
    As usual, begin your choosen name with an "Z".
    Regards,
    Olivier

  • How to make this function module as RFC to get data from different system?

    Hi
    I am trying to use following function module . This function module is used to copy data from one cube to another cube within same system however I need a this should happen across two different system. How can I use this function module to make it remote call to different system and do the same function what it is doing ?
    Name of function module -
    RSDRT_INFOCUBE_DATA_COPY
    Any help would be really helpful
    AG

    HI,
      let us say you want to copy the data of a cube in system A to a cube in system B .
      1) create a RFC function module in system B (in this function module  call the function module RSDRI_CUBE_WRITE_PACKAGE to update the data), this RFC function module should have same parametersa as RSDRI_CUBE_WRITE_PACKAGE .
    2) write a program in system A .. read the data from the infocube using the function module RSDRI_INFOPROV_READ and call the RFC function module in system B that you have created..
    for the details of the parameters to pass to these two function modules use the RSDRT_INFOCUBE_DATA_COPY and get the required code
    Thanks
    mahesh

  • Asynchronous function module - why RFC ?

    Hi,
    I am using CALL FUNCTION ... STARTING NEW TASK ... DESTINATION 'NONE' to start an asynchronous process.
    For this to work, the called function module must be unfortunately RFC enabled.
    Actually I do not want that anybody external can call this. Can I find out, if I was called from "outside"? Otherwise I create a potential security hole?
    Regards,
    Bruno

    A sound security concept is the cure for many problems.
    In this special case it is much easier said than done...  ;-(
    STARTING NEW TASK automatically uses DESTINATION 'NONE' even if you do not code the destination extention, therefore the FM must be RFC-enabled.
    FM RFC_WITHIN_SAME_SYSTEM checks that the caller is within the same SID, which is what the internal destination NONE is.
    To use security for this you must consider that internal destinations do not check object S_RFC by default. But real external callers will encounter the check. This means that to use authorizations based security you must have all your users (everything from end users to the RFC connections users into this system) as having explicit and restircted RFC authorizations which also do not include the function group which this FM belongs to.
    Additionally the field is 40 char long (as are the object names) but the authority-check statement truncates the function group name at the 15th character as it can only deal with 16 char.
    An finally, anyone who does not know the object is very likely to pop a * value into it when it turns up, and it will ... 
    In this case I also think that FM RFC_WITHIN_SAME_SYSTEM is the more reliable solution. After all, SAP also use it for exactly this purpose.
    Cheers,
    Julius

  • Function Module with RFC for accessing tables

    Hello All
    I am programming using ABAP in Solution Manager system. I have to take data from tables(T001W and T001K) from a R/3 Server. Is there a function module which extracts data from tables via RFC ?
    Thanks
    Tharani.

    Hi,
    Check thes FM's:
    RFC_GET_TABLE_ENTRIES
    TABLE_ENTRIES_GET_VIA_RFC
    GET_TABLE_RFC
    or develop a RFC enabled FM to get the required data in R/3 and call it from your program
    example :
    data: wtab type BDSEL_STAT occurs 0 with header line.
    data: tab type BDI_ENTRY occurs 0 with header line.
    name = T001W.
    CALL FUNCTION 'TABLE_ENTRIES_GET_VIA_RFC'
    destination dest
    EXPORTING
    LANGU = SY-LANGU
    TABNAME = name
    TABLES
    SEL_TAB = wtab
    NAMETAB =
    TABENTRY = tab
    EXCEPTIONS
    INTERNAL_ERROR = 1
    TABLE_HAS_NO_FIELDS = 2
    TABLE_NOT_ACTIV = 3
    NOT_AUTHORIZED = 4
    OTHERS = 5 .
    Regards
    Laxman
    Message was edited by: Laxmana Kumar

  • Function module with RFC enable

    Hello ABAPers,
    Im a new comer in ABAP and I would like to have a basic knowledge in RFC using a function module/function group..
    I have this project in Travel Dept...I need to connect on a different system using SAP connector...meaning...I will logon to SAP and connect to another system which is VB.net and has a back-end of SQL 2000. After connection I need to select or search a data to that table...for me to get the ticket number.
    Before I tried to connect from VB.net to SAP...and successfully used the SAP connector...now I need the vice versa version of this approach..
    Can anyone help me? please....
    Thanks in advance...Will reward points
    aVaDuDz

    For Basic Understanding just look at RFC_READ_TABLE FM,This will give good example
    Also Check the SM59 Transaction to create RFC Destination
    Please check with below link :
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=rfc&cat=sdn_wiki
    Thanks
    Seshu

  • Function modules and rfc

    please give me the code for writing exceptions in an rfc like bapiret2 to handle all type of exceptions ehile inserting or extracting data?

    Hi,
    Refer this link.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE2/BCFESDE2.pdf
    It explains u in detail.
    Reward if helpful.
    regards,
    Ramya

  • Problem calling function module via rfc

    Hello,
    i have imported an adaptive rfc model.
    When i use it on a view, giving the import parameters over a textview and showing the results in a table everthing works fine.
    But when i set the input-parameter programmatically with a line like this:
    wdThis
    .wdGetCompController()
    .wdGetContext()
    .currentZ_FUNCTION_MODULE()
    .setMyAttribute(parameter);
    it does not work and i do get no errors - what can it be?
    Thanks for help,
    André

    Hi Andre,
    As you told, When you passing the value from the screen it works perfectly.So, there is no problem in initializing Model.
    You have to write following code in view and context of this view should be mapped with controller.
    wdContext.currentZ_FUNCTION_MODULEElement().setMyAttribute(<value>);
    Write this statement before executing your model.
    Regards,
    Bhavik

  • Parallelization is not happening using asychnronous RFC in a function module

    A BW data source ZTEST
    has been created based on a function module ZTEST_FM to pull the
    data into BW system from R/3.
    (Have checked the parellel jobs running in SM66 transaction).
    Inside the function module, an RFC function
    module ZTEST_RFC1 has been called asynchronously to implement the parallelization
    to improve the data extraction time into BW system.
    Note: In this scenario asynchronous
    RFC is used to implement the parallel processing.
    The logic in the function module is as follows.
    Function module ZTEST_FM Logic:
    Fetch data from HRP1000 table into an internal table IT_HRP1000 for
    OTYPE = ‘TN’.
    Loop at IT_HRP1000 into work area (WA).
    Call the RFC asynchronously by passing OBJID,OTYPE and ENDDA,
    Calculate SOBID which is the required output field from the RFC
    function module.
    Populate the results into final internal table E_T_DATA.
    The output structure contains the following fields.
    OBJID
    BEGDA
    ENDDA
    SOBID
    Could you please give us some suggestions, to implement the parellel processing using asychronous RFC in this scenario.
    Would appreciate your help.

    Your RFC call looks correct. For collecting the result you will need to code the callback routine Write_E_T_data. Inside the callback you can use the statement
    RECEIVE RESULTS FROM FUNCTION ZFHLS_EX_TNM_ACADEMY_RFC1 IMPORTING <parameter list>
    to retrieve the calculated result. For the declaration of the callback routine I recommend
    FORM Write_E_T_data USING iv_name TYPE c.
    The parameter iv_name containing the name of the RFC task turned out to be mandatory in my tests.

  • Calling RFC function module in other SAP system...

    Hi,
    I have a report on one SAP system and a function module on other system. The function module is RFC enabled. How can I call this RFC enabled function module from other SAP system in the report which is different SAP ?
    system.
    Thanks.
    Regards,
    Rajesh.

    call the function module in orginal system in se38 ,copy the function module ,paste the function module in other system,and maintain destination here ,otherwise you will get short dump.
    here detination should be SM59 destination,this is case sensitive.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Call RFC function module

    Hi all,
    i try to call a remote enabled function module via rfc from erp to apo.
    CALL FUNCTION 'Z_XXXXXXXXXXXX
            DESTINATION XXXXX
            EXPORTING
              wa_truid = it_tab_pre-trguid
            IMPORTING
              status   = wa_status.
    In debugging the parameter it_tab_pre-trguid is filled correctly (in ERP).
    But in APO the field is empty.
    Any ideas?
    regards

    Hi!
    Calling an FM with RFC means, you just simply run it on their system with giving  some parameters to it.
    It will use the remote database to select data.
    Log into the APO system and run the FM there, with the same parameters, and you'll see, what's wrong.
    Regards
    Tamá

  • RFC Enabling a Function Module

    Hi Friends
    I need to remote enable a Function Module( for RFCs ) which was already developed some years ago.
    I need to know what all things I need to take care of when remote enabling such a Function Module.
    Thanks
    ~S

    this is what u need to do...
    1) change attributes of FM to Remote-Enabled
    2) create  RFC destination in SM59, u can specify the logon information here to access the remote system
    3) call the function by specifying the DESTINATION addition in the CALL FUNCTION statement...
    that is...
    CALL FUNCTION <func_name>
        DESTINATION <RFC destination name>
    but make sure of the following...
    1) if u r going to use asynchronous RFC, there should not be a return parameter in the FM,
    2) table header lines cannot be passed in RFC FMs
    3) no parameters can be passed by reference
    read the documentation on RFC for details...
    http://help.sap.com/saphelp_erp2004/helpdata/en/22/042abd488911d189490000e829fbbd/frameset.htm
    rgds,
    PJ

  • How to remotely access a Function Module

    Hi ,
    I am working on XI and SAP scenario , wherein , I want to import a function module in the XI imported objects..
    To import these Function Module as RFC , these FM should be remotely accesible.
    So to do so , wat settings are neccesary while creating FM and making it remotely enable?/
    Pls help out.

    Here , I clicked radio button for Remote Enable.
    When i declare import and export parameters
    ex. num1 type i,
    it gives error as
    "reference parameters are not allowed with RFC"
    How to resolve this issue?

Maybe you are looking for

  • Searching for a Certain iPhone App on Apple iTunes AppStore???

    ok i need to know if Apple AppStore has an iPhone App that Detects Rats & Mice??? why i ask??? Last night I Was Sleeping in My Room ok so there are times I Get up in the middile of the night & Have Very Bad Habits of Rocking back & Fourth at night so

  • HT200251 Download and install OS X Server v2.1.1 from where?

    Hi, Im running mountain Lion on my mac mini server (server version 1.5) and i'm tryiing to upgrade tp v2.1.1 but i can't seem to find the download link anywhere. Any pointers?

  • Customer consignment invoice

    Hello, is it possible to trigger a SD invoice when doing a goods issue from plant stock to customer consignment stock. In our actual case the invoice is triggered when consuming the consignment stock. Thanks a lot

  • Using hub phone without BT

    Hi All, I recently left BT to go to another supplier for BB and phone line. Since the switch last week i have still been able to use my hub phone as a landline but the date and time have reset to 12am/year 2000.  I have tried to login to the hub to t

  • How should i do i forgot my security questions ?

    As i say. whay shoudl i do ? somebody helps me pls