web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    How about exposing it as AIF web service??

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

  • Loic Orue Profile Picture
    927 on at

    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
    49,438 User Group Leader on at

    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?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Sukrut Parab Profile Picture

Sukrut Parab 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans