web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Which table should i migrate to if i need to migrate to the Accounting Currency and the Reporting Currency Amount Field?

(0) ShareShare
ReportReport
Posted on by 14,855

Dear 

we need to migrate a journal entry to offset difference of exchange(DOE) amounts 

my DOE amount have 0 in transaction amount (LedgerJournalTrans.AmountCur) but does have decimals in the Accounting Currency and Reporting Currency Field amount; 

is which table should i migrate to in order to migrate the Accounting and Reporting currency ?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    If you post a transaction record gets created in tables LedgerTrans and GeneralJournalAccountEntry and data can be retrieved through following fields:

    LedgerTrans.AmountMST == GeneralJournalAccountEntry.AccountingCurrencyAmount

    and

    LedgerTrans.AmountMSTSecond == GeneralJournalAccountEntry.ReportingCurrencyAmount

    and

    LedgerTrans.AmountCur == GeneralJournalAccountEntry.TransactionCurrencyAmount.

    Please check below link to understand the relationship between these two tables:

    download.microsoft.com/.../Mapping_the_LedgerTrans_table_to_General_Journal_tables_AX2012.pdf

  • Suggested answer
    Galyna Fedorova Profile Picture
    3,566 on at

    Why do not you want to migrate a journal entry in the accounting currency and populate LedgerJournalTrans.AmountCur with decimals?

  • Abdo Khoury Profile Picture
    14,855 on at

    the system generated difference of exchange transactions to the wrong account and we want to reverse them  

  • Sukrut Parab Profile Picture
    71,735 Moderator on at

    Those fields are stored in GeneralJournalAccountEntry after posting.

  • MyDynamicsNAV Profile Picture
    77 on at

    Hi Sukrut,

    Please help!

    what I'm doing wrong here, generalJournalEntryTmp.CreditAmount, generalJournalEntryTmp.DebitAmount are not displayed on the report

           ttsbegin;

           while(queryRun.next())

           {

               generalJournalEntry = queryRun.get(tableNum(GeneralJournalEntry)) as GeneralJournalEntry;

               generalJournalAccountEntry = queryRun.get(tableNum(GeneralJournalAccountEntry)) as GeneralJournalAccountEntry;

               Amount creditAmount;

               Amount debitAmount;

               Amount amount;

               //generalJurnalAccountEntry_W = queryRun.get(tableNum(GeneralJournalAccountEntry_W)) as GeneralJournalAccountEntry_W;

               generalJournalEntryTmp.clear();

               generalJournalEntryTmp.SubledgerVoucher = generalJournalEntry.SubledgerVoucher;

               generalJournalEntryTmp.JournalNumber = generalJournalEntry.JournalNumber;

               generalJournalEntryTmp.MainAccount = generalJournalAccountEntry.MainAccount;

               generalJournalEntryTmp.MainAccountName = MainAccount::findByLedgerDimension(generalJournalAccountEntry.LedgerDimension).localizedName();

               generalJournalEntryTmp.AccountingDate = generalJournalEntry.AccountingDate;

               //generalJournalEntryTmp.AccountingCurrencyAmount = generalJournalAccountEntry.AccountingCurrencyAmount;

               amount = generalJournalAccountEntry.TransactionCurrencyAmount;

               if(amount < 0)

               {

                   generalJournalEntryTmp.CreditAmount = amount;

               }

               else if(amount > 0)

               {

                   generalJournalEntryTmp.DebitAmount = amount;

               }

               generalJournalEntryTmp.Text = generalJournalAccountEntry.Text;

               generalJournalEntryTmp.AccountNum = generalJournalAccountEntry.LedgerAccount;

                   //LedgerDimensionFacade::getDisplayValueForLedgerDimension(generalJurnalAccountEntry_W.ledgerDimensionCorr_RU());

               generalJournalEntryTmp.insert();

           }

           ttscommit;

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans