Regarding  parameters in rfc

hi all,
can any one explain me why RFC does not support the u201Cby referenceu201D mechanism , as i want to pass table parameter to rfc how they wil be passed without  u201Cby referenceu201D .
thanks in advance
dilip

When you make a remote function call, the system handles parameter transfer differently than it does with local calls.
TABLES parameters
The actual table is transferred, but not the table header. If a table parameter is not specified, an empty table is used in the called function. The RFC uses a delta managing mechanism to minimize network load during parameter and result passing. Internal ABAP tables can be used as parameters for function module calls. In a local function module call, a parameter table is passed on by reference, and no new local copy has to be created. RFC does not support the u201Cby referenceu201D mechanism, so the whole table has to be exchanged between the RFC client and the RFC server. When the RFC server receives the table entries, it creates a local copy of the internal table. Then only delta information is returned to the RFC client. This information is not returned to the RFC client every time a table operation occurs, however; instead, all collected delta information is passed on at once when the function
returns to the client.
The first time a table is passed, it is given an object-ID and registered as a "virtual global table" in the calling system. This registration is kept alive as long as call-backs are possible between calling and called systems. Thus, if multiple call-backs occur, the change-log can be passed back and forth to update the local copy, but the table itself need only be copied once (the first time).

Similar Messages

  • Passing parameters to RFC iview

    Hi
    Can anyone let me know how to pass parameters to RFC iview ?
    i want to pass the parameter through URL to the RFC iview (funtion_params_name1)
    thanks

    Hi Thanks for your reply. I have a RFC function module that accepts two input parameters, queries R3 database and returns table output. Need to create a Portal page for the end users out of those returned data. Your help is much appreciated!.
    Hi
    Well it is possible
    try this....
    Create a abap webdynpro application, here you can call the RFC function module as a supply function
    get the data from the function module and display it on the webdynpro view
    convert this webdynpro to a iview and attach this iview to the portal page.( this is just a few steps process)
    thanks

  • Re: regarding import parameters in rfc

    Hi,
       I  have to pass some import  parameters to bapi
    BAPI_ACC_INVOICE_RECEIPT_POST. This is for tcode f-43.
    But it was giving error that there is a error in the header. Actually for the tcode f-43 sap is creating internal number automatically for document number. If iwant to pass a document number to the rfc, Can i pass the number by my own or is there any procedure.
    rgds
    p.kp

    Hi,
    Leave the Document Header Empty Since when we r supplying Document Type there is no need to supply documnet header (Since Document type will have Internal number assigned ,reference no can be passed instead of document header...)
    Regards,
    Sridhar Reddy

  • Unable to retrieve parameters from RFC Function Module

    Hi All,
    I have created a model for the RFC Enabled function module BAPI_BUPA_CENTRAL_GETDETAIL within my webdynpro program. I am passing parameters to the function module BAPI_BUPA_CENTRAL_GETDETAIL and I have validated that this is being passed correctly by displaying the passed value from the node of the input parameters.
    Code used to pass input parameters -
      IWDMessageManager manager = wdComponentAPI.getMessageManager();
       try
          wdContext.currentBapi_Bupa_Central_Getdetail_InputElement().modelObject().execute();
          size = wdContext.nodeCentraldataperson().size();     
          wdComponentAPI.getMessageManager().reportSuccess(Integer.toString(size));
          wdContext.nodeOutput().invalidate();
       catch(WDDynamicRFCExecuteException e)
          manager.reportException(e.getMessage(), false);
    I also see that it returns 1 record by using the code below:
    IWDMessageManager manager = wdComponentAPI.getMessageManager();
       try
          wdContext.currentBapi_Bupa_Central_Getdetail_InputElement().modelObject().execute();
          size = wdContext.nodeCentraldataperson().size();     
          wdComponentAPI.getMessageManager().reportSuccess(Integer.toString(size));
          wdContext.nodeOutput().invalidate();
       catch(WDDynamicRFCExecuteException e)
          manager.reportException(e.getMessage(), false);
    But, when I try to retrieve the value returned it does not fetch that value -
       Bapi_Bupa_Central_Getdetail_Output getdata = wdContext.nodeBapi_Bupa_Central_Getdetail_Input().nodeOutput().currentOutputElement().modelObject();
       Bapibus1006_Central_Person[] getres = new Bapibus1006_Central_Person[size];
       for(int i=0; i<size; i++){
            wdComponentAPI.getMessageManager().reportSuccess(Integer.toString(i));
            getres<i> = getdata.getCentraldataperson();
              //String fullname = wdContext.nodeBapi_Bupa_Central_Getdetail_Input().nodeOutput().nodeCentraldataperson().getElementAt(i).getAttributeValue("Fullname").toString();
            String fullname = getres<i>.getFullname();
           fullname += Integer.toString(i);
            wdContext.currentContextElement().setFullname(fullname);
            wdComponentAPI.getMessageManager().reportSuccess("fullname:" + fullname);
    It always returns 0 or null. Can someone please help me with this issue. The BAPI returns values in structure format and not internal table and hence I dont see the issue there as well.
    What can be the problem?
    Thanks for all your help in advance.
    Best regards,
    Divya

    Nikhil / Srihari,
    I changed my code and it now looks like -  I am trying get the return value into the context fullname but i still cant get the value although the size of nodeCentraldataperson() is thrown as 1 and the input is being passed correctly as i have validated this in this line of code [wdContext.nodeBapi_Bupa_Central_Getdetail_Input().currentBapi_Bupa_Central_Getdetail_InputElement().getBusinesspartner();]
    IWDMessageManager manager = wdComponentAPI.getMessageManager();
       try
          wdContext.currentBapi_Bupa_Central_Getdetail_InputElement().modelObject().execute();
          size = wdContext.nodeCentraldataperson().size();     
          wdComponentAPI.getMessageManager().reportSuccess(Integer.toString(size));
          wdContext.nodeCentraldataperson().invalidate();
       catch(WDDynamicRFCExecuteException e)
          manager.reportException(e.getMessage(), false);
         for(int i=0; i <size; i++){
              String name = "FullName: ";
              wdContext.nodeBapi_Bupa_Central_Getdetail_Input().nodeOutput().nodeCentraldataperson().setLeadSelection(i);
              name += wdContext.nodeBapi_Bupa_Central_Getdetail_Input().currentBapi_Bupa_Central_Getdetail_InputElement().getBusinesspartner();
              name += wdContext.nodeBapi_Bupa_Central_Getdetail_Input().nodeOutput().nodeCentraldataperson().currentCentraldatapersonElement().getFullname();
              wdContext.currentContextElement().setFullname(name);     
    Any idea what could be wrong?
    Thanks,
    Divya

  • Error while creating import parameters in RFC function module

    Hi,
    I am trying to create import parameter in RFC enabled function module and getting the following error "Reference parameters are not allowed with RFC". Am I doing something wrong.
    Your earlier response is much appreciated
    Regards
    Kasi

    There is a "Pass by Value" checkbox, just check that and you wont get the error.  The basic reason behind is since an RFC is called by a different system the parameters have to be sent as values than as references.
    hith
    Sunil Achyut

  • Get parameters for rfc sender communication channel

    Hello everybody,
    does anybody know how to establish the values for the cc-parameters?
    For example:
    Where do I receive information about:
    - the Application Server (Gateway) = Gateway host name of the sender system
    - the Application Server Service (Gateway)
    - the Program ID
    etc.
    Regards Mario

    hi,
    did you have a look at my weblog?
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    >>>- the Application Server (Gateway) = Gateway host name of the sender system
    fomr SAPlogon
    >>>>- the Application Server Service (Gateway)
    SAPGW + system number from SAPlogon
    >>>>- the Program ID
    any name
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Connection Parameters in RFC-Sender

    Hello experts,
    why is it necessary to enter an user-id and a password of the sending system in the configuration of sender RFC-Adapter? When I configure a direct connection between 2 systems only the receiver systems needs a technical user...
    Best regards
    David

    Hi,
    When you activate the commuication channel this one will find over the sap gateway and hostname the R/3 system.
    Over the Programm ID the communication channel will find the right sm59 destination and send the XI connection data.
    Now this rfc destination will route you to the XI System.
    On your log on pad , for the required system go to change mode and you will get the system number detail there.
    Take a look at this blog,
    Troubleshooting - RFC and SOAP scenarios *** Updated on 20/04/2009 ***
    In your r3, SMGW>GoTo>Parameters -->Display and you will find the values in the list displayed
    Think this blog will help you to configure Sender RFC adapter-
    The specified item was not found.
    Regards,
    Suryanarayana

  • View profile parameters through RFC

    Hi,
    Do you know any RFC FM that allows you to view profile (start, instance, default) profiles' content?
    I would like to receive a table, similar to the output of RSPARAM.
    cheers,
    Ivan.

    Hi,
    Sorry for intervention. I have just tried "test"-ing the FM PFL_MODIFY_PARAMETER. When you test(F8) it,  in the following screen you will have "import parameters" and "Tables" sections.
    In the tables section you have PAR_VALUE_TAB, PAR_COMMENT_TAB, PAR_TAB.You can double click on the PAR_VALUE_TAB and in the next screen it will ask  Profile name and the parameter you want to change.
    Hope this is what you're looking for.
    Regards,
    Srihari

  • How to clear JCA interface parameters in RFC call?

    hi all,
    this is my trouble:
    I have to call an RFC Function with JCA connector in an EP6 SP2. The connection it's ok and works well. But if i modify the interface parameters of the RFC function i must to reboot the portal for read the new interface.
    It's possible to read the new interface without restart the system.
    Thanks for all your helps!
    Gennaro

    hi all,
    this is my trouble:
    I have to call an RFC Function with JCA connector in an EP6 SP2. The connection it's ok and works well. But if i modify the interface parameters of the RFC function i must to reboot the portal for read the new interface.
    It's possible to read the new interface without restart the system.
    Thanks for all your helps!
    Gennaro

  • Help on Parameters in RFC Function Module

    Hi,
    I am creating a RFC function module. The requirement is:
    In a report program, the user enters ABC and XYZ values on the selection screen. These 2 fields are select options so will have From-Value and To-Value. This report program will pass these values to my RFC FM and depending upon these values I have to read a DB table and pass the data back to the program.
    My doubt is, how should I intake these select options value? i.e should I specify them in import tab or tables tab? What TYPE/LIKE should I use?
    Please help me in this...
    Rgds,
    Nimma.

    Hi Anji,
    What is 'WSELKUNNR'? Is it a user defined type?
    I am doing as below in the IMPORT tab.
    Parameter name/Type Spec/Associated Type
    ABC/LIKE/
    I am not sure what type I have to use here as the incoming values will be of type SELECT-OPTIONS. Is there any standard type to specify here? If not, what should I do?
    Best Regards,
    Nimma.

  • Passing parameters to RFC enabled FM

    Hi,
    I have following data defined..
    DATA: BEGIN OF *aaa OCCURS 0,
              END OF *aaa.
    I want to call an RFC enabled FM in another system and pass this data. Also I want to receive lots of such internal table data (*bbb, *ccc, *ddd )in return from there.
    How do I pass *aaa to the FM ?
    From the FM how do I return those many internal tables.
    can i have the statements please ?
    thks

    Hi,
    you define the function module and all the incoming and outgoing parameters you need in the target system. Then write a small ABAP program in the target system, using the function module pattern:
    in SE80 ABAP Workbench choose menu -> edit -> pattern -> function module and supply the name of your function module. This gives you the ABAP code for calling the function module locally. Copy the function call to the source system, and add the statement 'DESTINATION <rfc_dest_target_system>, where <rfc_dest_target_system> is an RFC connection to the target system. The function call in the source system should then look like this:
    CALL FUNCTION'<function_in_target_system> DESTINATION <rfc_dest_target_system>
      EXPORTING aaa = local_aaa
      IMPORTING bbb = local_bbb
    Hope this helps,
    Peter Glas

  • Regarding http to rfc scenario

    Hello guys,
    Can any one help as how to complete a http to rfc scenario

    hi satish,
    Check these links too.
    FAQ's on http to rfc
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/httpToRFCSynchronousScenario-FAQs&
    Unable to view payload in HTTP to RFC Scenario
    /message/266750#266750 [original link is broken]
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    regards
    Ramesh P

  • Regarding xi calls rfc

    i am gonna call rfc by using xi's rfc adapter.
    how to debug the function module.
    such as:
    i wanna check whether the value xi transfers by using rfc adapter to call rfc is correct or not.
    how to debug in the function module?

    Hi
    Keep an external break poitn to u r RFC and run the scenario
    u can debug by the values transfered form the XI
    regards
    srini

  • Regarding webservice to RFC approach

    Hi all,
    I am doing webservice to RFC (Synchronous) interface.
    1.coould you please let me khow how many times PI can try to send information to and external system via a web service.
    2.In case PI could not connect to the external system after N number of trials and PI sends alert or email informing  about the failure, what would happen to the data, would it still be in PI or we will lose the information.
    3.What should be done from external system perspective to retrieve the data into itself once it is up and ready to receive the data.
    Thanks and Regards
    Kishore

    1.in this case, how abt data reprocess from PI incase of failures when target webservice is not available.
    Only the request will be processed (in terms of mapping and sending to target)......then you will get an error which will indicate that something is wrong with target system and the call will close with a red mark in SXMB_MONI.
    You have to resend the message from the sender.
    2.please confirm, data wont be available in PI, to resend from PI to webservice, since this is sync communication.
    It does not happen as the way you have mentioned......PI wont store the data and make a call again in case of error.
    3.Also please confirm how abt in async communication ( say for ex: proxy to webservice ) to handle data reprocess from
    PI in case of failures due to target webservice is not available.
    One is increasing the number of retries of the target channel....this is documented in a blog (probably by Naveen)
    Regards,
    Abhishek.

  • Problem passing an export parameters in rfc call using the function control

    Hello,
    I use SAP Remoute Function Control (wdtfuncs.ocx) in my C++ application. I can execute remote functions, if they don´t need any export parameters:
    CSAPFunctions m_Functions;
    CFunction f;
    f.m_lpDispatch = m_Functions.Add("RFC_CREATE_DOCUMENT_MASTER");
    f.Call();
    How can I set the export parameters?
    Any help appreciated.
    regards,
    Vladimir

    check out this thread
    Re: Sample code in ASP to connect SAP?
    Regards
    Raja

Maybe you are looking for

  • How to include the page dynamically in JSF

    Hi all Below is static include <jsp:include page="../inc/sideMenu.inc"/> How to include the file dynamically Thanks

  • Payment process through  F110

    Hai, I am consuming lot of time while processing  payment through F-110. As and when advance is processed, i need to edit the payment proposal  as there would be huge bills payable other than advance, i need to edit each line item and then process. 

  • Issue Related to Cash Discount in Payment Advice.

    Hi All, In my Company, We are printing the payment Advice with tranasction FBZ5 by passing the payment document number, company code and fiscal year. Advice is having different line items for various bills which includes different heads for Gross Amo

  • SQL Injection Ver 2

    Hello I've just installed HTMLDB ver 2 into a new install of 10.2.0.1.0 (taken off OTN)and wanted to have a look at generating reports mentioned in the documentation using SQL Injection. When I click on SQL Injection I get the following message: "SQL

  • FCP motion tabs and things

    When I am im (for example) the motion tab in FCP, and i want to increase a slide (say the scale slider) how do i increase the scale by an increment of 1 at a time. The only wa i see of doing this is -typing in a new figue -moving the slider In horrid