on 10-10-2008 8:58 AM
Hi DI Server Experts,
Can i able to pass Journal Entry through DI Server?
Thanks in Advance
Regards,
G.Suresh
hi,
Dim vJE As SAPbobsCOM.JournalEntries
vJE = anotherCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
vJE.TaxDate = Now
vJE.Memo = "Remarks"
Dim DbAcct, CrAcct As String
CrAcct = oedit1.Value
DbAcct = oedit2.Value
vJE.Lines.AccountCode = DbAcct
vJE.Lines.ContraAccount = CrAcct
vJE.Lines.Credit = 0
vJE.Lines.Debit = 100
vJE.Lines.DueDate = Now
vJE.Lines.ReferenceDate1 = Now
vJE.Lines.ShortName = DbAcc
vJE.Lines.TaxDate = Now
Call vJE.Lines.Add()
Call vJE.Lines.SetCurrentLine(1)
vJE.Lines.AccountCode = CrAcct
vJE.Lines.ContraAccount = DbAcct
vJE.Lines.Credit = 100
vJE.Lines.Debit = 0
vJE.Lines.DueDate = Now
vJE.Lines.ReferenceDate1 = Now
vJE.Lines.ShortName = CrAcct
vJE.Lines.TaxDate = Now
lRetCode = vJE.Add()
If lRetCode <> 0 Then
BubbleEvent = False
anotherCompany.GetLastError(lErrCode, sErrMsg)
SBO_Application.StatusBar.SetText(lErrCode & " : " & sErrMsg, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
End If
regards,
varma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suresh,
You may try the following code to add a JE.
Lin
<?xml version="1.0" encoding="UTF-16"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Header>
<SessionID>1</SessionID>
</env:Header>
<env:Body>
<dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS">
<BOM>
<BO>
<AdmInfo>
<Object>oJournalEntries</Object>
</AdmInfo>
<JournalEntries_Lines>
<row>
<AccountCode>_SYS00000000001</AccountCode>
<Debit>100.00</Debit>
</row>
<row>
<AccountCode>_SYS00000000001</AccountCode>
<Credit>100.00</Credit>
</row>
</JournalEntries_Lines>
</BO>
</BOM>
</dis:AddObject>
</env:Body>
</env:Envelope>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear suresh guru,
Yes you can add Journal Entry by DI Server and other objects.
Please refer to DI Server help for more information.
Best Regards
Jane Jing
SAP Business One Forums team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
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.