Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Importing lines to the LedgerJournalTrans and LedgerJournalTable tables through Excel Import.

(0) ShareShare
ReportReport
Posted on by 927

Hi,

We're working on importing Expense Claim lines to AX from an external tool.

In order to do this, we generated a Template that allows us to import the required data to the LedgerJournalTrans table. Our aim is to generate this document from our external tool, allow the employees to validate the information, and then push them to AX through the Microsoft Excel Import functionality.

Currently:

  • We create the Expense Claim journal in AX (General Ledger ==> General Journal ==> New) which creates a record in the LedgerJournalTable.
  • When the journal is created, a Journal Batch Number is generated.
  • We then copy this Journal Batch Number and put it in our Excel Template.
  • We import the Excel Template and populate the LedgerJournalTrans table.
  • We then repeat this for every company in AX.

We would like to know if it would be possible, through an import (or worst case scenario as little coding as possible), to avoid the manual creation of the Expense Claims Journal line.

This means that an Expense Claim journal line would be created automatically in the LedgerJournalTable with the correct Journal Batch Number (automatically incremented from the last Journal batch number in the table) together with the corresponding Expense claim lines in LedgerJournalTrans table (with the newly created Journal Batch Number).

We thought of doing this by importing lines to the LedgerJournalTable but the Journal Batch Number is a required field so we're still faced with the same issue which is we can't know, unless we manually look, what the last Journal Batch Number was so that we can create a new entry to the LedgerJournalTable with the next one.

Thanks in advance for your input!

 

*This post is locked for comments

  • Sohaib Cheema Profile Picture
    46,614 User Group Leader on at
    RE: Importing lines to the LedgerJournalTrans and LedgerJournalTable tables through Excel Import.

    Hi Loic,

    its all about administration, not about development.

    if you will see the given URL, you will notice that to activate a web service its just drag drop. you don't need to write a single line of code.

    in addition when you are setting a number sequence so that it will not be manual, the number sequence will be generated automatically, we are not writing any code while setting number sequence.

    I am still hopeful for achieving this without any code.

    Have you tried this? If yes, where you suppose you need to write code or at what part it forced you to write code?

  • Loic Orue Profile Picture
    927 on at
    RE: Importing lines to the LedgerJournalTrans and LedgerJournalTable tables through Excel Import.

    Hi Sohaib,

    I know this could be performed this way but as I said I was hoping to avoid any development.

    Thanks for your answer in any case!

  • Sohaib Cheema Profile Picture
    46,614 User Group Leader on at
    RE: Importing lines to the LedgerJournalTrans and LedgerJournalTable tables through Excel Import.

    How about exposing it as AIF web service??

    www.daxfinanceblog.com/.../upload-a-general-journal-from-excel-in-dynamics-ax2012-r3

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans