<?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>topic Re: Add On DI API Connection Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-on-di-api-connection-problem/m-p/12596136#M2010610</link>
    <description>&lt;P&gt;Case Closed. I already find the answer&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 08:48:47 GMT</pubDate>
    <dc:creator>former_member835745</dc:creator>
    <dc:date>2022-09-22T08:48:47Z</dc:date>
    <item>
      <title>Add On DI API Connection Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-on-di-api-connection-problem/m-p/12596135#M2010609</link>
      <description>&lt;P&gt;HI there, &lt;/P&gt;
  &lt;P&gt;i've facing problem with my web app di api integration,&lt;/P&gt;
  &lt;P&gt;in a random times, my current active login sometimes seems logged out and it showed the error as this picture attach picture error.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2096726-err-di-api.jpeg" /&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;if i try to reconnect, sometimes it can and sometimes it cannot.&lt;/P&gt;
  &lt;P&gt;here is the code i've done. &lt;/P&gt;
  &lt;P&gt;Private Shared Sub ConnectCompany(ByRef pCompany As SAPbobsCOM.Company)&lt;/P&gt;
  &lt;P&gt; If Not pCompany.Connected Then&lt;/P&gt;
  &lt;P&gt; pCompany = New SAPbobsCOM.Company&lt;/P&gt;
  &lt;P&gt; pCompany.Server = CompanySettings.Server&lt;/P&gt;
  &lt;P&gt; pCompany.LicenseServer = CompanySettings.LicenseServer&lt;/P&gt;
  &lt;P&gt; pCompany.language = CompanySettings.language&lt;/P&gt;
  &lt;P&gt; pCompany.DbServerType = CompanySettings.DbServerType&lt;/P&gt;
  &lt;P&gt; pCompany.CompanyDB = CompanySettings.CompanyDB&lt;/P&gt;
  &lt;P&gt; pCompany.DbUserName = CompanySettings.DbUserName&lt;/P&gt;
  &lt;P&gt; pCompany.DbPassword = CompanySettings.DbPassword&lt;/P&gt;
  &lt;P&gt; pCompany.UserName = CompanySettings.UserName&lt;/P&gt;
  &lt;P&gt; pCompany.Password = CompanySettings.Password&lt;/P&gt;
  &lt;P&gt; Try&lt;/P&gt;
  &lt;P&gt; Dim retval As Integer = pCompany.Connect()&lt;/P&gt;
  &lt;P&gt; If retval &amp;lt;&amp;gt; 0 Then&lt;/P&gt;
  &lt;P&gt; Throw New ArgumentException("1 - " &amp;amp; retval &amp;amp; pCompany.GetLastErrorDescription)&lt;/P&gt;
  &lt;P&gt; End If&lt;/P&gt;
  &lt;P&gt; Catch ex As Exception&lt;/P&gt;
  &lt;P&gt; Throw New ArgumentException(ex.Message &amp;amp; " - 2 - " &amp;amp; pCompany.GetLastErrorDescription)&lt;/P&gt;
  &lt;P&gt; End Try&lt;/P&gt;
  &lt;P&gt; End If&lt;/P&gt;
  &lt;P&gt; End Sub&lt;/P&gt;
  &lt;P&gt;Currently We have 2 Add On Application, deployed in different server. First is Add On Barcode for picklist (deployed in server 01), second is Add On Sales Quotation (deployed in server 02) -&amp;gt; Issue occurred in this add on. Both of them using same User ID that attached with license: SBO Indirect Access User.&lt;/P&gt;
  &lt;P&gt;We also apply ownership authorization in SAP B1.&lt;/P&gt;
  &lt;P&gt;Please any advice because this error really pain for our user.&lt;/P&gt;
  &lt;P&gt;Thankyou&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 05:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-on-di-api-connection-problem/m-p/12596135#M2010609</guid>
      <dc:creator>former_member835745</dc:creator>
      <dc:date>2022-09-15T05:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Add On DI API Connection Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-on-di-api-connection-problem/m-p/12596136#M2010610</link>
      <description>&lt;P&gt;Case Closed. I already find the answer&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 08:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-on-di-api-connection-problem/m-p/12596136#M2010610</guid>
      <dc:creator>former_member835745</dc:creator>
      <dc:date>2022-09-22T08:48:47Z</dc:date>
    </item>
  </channel>
</rss>

