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

creating a service call using DI API

Hi all,

I have written code to connect to businessone.It is connecting.But after that the error is coming....

code written is.....

String c="C40001";



IDocuments objServiceCall=SBOCOMUtil.newDocuments(company,SBOCOMConstants.BoObjectTypes_oServiceCalls);


objServiceCall.setDocDate(new Date());

int i=objServiceCall.add();

String callId=company.getNewObjectKey();


Error: Invoke of: GetBusinessObject

Source: SAPbobsCOM.Company.6.7

Description: You are not connected to a company

at Method)

at Source)

at Source)

at Source)

at Source)

at Source)

at in.mobileone.www.b1.CreateServiceCall.main(

Exception in thread "main"

Is it the correct approach or not.

any one guide me in this issue.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 12, 2006 at 11:40 AM

    Well it sounds pretty self explanatory. Did you connect

    successfully to a company before your code ? all the

    object operations (add / update / delete / etc) need

    to happen in the context of a connected company.

    Have a look at the e-learning section here on SDN about

    DI API.

    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.