Showing results for 
Search instead for 
Did you mean: 

Journal Entry for Business Partner account

Former Member
0 Kudos

Dear Experts,

i want to generate journal entry for subcontractor account. i'm using following code

Dim bp As String

oBP = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)


bp = oBP.DebitorAccount



oSBOJournalEntries.Lines.AccountCode = bp

oSBOJournalEntries.Lines.Debit = 15000

oSBOJournalEntries.Lines.Credit = 0


it saying error we r not able to generate journal entry for this account

how to create jounal for BP in BPRecievablePayable account



Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mathiyarasu,

Use the ShotName property of the JELine object.

                    Dim oJE As SAPbobsCOM.JournalEntries = oCompany.GetBusinessObject(BoObjectTypes.oJournalEntries)
                    Dim oJE_Lines As SAPbobsCOM.JournalEntries_Lines = oJE.Lines
                    oJE_Lines.ShortName = "C00001"

You must use this property because there cannot be direct posting to a control account.


Vítor Vieira