on 01-06-2006 10:58 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.