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

how to add a ChartOfAccounts object into the database.

how to add a ChartOfAccounts object into the database. please shows sample code

thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 06, 2005 at 08:53 AM

    Dim CoA As SAPbobsCOM.ChartOfAccounts

    CoA = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oChartOfAccounts)

    CoA.Code = 11223344

    CoA.ExternalCode = "a1234"

    CoA.ForeignName = "f Test Account"

    CoA.Name = "Test Account"

    CoA.AccountType = SAPbobsCOM.BoAccountTypes.at_Other

    CoA.ActiveAccount = SAPbobsCOM.BoYesNoEnum.tYES

    CoA.FatherAccountKey = 100001

    If CoA.Add <> 0 Then

    MessageBox.Show(oCompany.GetLastErrorDescription)

    Else

    MessageBox.Show("Added Account")

    End If

    -


    Remember the father account key must be a valid account number in the company where you are trying to add the new account. (The G/L Account code seen in the SBO client)

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2005 at 09:52 AM

    very very thank you

    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.