cancel
Showing results for 
Search instead for 
Did you mean: 

Is it Possible to pass Journal Entry from DI Server??

Former Member
0 Kudos

Hi DI Server Experts,

Can i able to pass Journal Entry through DI Server?

Thanks in Advance

Regards,

G.Suresh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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>

Former Member
0 Kudos

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