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

Problems with SAPbobsCOM.dll after updating to 9.0

Hello experts,

as the topic says i've some problems after updating to 9.0.

We have an Addon which uses SAPbobsCOM (DIAPI) and SAPbouiCOM (UIAPI).

After replacing the .dll's it seems that i can't access a few Objects of the DIAPI.

For example BoFieldTypes. It says that the BoFieldTypes isn't unique in the SAPbobsCOM namespace.

Same with many other objects like BoFldSubTypes, BoGenderTypes (but only with the Enums started with Bo)

Any idea's what i can do?

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2014 at 02:04 AM

    Hi Jan,

    This is an addon developped by you, or provided by somebody else?

    If by you, I guess the addon is composed by different modules... Verify all references, one should be with the old proxies.

    If by somebody else... It is better to ask the developper to do the migration.

    Regards,

    Eric

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Eric.

      Thank you very much. There were some references in the Addon Project which were using the old 8.82 DI API. This was the problem. So Visual Studio couldn't decide which objects it should use.

      Thanks to the rest for the helpful answers.

      kind regards

      Jan

  • Posted on Jan 02, 2014 at 10:43 AM

    Hi Jan,

    If I am not wrong, it should not behave like this. I have also upgraded my add-ons to version 9.0 and haven't experienced such problem.

    Can you check some points:

    1. Check whether the namespace SAPbobsCOM is not used twice in your class.

    2. When you are using BoFieldTypes use it using SAPbobsCOM.BoFieldTypes or SAPbobsCOM.BoFldSubTypes etc.

    3. Have you properly removed your previously used references and recompiled your project too. ?

    Check these points at your end and reply accordingly.

    Hope it is helpful.

    Thanks & Regards

    Ankit Chauhan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2014 at 06:33 AM

    Hi Jan,

    - Open you project addon (visual studio)

    - Klik folder reference

    - Remove previous reference SAPBOBCOM & SAPBOBUI

    - then add again new reference SAPBOBCOM & SAPBOBUI for version 9

    - rebuild the addon

    - test again

    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.