cancel
Showing results for 
Search instead for 
Did you mean: 

B1DE for VS 2005 / SAP B1 2005 SP01 new project error

Former Member
0 Kudos

I just downloaded and installed the B1DE for Visual Studio 2005 and SAP B1 2005 SP01, and tried to create a new addon in VB.Net

In the connection dialog I enter the database details, click GetCompanyList, choose the company and enter the account details. I leave the field Addon identifier empty.

When I continue by clicking OK, I receive the following error:

"Method not found: 'SAPbobsCOM.DataBrowser SAPbobsCOM.IUserObjectsMD.get_Browser()'."

And the wizard fails to create the project.

I have got the DI API installed.

Did anyone else encounter this problem?

Accepted Solutions (1)

Accepted Solutions (1)

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Wesley,

Have you tried to simply use the DbBrowser and see if you have problems with it? (The connection is the same one and I will like to be sure you can connect without problem).

Regards

Trinidad.

Former Member
0 Kudos

Yes, I can connect with the DbBrowser and open any SAP B1 table.

I tried disableing my firewall aswell, because the DbBrowser fired it several times. Just to be sure. But I still get the same error message.

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Wesley,

Which B1DE version are you working with?

By looking at the error I will say the wizard is using a new method of the 2005 SP01 version (Browser in UserDefinedObjectMD) and that method cannot be found in your DI version... could it be?

There was a similar old problem in precedent version:

?

Do you have at least one UDO in your database?

Can you please do a fast test and add a simple UDO to your database to see if it works?

Regards

Trinidad.

Former Member
0 Kudos

I added a simple UDO but the problem persists. SAP B1 recognizes the created UDO (I can change it's properties in the registration wizard), and it appears in the table OUDO, but the B1DbBrowser tool crashes if I double-click on the UDO folder, showing the same error (this time with a trace):

System.MissingMethodException: Method not found: SAPbobsCOM.DataBrowser SAPbobsCOM.IUserObjectsMD.get_Browser().

at B1Wizard.B1DbBrowser.GetObjects()

at B1Wizard.B1DbTableFormController.ShowUDOsList()

at B1Wizard.B1DbTableFormController.ShowUDOs()

at B1Wizard.B1DbTableForm.LoadInfo(TreeNode node)

at B1Wizard.B1DbTableForm.treeView1_DoubleClick(Object sender, EventArgs e)

at System.Windows.Forms.Control.OnDoubleClick(EventArgs e)

at System.Windows.Forms.TreeView.WndProc(Message& m)

at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

The assembly version of:

B1Wizard.dll: 1.0.2440.26955

B1WizardBase.dll: 1.0.2440.26954

The version of the DI API installed on my machine:

SAPbobsCOM2005.dll: 6.80.318.0

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Strange...

It fails in method Browser of an UserObjectsMD instance... This method has been added for 2005 SP01 version and therefore you shouldn't have any problem with it.

Which PL of 2005 SP01 are you working with? (you can see it by looking in the Properties -> Version tab -> Special Build Description of your DI API dll file)

The code that is throwing the exception is trying to use the Browser property. Can you please try this code in a simple addon connected to the DI API and see if it works?

    
    public B1Udo[] GetObjects()
    {
       SAPbobsCOM.UserObjectsMD udo = (UserObjectsMD)
        diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD);
      UserObjectMD_ChildTables children = null;

      SAPbobsCOM.Recordset rset = (Recordset)
        diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);

      rset.DoQuery("SELECT Code FROM OUDO");

      if (rset.RecordCount > 0)
      {
        int i = 0;

        udo.Browser.Recordset = rset;

        while (!udo.Browser.EoF)
        {
           MessageBox.Show("UDO " + i);
          udo.Browser.MoveNext();
          i++;
        }
      }
    }

If this code does not work in your machine, then it is a problem with your DI API version.

Hope it helps

Trinidad.

Former Member
0 Kudos

Thanks so far for helping me, I really appreciate it!

I tried your code in an addon in progress, and it works. I get a messagebox for each UDO defined in the SAP B1 Company.

The patch level for the DI API dll and SAP B1 is 09.

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Wesley,

I really don't understand why the application is showing this message and when you do the same thing with your addon the problem is not anymore there...

Can you please have a look to the Interop.SAPbobsCOM.dll to see they are the good ones for 2005 SP01? Sorry for insisting but are you completelly sure you have downloaded the version for 2005 SP01? Do you have the menu DbChanges active in the DbBrowser?

The only thing I can propose you to try to find out the problem is to dowload the code source of B1DE. Open the solution called "\B1 DE\AddOnCodeGeneratorWizard\B1Wizard\B1Wizard.dll" and try to run in debug mode the project B1DbBrowser. By doing it you should be able to see where the problem takes place exactly (if it does not run because some dll access go to Globals.cs file and update the initDbBrowser method with your paths).

Regards

Trinidad.

Former Member
0 Kudos

I verified the version of the B1DE and it is the right one (I do have the option in the DbBrowser to show differences between the new and old database).

I don't know where I can find the source code (I can only find links to the installer package), maybe because our company is not a partner of SAP (we only work for another company that is a partner). But I wanted to try something else first: the good old uninstall and reinstall.

Call it Murphy's Law, but it works now. Thanks for the assistance!

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Wesley,

I'm happy it works now!

Please mark the post as solved.

Regards

Trinidad.

Answers (0)