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

Update Journal Voucher

Hi All,

I'm try to update a line in Journal Voucher, but the method Browser.RecordSet was with this error: "The object does not support this method, or method not implemented yet."

This is the Code:

Dim oJournalVoucher As SAPbobsCOM.JournalVouchers

Dim oRecordSet As SAPbobsCOM.Recordset

Dim nDebit As Double

Set oJournalVoucher = oCompany.GetBusinessObject(oJournalVouchers)

Set oRecordSet = oCompany.GetBusinessObject(BoRecordset)

oRecordSet.DoQuery ("Select * From OBTF")

oJournalVoucher.JournalEntries.Browser.Recordset = oRecordSet

oJournalVoucher.JournalEntries.GetByKey ("1")

oJournalVoucher.JournalEntries.SetCurrentLine (0)

oJournalVoucher.JournalEntries.Lines.Debit = nDebit

Anybody help me?


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 06:43 AM


    you have to do that in this way,

    oJournalVoucher = (SAPbobsCOM.Items)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalVouchers);

    if (oJournalVoucher.GetByKey("1") == true)


    oJournalVoucher.JournalEntries.SetCurrentLine (0)

    oJournalVoucher.JournalEntries.Lines.Debit = nDebit

    int iRetCode = oJournalVoucher.Update();


    hope it will work.

    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.