Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2007 at 07:01 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2007 at 07:02 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.