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

SAPbobsCOM2005.dll and Delphi 6

Hi

I am starting work on a project using Delphi 6 (update2) using Business One DLL SAPBoBscom2005.dll

I have imported the type library and have Business One Components on my palette

When I use the Company component I can access

company.getcompanylist.recordcount

company.getcompanylist.fields.count etc successfully

But when I try to access company.getcompanylist.getAsXML I get an Access Violation error :

1008AC03 in module SAPBOBSCOM2005.dll

Anybody else experience this ? should I change to Delphi 2005 as the project is just starting?

Any advice appreciated

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 29, 2006 at 02:20 PM

    Hi Iqubal,

    It is nice to see some one working on DELPHI in developement of SAP Business One .

    i have tried it on DELPHI 5 and DELPHI 7 it is working,

    can i know whether u r getting this problem only for Company componet or while useing other document also..

    Regards

    shoban

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Iqbal,

      Unless you did in the meantime you should check-out the available documentation (SDK Helpcenter) + the E-learning.

      Please go to the SAP Business One Developer Area here on SDN at https://www.sdn.sap.com/irj/sdn/developerareas/businessone.

      The reason why you run into the error is simply that you don't call Connect() to connect to a company DB...

      This is step 1 in any sample + the training material.

      Even working with Delphi / Pascal doesn't exempt you from connecting before working with the connection 😉

      Thanks,

      Frank (once having programmed with Turbo Pascal...)

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.