Skip to Content
0
Former Member
May 04, 2005 at 04:57 AM

Error in creating JE using SDK

24 Views

I am using B1 2004 B and trying to create JE using SDk(vb6).I am getting the following error:

[OJDT.BtfStatus][line: 2] , 'Row in Transaction with Account No.'

Following is my code:

Dim vJE As SAPbobsCOM.JournalEntries

Set vJE = oCmp.GetBusinessObject(oJournalEntries)

vJE.Lines.AccountCode = "500005"

vJE.Lines.ContraAccount = "131000"

vJE.Lines.Credit = 0

vJE.Lines.Debit = dblAmount

Call vJE.Lines.Add

vJE.Lines.AccountCode = "C003"

vJE.Lines.ContraAccount = "400000"

vJE.Lines.Credit = 0

vJE.Lines.Debit = (dblAmount * 105) / 100

vJE.Add()

B1 gurus please help.

Thanks