cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in passing Journal Entry with Business partner

Former Member
0 Kudos
326

I intend to pass journal entry for a particular Business partner but business partner is a control account how should I pass journal entry for that particular BP.

Need for this entry is for adjusting some G/L accounts with BP accounts.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Monica,

Here's a short example of how to use a business partner in a journal entry.

        Dim oJnl As SAPbobsCOM.JournalEntries
        oJnl = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
        oJnl.DueDate = Now
        oJnl.Lines.ShortName = "C1000"
        oJnl.Lines.Debit = 100
        oJnl.Lines.Add()
        oJnl.Lines.AccountCode = "100000"
        oJnl.Lines.Credit = 100
        If oJnl.Add <> 0 Then
            oApplication.MessageBox(oCompany.GetLastErrorDescription)
        Else
            oApplication.MessageBox("Success")
        End If

Hope it helps,

Adele

Answers (0)