HOW TO CALL  RFC....

hi...
    how to call a  function module using rfc from non sap program( java, vb.net)....

Passing a Structure from RFC to non SAP system
call a remote RFC from one sap system to to other sap system
Rewards point please..

Similar Messages

  • How to call RFC in Async Mode using TCP/IP RFC Destination ?

    Hi experts,
         Can anybody tell me how to call an Async RFC using TCP/IP RFC Destination ?
    Regards,
    Umesh

    Check the link
    http://help.sap.com/saphelp_nw04/helpdata/en/80/09680289c751429ab3b07ad2a61c10/content.htm
    It says
    <b> For asynchronous calls, no connection to external systems is possible (TCP/IP connections in transaction SM59).</b>
    Regards,
    Abhishek

  • How to call RFC from Power Builder

    Hi,
    I am using Power Builder Tools and I want to know how can i call RFC from Power Builder
    Thanks for ur reply

    Hi,
    Although I have not worked with Powerbuilder, I am sure if you have a certain level of proficiency with it, you will be able to code your logic that will call your wrappers written in VB/C/.NET etc. Check out the wonderful weblog by Thomas Jung on integrating ActiveX controls with ABAP Control Framework at https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/995. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Do get back if you have further queries.
    Regards
    Message was edited by: Shehryar Khan

  • How to call rfc fuction module designed in sap from netweaver

    Hi all.
          Can any one pls let me know how to call the trfc,arfc function modules designed in sap from netweaver system.
    Is the method of calling trfc , arfc fuction modules from non sap system same?
    If not let me know how to call trffc & arfc function modules from non  sap systems.Thanks in advance.
    Kind Regards,
    sami.

    Hi
    Use
    in background task
    and
    destination
    additions when you call tRFC function modules from
    SAP system to SAP system.

  • How to Call RFC from PortalService using a ServiceUser

    Hi,
    I have some code that calls an RFC using JCO.
    (I have other code I wrote using JCA to connect from a portlet, but that requires a Session and uses an IProfile)
    Our security team wants me to use a Serviceuser instead. But I can't seem to figure out how to use a ServiceUser to call an RFC.
    If I can just get an IConnection, i can use the rest of my JCA code to call the RFC. But I'm stuck getting the connection
    The closes I've gotten is this:
    com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getServiceUserFactory().getServiceUser("myserviceuser");
    IConnectorGatewayService cgs=PortalRuntime.getRuntimeResources().getService (IConnectorGatewayService.KEY);
    ConnectionProperties cp=new ConnectionProperties(new Locale(),user);
    IConnection conn=cgs.getConnection("mySAPsystemalias",cp);
    There are two problems with this (or maybe more)
    The connectionproperties takes an IProfile not an IUser
    I also thought I needed a com.sap.security.api.IUser, not the one above.
    Can someone point out what is wrong or a different way?
    thanks
    Chris Buchholz

    Chris,
    You could always use a JCO JNDI connection, in which case you dont need anything other than a HashMap of the the following properties
    client
    messageserverHost
    systemLangauge
    group
    type
    systemType
    systemId
    serverPort
    username
    password
    The username and password you supply can be a service user or a normal logon user as far as I know.
    Cheers,
    Steve

  • How to call RFC using EJB module.

    hi,
        I want to call the RFC using EJB module in java. how to do it.
        if someone having the code plz post it.
    regards,
    Shanthakumar.

    /***Start of JRA specific code***//
    // Retrive connection factory                
    InitialContext initialcontext = new InitialContext();
    connectionfactory = (ConnectionFactory) initialcontext.lookup("java:comp/env/ConnFactory");
    //Request a connection handle:
    connection = connectionfactory.getConnection();
    //Create a RecordFactory object to get a metadata description
    // of the RFC SALERT_CREATE
    RecordFactory recordFactory = connectionfactory.getRecordFactory();
    // Create Record objects containing all
    // necessary information about the RFM.
    MappedRecord input = recordFactory.createMappedRecord("SALERT_CREATE");
    //Fill in the import parameters and the import table structure data here
    input.put("IP_CAT", "ALRT_CAT"); // alert category
    // Refer to the SW_CONT structure of the table of RFC SALERT_CREATE
    ResultSet inputITContainer = (ResultSet) input.get("IT_CONTAINER");
    int tabIndex = 0;
    inputITContainer.moveToInsertRow();
    inputITContainer.updateString("ELEMENT", "CONT_1");
    inputITContainer.updateString("TAB_INDEX", "" + tabIndex++);
    inputITContainer.updateString("ELEMLENGTH", "250");
    inputITContainer.updateString("TYPE", "C");
    inputITContainer.updateString("VALUE","Container_1 value");
    inputITContainer.insertRow();
    inputITContainer.moveToInsertRow();
    inputITContainer.updateString("ELEMENT", "CONT_N");
    inputITContainer.updateString("TAB_INDEX", "" + tabIndex++);
    inputITContainer.updateString("ELEMLENGTH", "250");
    inputITContainer.updateString("TYPE", "C");
    inputITContainer.updateString("VALUE","Container_N value");
    inputITContainer.insertRow();
    interaction = connection.createInteraction();
    // execute the call with the input parameters.
    interaction.execute(null, input);
    }catch(Exception e){
         // Error handling code goes here
    }finally{
         try {
                    if (interaction != null)
                   interaction.close();
              if (connection != null)
                   connection.close();
         } catch (Exception ignored) {
              // Do nothing
    // Pass on module data to the next module in chain, unaltered
    return moduleData;

  • How to call RFC from external System to get HR Data

    According to the requirement the "HR" Workflow has to be able to view the employee details from external system Using the standard Microsoft connectors.
    So, my job is to create an RFC where i need to fetch the HR data from the infotypes P0001 and P0002. And they will call this RFC by requesting employees surname, ID number and/or Employee number.
    Do i need to simply write OPEN SQL statements in RFC or
    do i need to call any BAPI's?
    Setting up RFC's(Creation of Destinations) is not our job.
    Someone Please help me in this regard with some valuable input. Thanks in Advance.
    Ram.

    Hi Ram,
    to get the information from HR sytem you could call the BAPI
    BAPI_EMPLOYEE_GETDATA
    Regards
    Bernd

  • How to call RFC from Excel

    Hi all,
    Can any one give me sample VBA code to connect to SAP and call an RFC.
    I have found some code fragments in this forum, I would be grateful if someone can send me code for end-to-end processing.
    Regards,
    Hanif
    Message was edited by: Muhammad Hanif

    check out this,
    http://www.vbforums.com/showthread.php?t=337408
    Regards
    Raja

  • How to call rfc with byte[] parameter?

    I am building a middleware using SAP.NET connector but Im having a problem with a particular rfc. I am using C# and my problem basically is abut PIDs( persistent instance id, call list id). PIDs are composed of 32 characters(hexstring), 16 bytes in hexadecimal format. (e.g. A42103E78DCAD54A9EB09D5921C76F06). The rfc crm_call_list_get_calls requires  a PID input of byte[] datatype (byte[] Iv_Call_List_ID). I've tried converting the hexstring into an array of bytes (C# format) for the said rfc (A42103E78DCAD54A9EB09D5921C76F06----> byte[] PID={0xA4, 0x21, 0x03, 0xE7, 0x8D, 0xCA, 0xD5, 0x4A, 0x9E, 0xB0, 0x9D, 0x59, 0x21, 0xC7, 0x6F, 0x06} but ive been getting the following error:
    System exception thrown while marshaling RFCTYPE_XMLDATAto .NET type.
    Unhandled Exception: SAP.Connector.RfcMarshalException: System exception thrown while marshaling RFCTYPE_XMLDATAto .NET type. ---> System.Xml.Xsl.XsltException: 'Byte[]' is an invalid QName.
    Also a part of the generated code for the same rfc returns an error for missing array initialization.
    (public override object CreateNewRow()
      return new byte[]();
    Ive modified the code to: return new byte[]{}
    and I dont know if it will work for all situations. Please advise.
    Thanks in advance.
    Message was edited by: Kenny  Martinez

    Some Years later I have the same Problem.
    As discripet in the post before - first I've got an error in the Method "CreateNewRow()" where the Method wants to return "return new byte[]()". Well I don't know why the .Net-Connector creates that code - but it looks strange to me.
    The origin Code is:
        /// <summary>
        /// Creates an empty new row of type byte[].
        /// </summary>
        /// <returns>The newbyte[].</returns>
           public override object CreateNewRow()
                return new byte[]();;
    With Changing that method I've got the same Error as in the post before:
    System exception thrown while marshaling RFCTYPE_XMLDATAto .NET type.
    Does someone has found a solution for that kind of Problem?

  • How to call RFC in asynchronous mode using JCo.

    I have java class and want to call R/3 through JCo in asynchronous mode. Is there any solution for this?

    Hi,
    Go through these links
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/09/a4a9e1d51d11d6b2c200508b5d5c51/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/18/6052429f2dbd30e10000000a155106/frameset.htm
    Re: Connecting to R/3 database using JDBC or JCO
    Thanks
    Lohi.

  • How to call RFC with  STARTING NEW TASK...performing my_form... in a class?

    Hello,
    I created a test report for parallel processing and this works perfectly fine but when I try to build this into a class I somehow cannot create the receiving form inside the method of the class...
    method test.
            CALL FUNCTION 'ZZCR_PARALLEL' STARTING NEW TASK lv_index DESTINATION IN GROUP DEFAULT
              PERFORMING transfo_result ON END OF TASK
              EXPORTING
                input_xstring = lx_clause_text.
    endmethod.
    I tried to place the form before the endmethod but this doesn't work and afterwards is also not an option.
    Is ABP OO not supporting parallel processing?
    Thanks and regards,
    Christoph

    Hello Christo ,
                         I am also trying to use the same in OO context . Just in he early stages of collecting information.If you could just tell what you found out in the document it could be opf immense help.
    Comradely,
    K.Sibi

  • Call RFC

    hai
         how to call RFC prog.

    Technical Overview
    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 also 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 the same system.
    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 an SAP system and an external system.
    [edit]
    The RFC Interfaces
    The RFC- interface system is made up of the following interfaces:
    Calling interface for ABAP programs
    Each ABAP program can call a remote function module using the command CALL FUNCTION...DESTINATION. The parameter DESTINATION informs the SAP system that the called function module runs in a different system to the calling system. RFC communication with the remote system takes place as a part of the CALL FUNCTION command.
    RFC function modules in an SAP system must be proper function modules and must be registered in the SAP system as remote.
    If the calling program and the called program are both ABAP programs, the RFC interface provides both communication partners. The calling program can be any ABAP program, and the called program must be a function module that is registered as remote.
    For more detailed information on calling function modules that are registered as remote, see Calling RFC Function Modules in ABAP.
    For more information on writing function modules that you want to call remotely, see Writing RFC Function Modules in ABAP.
    Interfaces for calling non-ABAP programs
    If either the calling program or the called partner is not an SAP program, this program must be programmed in such a way that it can play the role of the other partner in RFC communication.
    To support you when implementing RFC partner programs in non-SAP systems, read: Components of the SAP Communication Technology
    RFC-supported and GUI-supported interfaces can be used by external programs to call function modules in SAP systems, and execute them in these systems. Likewise, ABAP programs can also use these interfaces to use functions supplied by external programs.

  • Calling RFC in Flex

    Hi All ,
    I need to call the Remote Function module Directly in Flex without using the Web service .
    Is t possible ? If Yes then how can we call the RFC's in Flex Coding .

    Hi Everybody,
      Could somebody reply to this thread. We also have the same kind of requirment.
      Does anybody have idea on how to call RFC'S in flex builder witout using webservices?
      Please guide us.
    Regards
    Sireesha.

  • Reg :  In GP interface call RFC for output structure

    Hi ,
    I am developing Webdynpro callable object through GP interface. In this task I have only output don't have input parameters. If i will click Test directly it will come output like this :
       for ex:  Name  :   Risha
                  EmpID  :  1234
    In getDescription() i created output structure and getting the structure.
    For data i have to call RFC  , RFC will fetch data for Loggedin user.
    In GP interface how to call RFC and how to fetch the data for corresponding O/p structure.
    I have to submit this data to Approvar.  Please help me out.
    Thanks in Advance,
      Risha

    Hi Risha,
    1. Please check whether the RFC is executing properly and giving the correct result.
    2. declare a output strcuture say "output" with attributes which u need in the getDescription method.
    3.in the execute method, execute the RFC and get the data from the model node and set it to the value node of component controller.
    4. create the same context node and do the mapping between component controller and view controller.
    5 . create the UI elements and bind the ui elements with the value node.
    6. so when u click execute button, the model is executed and model data is transferred to value node.
    7. these datas will be displayed in the view .
    8. declare a variable in begin others of component controller as shown below.
    IGPExecutionContext mContext;
    9. in the view , u should have created a button say "complete" and on clicking this button call a method in component controller to end the execution of callable object.
    10. in the method say "complete" which u have created in component controller, get the execution context
    11. using the execution context , get the output structure as showwn below:
    IGPStructure outputStructure = mContext.getOutputStructure();
    12 . get the output structure which u have declared in getDescription method and set the strcuture attributes from the value node which has the RFC model data.
    13. so when the user clicks complete the Co execution is completed and u will get the output structure which has the model data .
    hope this helps.
    Thanks and Regards

  • How to call two RFC in a single JAVA method.

    Dear all,
    I just want to know that how to call two RFC in a single java method which is defined in CRM implementation file. I'm using NWDS as the customization IDE & working on ISA 7.0.

    Hi Sunil,
    In the Backend Implementation class, in any method you can call multiple RFCs.
    It will be the same way as you do for the single RFC call.
    Following syntax is for your reference.
    Get the JCO connection
    JCoConnection  connection = getDefaultJCoConnection();
    JCO.Function func = connection.getJCoFunction("ZXXXXXXX");
    set the import parameters
    Execute it.
    connection.execute(func);
    get the data from export / table parameters
    Now call the second RFC
    func = connection.getJCoFunction("ZYYYYYYYYYY");
    set the import parameters
    Execute it.
    get the data from export / table parameters
    close the connection
    Hope this will help you.
    -Chandra.
    Edited by: Chandra Sekhar Seeli on Jan 13, 2011 2:04 PM

Maybe you are looking for

  • How to get the size of a string in bytes

    Morning, I'm trying to get the length in bytes of a string, the characters below are 3 byte UTF-8, but when I display The length of either int, looks like is double I got 120 and I think it should be 60. Any idea String requiredMsg = "όόόόόόόόόόόόόόό

  • How to view XML file generated by Reports 6i in browser ?

    Hi, I have generated a report in XML file format. However, when I open this file in a browser, it displays the contents in the browser in the following fashion : <?xml version="1.0" ?> - <!-- Generated by Oracle Reports version 6.0.8.8.3 --> - <MSIO1

  • Can't open numbers files in latest version

    I'm running the latest version of numbers in Mavericks and iOs7. I was able to open a file yesterday, but now get this message "You need a newer version of Numbers to open this spreadsheet." I've double checked and all the versions are the latest. -

  • Looking for a good configuration for SoundBlaster X-Fi

    This really is painful to find a good setting to enjoy gaming.Anyone that can link a good configuration to start me off that they personally feel takes full advantage in deli'vering a great experience for gaming. I really appreciate any help.

  • Tables of credit Management

    HI!!, Please let me know list of tables in Credit management. -AKASH