<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: RFC Error SAP LOGON in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/rfc-error-sap-logon/qaa-p/12065878#M4508569</link>
    <description>&lt;P&gt;Hello Maria,&lt;/P&gt;&lt;P&gt;you can find &lt;A href="https://answers.sap.com/questions/12849089/vb-excel-createobject-saplogoncontrol1-rcf-error-i.html?childToView=12848305&amp;amp;answerPublished=true#answer-12848305"&gt;an answer here&lt;/A&gt;. Please don't ask the same question multiple times.&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Stefan&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2019 04:17:25 GMT</pubDate>
    <dc:creator>Stefan-Schnell</dc:creator>
    <dc:date>2019-08-22T04:17:25Z</dc:date>
    <item>
      <title>RFC Error SAP LOGON</title>
      <link>https://community.sap.com/t5/technology-q-a/rfc-error-sap-logon/qaq-p/12065877</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I am using excel with VB - &lt;/P&gt;
  &lt;P&gt;'Example calling BAPI RFC_GET_TABLE_ENTRIES&lt;BR /&gt;&lt;BR /&gt;Option Explicit&lt;BR /&gt;Public Functions As SAPFunctionsOCX.SAPFunctions&lt;BR /&gt;Private LogonControl As SAPLogonCtrl.SAPLogonControl&lt;BR /&gt;Private objConnection As SAPLogonCtrl.Connection&lt;BR /&gt;Dim Func As SAPFunctionsOCX.Function&lt;BR /&gt;Public eNUMBER_OF_ENTRIES As SAPFunctionsOCX.Parameter&lt;BR /&gt;Public tENTRIES As SAPTableFactoryCtrl.Table&lt;BR /&gt;Public TableFactory As SAPTableFactory&lt;BR /&gt;Private LogCount As Integer&lt;BR /&gt;Public shScript, shLog As Worksheet&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sub TableEntriesRFC()&lt;BR /&gt; Dim i As Integer&lt;BR /&gt; Dim retcd As Boolean&lt;BR /&gt; Dim SilentLogon As Boolean&lt;BR /&gt; &lt;BR /&gt; Set shScript = Worksheets("Script")&lt;BR /&gt; ResetLog&lt;BR /&gt; &lt;BR /&gt; Set LogonControl = CreateObject("SAP.LogonControl.1")&lt;BR /&gt; Set Functions = CreateObject("SAP.Functions")&lt;BR /&gt; Set TableFactory = CreateObject("SAP.TableFactory.1")&lt;BR /&gt; Set objConnection = LogonControl.NewConnection&lt;BR /&gt; SilentLogon = False&lt;BR /&gt; &lt;BR /&gt; 'Set the hourglass pointer&lt;BR /&gt; 'Application.Cursor = xlWait&lt;BR /&gt; &lt;BR /&gt; AddLog "Logon", "Logging into SAP...", vbBlack&lt;BR /&gt; ' Logging into SAP&lt;BR /&gt; If objConnection.Logon(0, SilentLogon) Then&lt;BR /&gt; &lt;BR /&gt; 'Logon was successful&lt;BR /&gt; AddLog "Logon", "Successfully logged into SAP", vbBlack&lt;BR /&gt; 'Create an object to call the RFC FM&lt;BR /&gt; Functions.Connection = objConnection&lt;BR /&gt; &lt;BR /&gt; AddLog "RFC", "Preparing the interface", vbBlack&lt;BR /&gt; 'Actual FM is added here&lt;BR /&gt; Set Func = Functions.Add("RFC_GET_TABLE_ENTRIES")&lt;BR /&gt; 'Populate the importing parameters&lt;BR /&gt; Func.Exports("TABLE_NAME").Value = Range("TableName").Value&lt;BR /&gt; 'Declare the exporting parameters and tables&lt;BR /&gt; Set eNUMBER_OF_ENTRIES = Func.Imports("NUMBER_OF_ENTRIES")&lt;BR /&gt; Set tENTRIES = Func.Tables("ENTRIES")&lt;BR /&gt; &lt;BR /&gt; 'Executing the FM&lt;BR /&gt; AddLog "RFC", "Executing call", vbBlack&lt;BR /&gt; Func.Call&lt;BR /&gt; &lt;BR /&gt; AddLog "RFC", "Number of entries: " + CStr(eNUMBER_OF_ENTRIES), vbBlack&lt;BR /&gt; 'Extract the results to Excels to D10 and down&lt;BR /&gt; For i = 1 To tENTRIES.RowCount&lt;BR /&gt; Cells(9 + i, 4).Value = tENTRIES(i, 1)&lt;BR /&gt; Next&lt;BR /&gt; &lt;BR /&gt; Else&lt;BR /&gt; 'Execute this block if logon fails&lt;BR /&gt; Dim msg As String&lt;BR /&gt; msg = "Failed to login to SAP. Verify credentials or access."&lt;BR /&gt; AddLog "Logon", msg, vbRed&lt;BR /&gt; Application.Cursor = xlDefault&lt;BR /&gt; MsgBox msg&lt;BR /&gt; GoTo Cleanup&lt;BR /&gt; End If&lt;BR /&gt; &lt;/P&gt;
  &lt;P&gt;I am getting -&lt;/P&gt;
  &lt;P&gt;RFC_ERROR_COMMUNICATION&lt;BR /&gt;&lt;BR /&gt;Message&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LOCATION CPIC (TCP/IP) on local host with Unicode&lt;BR /&gt;ERROR partner 'xx.xx.xx.xx:3300' not reached&lt;BR /&gt;TIME Tue Aug 20 09:45:42 2019&lt;BR /&gt;RELEASE 749&lt;BR /&gt;COMPONENT NI (network interface)&lt;BR /&gt;VERSION 40&lt;BR /&gt;RC -10&lt;BR /&gt;MODULE D:/depot/bas/749_REL/src/base/ni/nixxi.cpp&lt;BR /&gt;LINE 3428&lt;BR /&gt;DETAIL NiPConnect2: xx.xx.xx.xx:3300&lt;BR /&gt;SYSTEM CALL connect&lt;BR /&gt;ERRNO 10060&lt;BR /&gt;ERRNO TEXT WSAETIMEDOUT: Connection timed out&lt;BR /&gt;COUNTER 18&lt;/P&gt;
  &lt;P&gt;I had tried&lt;/P&gt;
  &lt;P&gt;1. To add the entry in the host file&lt;/P&gt;
  &lt;P&gt;2. add...mask&lt;/P&gt;
  &lt;P&gt;3. I have the sap router selected - so it should not be a problem - since when it chooses brings the router too -&lt;/P&gt;
  &lt;P&gt;what could be happening?&lt;/P&gt;
  &lt;P&gt;thank you &lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 04:30:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rfc-error-sap-logon/qaq-p/12065877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-08-21T04:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: RFC Error SAP LOGON</title>
      <link>https://community.sap.com/t5/technology-q-a/rfc-error-sap-logon/qaa-p/12065878#M4508569</link>
      <description>&lt;P&gt;Hello Maria,&lt;/P&gt;&lt;P&gt;you can find &lt;A href="https://answers.sap.com/questions/12849089/vb-excel-createobject-saplogoncontrol1-rcf-error-i.html?childToView=12848305&amp;amp;answerPublished=true#answer-12848305"&gt;an answer here&lt;/A&gt;. Please don't ask the same question multiple times.&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 04:17:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rfc-error-sap-logon/qaa-p/12065878#M4508569</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2019-08-22T04:17:25Z</dc:date>
    </item>
  </channel>
</rss>

