Skip to Content
author's profile photo Former Member
Former Member

At wit's end with Add-On disconnecting. HELP!

I've now been struggling with this problem for the better part of a week trying different things, working with SAP support -- but to no avail.

Here's the deal: I wrote a simple add-on using the UI-API. It adds one button to Order Entry. I run the add-on through VB.NET with SBO running and it works great. I compile, create the add-on installer, create the .ard file and add the add-on in SBO.

The add-on installs just fine. Now when I go to start the add-on in SBO (whether automatic or manual), the add-on will disconnect and send me the message " disconnected. Restart, Ignore, Continue...". I've narrowed down the disconnection to the line of code where the add-on is grabbing the Application: SBO_Application = SboGuiApi.GetApplication()

I've now gone as far as using the simple "Hello World" sample from the SDK and I don't change anything. It still has the same problem.

I've upgraded to patch 32 (per SAP's instructions) and it still doesn't help.

HELP!! Any ideas??

I really appreciate it. If someone helps solve this problem, I will buy you dinner.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 07, 2005 at 05:25 AM

    Are you getting the connection string from the UI API - you MUST NOT use the development string

    sConnectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056"

    Here is a code snippet (VB .NET 2003) that will show you how to get the string from the UI API

    #If DEBUG Then

    '1a. This is for Testing Purposes

    sConnectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056"


    '1b. This is for Add-On Purposes

    sConnectionString = Environment.GetCommandLineArgs.GetValue(1)

    #End If

    (ensure the development string is not set up in the project properties and compile your .exe in release mode - recompile your installer with the new exe and then create a new .ard file and install)


    if all else fails add message boxes to every line of your .exe startup cade and see where the app breaks - then you wil have an idea of how to fix it (you can also catch exceptions to check the system errors)

    Hope this helps..

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.