Skip to Content
0
Former Member
Jan 05, 2007 at 04:25 PM

Update Journal Voucher

104 Views

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?

Thank´