Connect to sap by RFC based on mircosoft windows mobile 5.0

Dear experts,
I have one project about PDA and the develop tool is visual studion 2005. Customer hopes that the PDA device may access SAP R/3(470) system.I can not find SAP BAPI reference in visual studio 2005.
Could you help me?
Thanks and regards,
collysun.

You can access all BAPIs of R/3 4.7 via the builtin Soap-Processor from any Web Service client - including .NET Compact Framework. The Bapis can be found in SAPGUI, transactions BAPI, SE37 and SE80.
For the Soap Processor, see http://service.sap.com/Connectors .

Similar Messages

  • What is the best solution for SAP R/3 4.7 and Windows mobile 5.0 Pocket PC?

    Hi All,
        I'm trying to connect SAP R/3 4.7 with RFC from Mobile application , now i'm using .net 2005 Windows mobile 5.0 pocket pc. Does Sap.net connector work for this project?
    BR,
    Prachya.

    Hi Prachya,
    it will not work on a PDA, because the .Net Compact Framework has only a limited instructionset of the .NET Framework and so you run into compile errors. You have to create the Proxies in Visual Studio 2003 anyway, because the .NEt connector requests Visual Studio 2003 for installation - at least this was the case 3 months ago still. once it is created you can import it to Visual Studio 2005 and use it there. But if you try to do that in a PDA App, you run into compile errors - as I said above.
    I guess in your case another approach would make more sence - as you are not willing to use MI for your app.
    Either you use MS SQL Server in between. On the PDA you can use SQL Everywhere/Mobile/CE (they change the name constantly, but it is the SQL Server for the PDA from MS) and connect it to an SQL server. there is a build in Sync functionality with the SQL server. You will find helpfull introductions on MSDN. And from the SQL Server you can connect to the Backend with your .Net connector. But this solution has its problems, because the build in sync with SQL server is a little tricky - and you need to license SQL server.
    On the other hand: you can implement a Webservice, that connects with the PDA. This is possible with the .NEt Compact framework. And from the WebService you connect with your .NEt connector to the R/3 system. This will work fine - but you have to take care of the delta handling.
    Hope this helps a little to answer your question - and why not use MI for that?
    Regards,
    Oliver

  • Consume SAP Netweaver Gateway Web service in Windows Mobile 6.5

    Hi All,
    I am using Netweaver Gateway Webservice in Windows Mobile 6.5 platform. I know if need to make POST request, first i need to make GET for fetching CSRF token and then passing the CSRF token again with POST request to do the create operation. So i have used the below syntax. But it is always saying as 403 forbidden status while making POST request. I had successfully fetched CSRF token in my get request. Is there any help available for the below syntax?
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(new Uri("http://hostname:8040/sap/opu/odata/APLX/ST_GRRF_TS_01/Headers"));
                request.Credentials = new NetworkCredential("ddsdsdsd", "sdsdsdsdsds");
                request.Method = "GET";
                request.ContentType = "application/atom+xml";
                request.Accept = "application/xml,application/atom+xml";
                request.AllowWriteStreamBuffering = true;
                request.Headers.Add("X-CSRF-Token", "Fetch");
                request.KeepAlive = true;
                WebResponse response = request.GetResponse();
                string strcsrf = response.Headers["X-CSRF-Token"];
                string strcookie = response.Headers["Set-Cookie"];
                string pXml = @"<?xml version=""1.0"" encoding=""UTF-8"" ?> <atom:entry xmlns:atom=""http://www.w3.org/2005/Atom"" xmlns:d=""http://schemas.microsoft.com/ado/2007/08/dataservices"" xmlns:m=""http://schemas.microsoft.com/ado/2007/08/dataservices/metadata""> <atom:content type=""application/xml"">" +
                     "<m:properties>" +
                       "<d:I_MBLNR>004</d:I_MBLNR>" +
                       "<d:I_MJAHR>2011</d:I_MJAHR>" +
                       "<d:I_SELECT>1</d:I_SELECT>" +
                       "<d:I_REFDOC>4500000001</d:I_REFDOC>" +
                       "<d:I_MATNR />" +
                       "<d:I_SLOC>0001</d:I_SLOC>" +
                       "<d:I_DELNOTE />" +
                       "<d:I_GR_GI />" +
                       "<d:I_PLANT>R303</d:I_PLANT>" +
                       "<d:I_VENDOR>R3000</d:I_VENDOR>" +
                       "<d:I_DATE>2013-09-08T00:00:00</d:I_DATE>" +
                       "</m:properties>" +
                       "</atom:content>" +
                     @"<atom:link rel=""http://schemas.microsoft.com/ado/2007/08/dataservices/related/Items"" type=""application/atom+xml;type=feed"" title=""APLX/ST_GRRF_TS_01.Header_Items"">" +
                     "<m:inline>" +
                     "<atom:feed>" +
                     "<atom:entry>" +
                     @"<atom:content type=""application/xml"">" +
                     "<m:properties>" +
                       "<d:I_MBLNR>003</d:I_MBLNR>" +
                       "<d:I_MJAHR>0000</d:I_MJAHR>" +
                       "<d:ITEMNO>000001</d:ITEMNO>" +
                       "<d:MATNR>R100000</d:MATNR>" +
                       "<d:QUANTITY>1</d:QUANTITY>" +
                       "</m:properties>" +
                       "</atom:content>" +
                       "</atom:entry>" +
                       "</atom:feed>" +
                       "</m:inline>" +
                       "</atom:link>" +
                       "</atom:entry>";
                request =(HttpWebRequest)HttpWebRequest.Create(new Uri("http://hostname:8040/sap/opu/odata/APLX/ST_GRRF_TS_01/Headers"));
                request.Credentials = new NetworkCredential("ddsdsdsd", "sdsdsdsdsds");
                request.Method = "POST";
                request.ContentType = "application/atom+xml";
                request.Accept = "application/xml,application/atom+xml";
                request.AllowWriteStreamBuffering = true;
                request.Headers.Add("x-csrf-token", strcsrf);
                request.Headers.Add("set-cookie", strcookie);
                request.KeepAlive = true;
                request.AllowAutoRedirect = false;
                request.ClientCertificates = cn;
                //request.Headers.Add("content-type", @"application/atom+xml");
                //request.Headers.Add("content-length", pXml.Length+"");
                byte[] bytes = Encoding.UTF8.GetBytes(pXml);
                request.ContentLength = bytes.Length;
                using (Stream putStream = request.GetRequestStream())            {
                    putStream.Write(bytes, 0, bytes.Length);
                    putStream.Close();
                response = request.GetResponse();
    Here the response in the last line always shows 403 forbidden status.

    Hi Mohanasundaram,
    This is the wrong forum for Gateway questions - sorry. Please try the following forum:
    http://scn.sap.com/community/netweaver-gateway
    Best regards,
    Jon

  • RFC Connect to SAP with JavaScript

    Dear all,
    is there a way to directly connect to SAP via RFC using JavaScript. Are there any tutorials or code snipplets?
    Kind regards
    Roman

    Hi,
    If you are running in a windows environment you can use COM functionality to connect to SAP. Here is some example code for you.
    [code]
    main()
    function main()
         var txt;
         var Row;
         var Row2;
         var BAPI = new ActiveXObject( "SAP.Functions" );
         var Connection = BAPI.Connection;
         Connection.ApplicationServer = "xxx";
         Connection.Client = "xxx";
         Connection.SystemNumber = xxx;
         Connection.User = "xxx";
         Connection.Password = "xxx";
         Connection.logon(0,true);
         var Running = BAPI.Add("EW_TH_WPINFO");
         var Servers = BAPI.Add("TH_SERVER_LIST");
         var Tables = Servers.tables("LIST");
         var Dest = Running.exports("DESTINATION");
         Dest.value = "NONE";
         var CPU = Running.exports("WITH_CPU");
         CPU.value = "00";
         var List = Running.tables("WPLIST");
         Running.Call;
         Servers.Call;
         for (var enumerator = new Enumerator(Tables.Rows) ;
         !enumerator.atEnd(); enumerator.moveNext())
              Row = enumerator.item();
              Dest.value = Row("NAME");
              Running.Call;
              for (var enumerator2 = new Enumerator(List.Rows);
              !enumerator2.atEnd(); enumerator2.moveNext())
                   Row2 = enumerator2.item();
                   if (Row2("WP_REPORT").length > 0){
                        txt = txt + "\n" + Row2("WP_PID") + "\t" + Row2("WP_REPORT") + "\t" + Row2("WP_BNAME");
         WScript.echo(txt);
    function jsTrim(strInput)
         var strResult;
         var objRegex = new RegExp("(^
    s)|(
    s$)");
         strResult = strInput.replace(objRegex, "");
         return(strResult);
    [/code]
    This code just gets a list of current users. Save the file  as running.js and fill in the xxx parameters with what is relevent for your system.
    You will need wdtfuncs.ocx and librfc32.dll registered on your machine.
    Hope this helps.
    PS in the widgets forum I have given you an example of how to connect to SAP via RFC within widgets.
    Nathan
    Message was edited by: Nathan Jones

  • Unable to open RFC connection to SAP System NSP

    Hi all,
    During installation i am getting an error which is as follows,
    "Unable to open RFC connection to SAP System NSP.
    Solution: Start the system."
    And the second problem is that there are no connections shown in SAPGUI.
    Please help me out.
    Thanking you,
    Kranthi

    HI Kranthi,
    Have you checked this thread NW Preview Installation error?
    Regards

  • Connection between SAP R/3 and SAP XI with RFC

    Hi Experts,
    I am beginner in SAP XI.
    We are using SAP XI 3.0 SP 9 and SAP R/3 4.6 C
    I am trying to validate a connection between SAP R/3 and SAP XI with RFC.
    I followed all the weblogs ,and i did exactly the same way, but I am unsucessful...
    Schema not available Exception
    com.sap.aii.af.service.cpa.CPAException: Schema not available for RFC|3b787a8035c111d6bbe0efe50a1145a5|http://sap.com/xi/XI/System.
    at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryDataSAXHandler.endElement(DirectoryDataSAXHandler.java:262)
    at com.sap.engine.lib.xml.parser.handlers.SAXDocHandler.endElement(SAXDocHandler.java:154)
    at com.sap.engine.lib.xml.parser.XMLParser.scanEndTag(XMLParser.java:1826)
    at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1722)
    at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2298)
    at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1719)
    at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2701)
    at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:162)
    at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:126)
    at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:136)
    at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:209)
    at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:270)
    at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:331)
    at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
    at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryDataParser.updateCentralCache(DirectoryDataParser.java:54)
    at com.sap.aii.af.service.cpa.impl.cache.CacheManager.updateCacheWithDirectoryData(CacheManager.java:713)
    at com.sap.aii.af.service.cpa.impl.cache.CacheManager.performCacheUpdate(CacheManager.java:595)
    at com.sap.aii.af.service.cpa.impl.cache.CacheManager$CacheUpdateRunnable.run(CacheManager.java:440)
    at com.sap.engine.frame.core.thread.Task.run(Task.java:60)
    at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:73)
    at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:145)
    Please help me out on this
    Thanks in advance
    Raju

    hi,
    try refreshing you CAP cache:
    741214 (check this note)
    and check if the refresh was successful
    (CPA history)
    Regards,
    michal

  • RFC logon failed with message: Failed: Connect to SAP  gateway failed

    I installed CI instance fine and i am stopped here with this error at the end of DB instance install. Could someone let me know what could  be the reason for this. Is there any fix or workaround to continue the install.
    INFO       2006-09-16 01:13:02 [iaxxrfcimp.cpp:398]
              CAbRfcImpl::setRfcConnectParam
    RFC parameter ASHOST set to value hostSAP.
    INFO       2006-09-16 01:13:02 [iaxxrfcimp.cpp:398]
              CAbRfcImpl::setRfcConnectParam
    RFC parameter SYSNR set to value 09.
    INFO       2006-09-16 01:13:02 [iaxxrfcimp.cpp:543]
              CAbRfcImpl::checkConnectInfo
    RFC connection information checked successfully.
    ERROR      2006-09-16 01:13:02 [iaxxrfcimp.cpp:450]
              CAbRfcImpl::openRfcConn
    FRF-00007  Unable to open RFC connection.
    ERROR      2006-09-16 01:13:02
              CJSlibModule::writeError_impl()
    FRF-00063  RFC logon failed with message: Failed: Connect to SAP  gateway failed
    Connect_PM  GWHOST=hostSAP, GWSERV=sapgw09, ASHOST=hostSAP, SYSNR=09
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       partner not reached (host hostSAP, service 3309)
    TIME        Sat Sep 16 01:13:02 2006
    RELEASE     640
    COMPONENT   NI (network interface)
    VERSION     37
    RC          -10
    MODULE      nixxi_r_mt.cpp
    LINE        8528
    DETAIL      NiPConnect
    SYSTEM CALL connect
    ERRNO       146
    ERRNO TEXT  Connection refused
    COUNTER     4
    Thanks,
    Ram

    at the end of the database instance installation SAPInst is doing some RFCs to the CI.
    The logfile states that the gateway on host hostSAP with the systemnumber 09 is not reachable.
    Please check if you have started the central instance on this machine.
    peter

  • Rfc conn.: Connect to SAP gateway failed , edit: Group PUBLIC not found

    Hello!
    I want to create a RFC connection.
    In the "Connection and Transport"-Tab I fill out the fields: Target Host, System Number and System ID.
    If I save the destination the fields Gateway-Host and Gateway-Service will be automatically filled out with the same input value of the Target Host field.
    But there is no gateway for this system and if I ping the destination the following error message is shown:
    Error during ping operation: Connect to SAP gateway
    failed Connect_PM  TYPE=A ASHOST=sma82 SYSNR=01
    WHOST=sma82 GWSERV=sma82 PCS=1 LOCATION    CPIC (TCP/IP)
    on local host with Unicode ERROR       service sma82
    unknown TIME        Thu Sep 27 11:27:37 2007 RELEASE   
    710 COMPONENT   NI (network interface) VERSION     39 RC
             -3 MODULE      nixxhsl.cpp LINE        643 DETAIL
          NiHsLGetServNo: service name cached as unknown
    COUNTER     6
    How can I handle this?

    Hi,
    I have attempted to configure the Destination with a co-worker who successfully configured a Destination to the same R/3-System but with SAP NetWeaver 2004s and not with SAP Netweaver CE 7.1 SR1.
    He said that in his case he connects to the Message-Server so we activated “Load Balancing”.
    The Message-Server will be found now but the Logon Group can’t be found:
    Error during ping operation: Connect to message server host failed Connect_PM  TYPE=B MSHOST=xxx.xxx.xxx GROUP=PUBLIC R3NAME=TDE MSSERV=sapmsTDE PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       <b>Group PUBLIC not found</b> TIME        Tue Oct 02 12:28:09 2007 RELEASE     710 COMPONENT   LG VERSION     5 RC          -6 MODULE      lgxx.c LINE        4392 DETAIL      LgIGroupX COUNTER     15
    But the Logon Group is PUBLIC! I checked it with SMLG.
    Any ideas?
    Regards,
    Armin

  • RFC JCo 3 unable to connect to SAP AS with sapgw01 service

    Greetings - help is greatly appreciated.
    I have an RFC server that uses JCo 3.0.5 to connect to the SAP Application server.  When the RFC server is run from a Unix system the gateway service and port needs to be added to the unix systems /etc/services file.  We have two (actually 21) sap systems, one has a gateway service id of sapgw00, the other sapgw01.  We added both gateway services with port 3300 to the Unix /etc/systems file and are able to connect to the sapgw00 system but not the sapgw01 system.  The sapgw01 system is returning the following error.  Without sapgw01 in the /etc/services file we get a different error - so it's doing something.
    Thanks in advance
    Status: Server FLRFCSRV state changed from [STOPPED] to [STARTED]
    >>> Exception error occurred on FLRFCSRV connection null
    com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu Apr 29 09:16:10 CDT 2010.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems.
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:10 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     1
            at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1168)
            at com.sap.conn.jco.rt.DefaultServer.openConnections(DefaultServer.java:1057)
            at com.sap.conn.jco.rt.DefaultServer.adjustConnectionCount(DefaultServer.java:1004)
            at com.sap.conn.jco.rt.DefaultServerManager$DispatcherWorker.run(DefaultServerManager.java:299)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:10 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     1
            at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2135)
            at com.sap.conn.jco.rt.ServerConnection.accept(ServerConnection.java:380)
            at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1149)
            ... 4 more
    Caused by: RfcException: [null]
        message: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:10 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     1
        Return code: RFC_FAILURE(1)
        error group: 102
        key: RFC_ERROR_COMMUNICATION
            at com.sap.conn.rfc.engine.RfcIoControl.error_end(RfcIoControl.java:255)
            at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcaccept(RfcIoControl.java:43)
            at com.sap.conn.rfc.api.RfcApi.RfcAccept(RfcApi.java:41)
            at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2121)
            ... 6 more
    Status: Server FLRFCSRV state changed from [STARTED] to [DEAD]
    >>> Exception error occurred on FLRFCSRV connection null
    com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu Apr 29 09:16:12 CDT 2010.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next .
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:12 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     2
            at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1168)
            at com.sap.conn.jco.rt.DefaultServer.openConnections(DefaultServer.java:1057)
            at com.sap.conn.jco.rt.DefaultServer.adjustConnectionCount(DefaultServer.java:1004)
            at com.sap.conn.jco.rt.DefaultServerManager$DispatcherWorker.run(DefaultServerManager.java:299)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:12 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     2
            at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2135)
            at com.sap.conn.jco.rt.ServerConnection.accept(ServerConnection.java:380)
            at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1149)
            ... 4 more
    Caused by: RfcException: [null]
        message: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:12 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     2
        Return code: RFC_FAILURE(1)
        error group: 102
        key: RFC_ERROR_COMMUNICATION
            at com.sap.conn.rfc.engine.RfcIoControl.error_end(RfcIoControl.java:255)
            at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcaccept(RfcIoControl.java:43)
            at com.sap.conn.rfc.api.RfcApi.RfcAccept(RfcApi.java:41)
            at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2121)
            ... 6 more
    A startup error occurred - please view the log file for additional information
    >>> Exception error occurred on FLRFCSRV connection null
    com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu Apr 29 09:16:18 CDT 2010.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next .
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:18 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     3
            at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1168)
            at com.sap.conn.jco.rt.DefaultServer.openConnections(DefaultServer.java:1057)
            at com.sap.conn.jco.rt.DefaultServer.adjustConnectionCount(DefaultServer.java:1004)
            at com.sap.conn.jco.rt.DefaultServerManager$DispatcherWorker.run(DefaultServerManager.java:299)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:18 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     3
            at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2135)
            at com.sap.conn.jco.rt.ServerConnection.accept(ServerConnection.java:380)
            at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1149)
            ... 4 more
    Caused by: RfcException: [null]
        message: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:18 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     3
        Return code: RFC_FAILURE(1)
        error group: 102
        key: RFC_ERROR_COMMUNICATION
            at com.sap.conn.rfc.engine.RfcIoControl.error_end(RfcIoControl.java:255)
            at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcaccept(RfcIoControl.java:43)
            at com.sap.conn.rfc.api.RfcApi.RfcAccept(RfcApi.java:41)
            at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2121)
            ... 6 more

    Hello Sir,
    I am a student who is pursuing a project that deals with JCo 3.
    I read your question on the forum and think that you have done the JCo stuff and can answer my questions.
    Kindly, try to shed some light on following question:
    Q1: I simply want to start with connecting my SAP system. I have a user ID and password for the same.
    I saw some examples where they use "JCo.createClient(....)" and "JCo.client.connect()" to simply connect the client but
    when I type in the code it shows me an error, because they are using package "com.sap.mw.jco" but since I am using JCo3,
    I don't have that package instead I have "com.sap.conn.jco" which do not have createClient function.
    Q2: By setting the classpath for "sapjco.jar" I was able to compile one of the sample programs but could not run it. Do you
    know how to run the SAP JCo program.
    Your guidance will be highly appreciated
    -Thanks
    -Dmukhi

  • Number of remote RFC connections to SAP from third party application

    Hi All,
    We are using an external application which is using the JCO API to make a connection to the SAP server to pass invoices. But the connections are note properly closed after invoking the RFCs and SAP seems to be not able to handle further requests once the numer  of connections reach the maximum limit.
    Could you tell whether there is a max limit on the number of connections opened to SAP from remote function calls from a third party product?
    Is there anyway by which we can make sure that connections are properly closed in SAP after the each remote call?
    Thanks in advance for your pointers.
    Regards
    Arun

    Dear Arun,
    Here are the parameter settings which you can do to set up RFC connections to SAP servers.
    http://help.sap.com/saphelp_nw70/helpdata/en/c3/ce70a5cf0ab1499bfbf464e6e92de0/frameset.htm
    This will resolve all your problems.
    Thanks & Regards
    Vivek

  • Connect from SAP gateway to RFC server failed - Java StandAlone app X SAP RAC System

    Dears,
    I'm developing a Java application (RFC SERVER) with JCo3 and I need to connect to SAP RAC system.
    I have configured the TCP/IP connection via transaction SM59, but when I try to start my server I face the error below (dev_jco_rfc.trc):
    ==========================================================================================
    **** Error file opened at 20140714 112024 Brasilia Time Rel 3.0.10 (2013-08-08) [720.440]
    Error:  >Mon Jul 14 11:20:24,636<    RfcException: [null]
        message: Connect from SAP gateway to RFC server failed
    Connection parameters: TYPE=A DEST=VSPAGUE ASHOST=cpe1601 SYSNR=01 SAPROUTER=/H/155.56.49.28 PCS=1
    LOCATION    SAP-Gateway on host ld7624.dmzwdf.sap.corp / sapgw01
    ERROR       hostname 'cpe1601' unknown
    TIME        Mon Jul 14 16:20:25 2014
    RELEASE     740
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -2
    MODULE      /bas/740_REL/src/base/ni/nixxhl.cpp
    LINE        193
    DETAIL      NiHLGetNodeAddr: hostname cached as unknown
    COUNTER     3
        Return code: RFC_FAILURE(1)
        error group: 102
        key: RFC_ERROR_COMMUNICATION
    ==========================================================================================
    This problem happens when my app executes the line:
    JCoServer myServer = JCoServerFactory.getServer(myServerName);
    My system properties:
    jco.client.lang=EN
    jco.destination.peak_limit=10
    jco.client.client=800
    jco.client.passwd=********
    jco.client.user=********
    jco.client.sysnr=01
    jco.destination.pool_capacity=3
    jco.client.ashost=/H/155.56.49.28/H/cpe1601
    jco.server.connection_count=3
    jco.server.gwhost=/H/155.56.49.28/H/cpe1601
    jco.server.progid=VSPAGUE
    jco.server.gwserv=sapgw01
    jco.server.repository_destination=VSPAGUE
    Using SAP Logon i can connect to server cpe1601 system E16 without problems.
    Please, I really need some help, because my knowledge on SAP platform is minimum.

    Hi Markus,
    Changing ASHOST=ld7624.dmzwdf.sap.corp as you have suggested, I got the error message: Connect to SAP gateway failed ...
    As you could see, the host I'm connecting is from SAP RAC Service.
    Here in our company we have only SAP Logon and my RFC Application, and I can connect to SAP remote system via SAP Logon with this settings:
    System Connection Parameters
    Description: SAP ECC 6.0
    Application Server: cpe1601
    Instance Number: 01
    System ID: E16
    SAProuter String: /H/155.56.49.28/H/
    Below the connection information I received from SAP RAC SUPPORT for testing purposes:
        E16 System:
        SID: E16
        Client: 800
        System Number: 01
        Server: cpe1601
        Component Version: SAP ERP Central Component 6.0 Enhancement Pack 6 Suite on HANA
        User: ********
       Password: ********
       SAProuter String:
       If you don't plan to use SAPRouter at your end,
       /H/155.56.49.28/H/    

  • Crystal report- Connect from SAP gateway to RFC server failed

    Hi All,
    I am trying to connect to a SAP R3 system from crystal reports but it gives me below error.
    Please note : Transports have been imported and also the roles CRYSTAL_ENTITLEMENT and CRYSTAL_DESIGNER. My user is a member of these roles which were release along with Best practice reports v1.31
    Error :
    Logon failed.
    Details: CMALLC : rc= 27 > Connect from SAP gateway to RFC server failed
    Connect_pm GWHOST=10.10.4.63, gwserv=SAPGW30, SYSNR= 30
    Location SAP-gateway on host ply.log.com/sapgw30
    Error timeout during allocate
    TIME ....
    Release 700
    Component SAP Gateway
    Version 2
    RC 242
    Module gwr3cpic.c
    LINE 1996
    Detail no connect of TP sapdb30 from host 10.10.4.63 after 20 sec
    Can you please help us solving this error.
    Thanks
    Chetan

    Hi Stratos,
    The SAP Version is ECC 6.0.
    The below transports have been imported.
    u2022 Open SQL Connectivity transport (K900574.r21 and R900574.r21)
    u2022 Info Set Connectivity transport (K900575.r21 and R900575.r21)
    u2022 Row-level Security Definition transport (K900576.r21 and R900576.r21)
    u2022 Cluster Definition transport (K900585.r21 and R900585.r21)
    u2022 Authentication Helpers transport (K900578.r21 and R900578.r21)
    Thanks & Regards,
    Chetan

  • Connect from SAP gateway to RFC server failed

    Good day and a happy new year to you all!
    I am failing to connect to my SAP BW system from BEx. The logon fails with this message:
    >>>>>Start<<<<<<<<<<
    Error Group
    RFC_ERROR_COMMUNICATION
    Message
    Connect from SAP gateway to RFC server failed
    Connect_PM  GWHOST=10.16.64.77, GWSERV=sapgw02, ASHOST=10.16.64.77, SYSNR=02
    LOCATION    SAP-Gateway on host bwsys / sapgw02
    ERROR       timeout during allocate
    TIME        Sat Dec 31 13:16:19 2005
    RELEASE     640
    COMPONENT   SAP-Gateway
    VERSION     2
    RC          242
    MODULE      gwr3cpic.c
    LINE        1785
    DETAIL      no connect of TP sapdp02 from host 10.16.64.77 after 22 sec
    COUNTER     2
    >>>>>>>>>END<<<<<<<<<<<<
    I only experience this problem when connecting using any BEx component, but, I can successfully connect to the SAP BW system from SAP gui.
    Additionally, I have the service 'sapdp02' defined in the services file, both on the workstation and the server.
    What could be wrong or missing in my configuration?
    Regards,
    Joao.

    hi Joao,
    check if oss note 447882 relevant
    you may ask basis for help
    Symptom
    You want to access the customer system using the BEx Analyzer.The connenction fails:The system displays the error RFC_ERROR_COMMUNICATION.In the detail screen, the system displays message "Partner not reached" (host 192.168.4.2, service sapgw 00).
    Other terms
    SAP Gateway, RFC_ERROR_COMMUNICATION, partner not reached
    Reason and Prerequisites
    The SAP gateway host is deactivated or the TCP/IP port 33xx (where xx corresponds to the system number) is not open.
    Solution
    Issue statement ping <IP address> (In this example:192.168.4.2) No reply: Boot SAP Gateway host required.
    An answer:Check whether the TCP/IP port 33xx is open (where xx corresponds to the system number) and start the SAP gateway.
    The TCP/IP port is also partially defined in the services file as an sapgw<SID> or sapgwxx entry (where xx corresponds to the system number). The services file is in the Windows directory or in WinNT/System32/drivers/etc.

  • Error: Connect from SAP gateway to RFC Server failed

    Hi
    I am trying to connect SAP server using the java (JCO connection), and getting following error. While I am able to connect to the same sever using SAP Logon pad with the same ipaddress (hostname) and logon credentials.
    Please kindly help.
    Erro: Connect from SAP gateway to RFC server failed.
    Connect_PM GWHOST = hostname, GWSER = sapgw03, ASHOST=hostname, SYSNR=03
    LOCATION  SAP-Gateway on host hostname / sapgw03
    ERROR       timeout during allocate
    TIME Wed Oct 31 05:31:45 2007
    RELEASE 640
    COMPONENT SAP-Gateway
    VERSION 2
    RC 242
    MODULE gwr3cpic.c
    LINE 1795
    DETAIL no connect of TP sapdp03 from host hostname after 22 sec
    COUNTER 3

    Hi K Patil,
    Acording to me you are faceing this issue because the entry of your backend System is not in the SLD (System Landscape Directory ) of your server.
    to make this work you have to make entry in the SLD of your server
    fort that plesae acess this link.
    Re: JCo connection Error
    Re: wt is SLD.. how to do configure it
    Please Reward Points if Helpfull.
    Regards
    Vinit
    Edited by: Vinit Soni on Dec 19, 2007 7:20 AM

  • Unable to connect to SAP gateway to RFC server failed(hostname unknow)

    Hi All,
    I am trying to create a new Model(to connect to SAP R/3 server) using the following steps:
    1.Selecting Import Adaptive RFC Model
    2.Entering Model name,package,default logical system names
    3.Selecting the single server option and giving the details of the SAP R/3 server.
    When I try to connect it gives me the following error :
    -Connect from SAP gateway to RFC server failed.
    Also it mentions :
    <b>"ERROR hostname 'sapR3' unknown "</b>
    Where <b>sapR3</b> is the entry corresponding to the IP address in the host file.
    Further I am able to establish a telnet session using the same hostname in command prompt.
    I have searched the Internet for solutions, but I haven't found any yet.Any ideas?
    Regards,
    Kshitij Agrawal

    Hi,
    Please check if the hostname that you specify in the "Reimport Model" GUI of NWDS matches with the application server name specified in your R/3 system.The same can be verified by following three simple steps:
    1) Open the SAP LogOn.
    2) Choose the server to which you wanted to connect and right click on it to get the "properties" in the context menu.
    3) Look for the value entered in the field "Application Server" in the properties window.
    Hope this helps.

Maybe you are looking for

  • 1st gen iPod Touch, old app no longer runs

    I have a first generation iPod Touch, version 3.1.3.  About a year ago I bought an app, "Converter Plus (Universal)", and it worked fine until recently when I received notice of an update.  There were a few app updates and all loaded successfully exc

  • Error While exporting project in OSB through eclipse

    org.eclipse.core.runtime.AssertionFailedException: null argument:      at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)      at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)      at org.eclipse.jface.viewers.StructuredViewer.a

  • Accurate preview of gradients in EPS objects

    I hope I can explain this properly... our company has been using a primarily Quark-based workflow for as long as I've been here. We would take individual layouts, save them as EPS, and then import them into a master layout (which was the size of our

  • My pages documents won't restore from iCloud, how to fix?

    I recently did a hard reset of my iPad 2, i thought it would fix a problem that proved to be a hardware problem, rater then a software problem. I got (almost) everything back from iCloud, exept for my document in apple programs (pages, numbers and ke

  • TAXINN AND TAXINJ difference ? AND Which is better ?

    HI,   Could u please explain  difference between TAXINN AND TAXINJ  ? AND Which is better ? And in which scenario they are used ? Regrds, Binayak