cancel
Showing results for 
Search instead for 
Did you mean: 

How to Catch the TranId after making Joung Entry using Busines One Object

Former Member
0 Kudos

Dear All,

I am having one problem when i am working with Journal Entries object. I am using this object to update the Accounting data.

I need the TransId of Jounal after making any entry...

How its possible....

I need this TransId to related Jounal data and our user defined screen...

Regards

Sanjay

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sanjay,

You have the TransID of any transaction in a JE, recorded in the OJDT table and the column name is TransID. In the BeforeAction = False, once the JE is created, you can get the TransID of your last transaction.

Hope this helps,

Satish.

Former Member
0 Kudos

Hi,

oJE = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)

Before creating JE use this code

oCompany.GetNewObjectCode(UrSringVariableName)

if oJE.Add=0 then

'do nothing

Else

UrSringVariableName=""

End if

Hope this helps

Regards

Vishnu

Former Member
0 Kudos

Dear Mr. Vishnu

Thanks .....

My problem is solved... Looking a better solution from you.

Regards

Sanjay

Former Member
0 Kudos

Hi sanjay

i didn't understand what do you mean by

Looking a better solution from you.

if my solution helped you please reward points

Regards

Vishnu