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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Why LedgerJournalTrans table doesnt have AccountNum field ?

(0) ShareShare
ReportReport
Posted on by 709

Hi friends,

I'm just learning D365 F&O, may I know in table LedgerJournalTrans does it have field AccountNum ? Since I cannot see it in AOT on its Fields list.

I want to add some display field in General Journal - Journal Lines, but this display should look into what we input inside Account  field  ->

pastedimage1661323375917v2.png

pastedimage1661323348168v1.png

Please help me to understand.

Thanks

I have the same question (0)
  • Martin Dráb Profile Picture
    239,140 Most Valuable Professional on at

    Right-click the field (as you did in your second screenshot), highlight Form information and click Form name: Ledger journal trans daily. This will open Form information form, where you can get more details about the form and the form control. Go to Administration fast tab and find Data field. There you'll find the actual field name - it's LedgerDimension.

  • Suggested answer
    BillurSamdancioglu Profile Picture
    20,717 Most Valuable Professional on at

    Hi,

    Because account num and ofsett account num fields are Recid. They are managed with subtables which help the mixture of merge.  It is like inventdim.

  • ShaqAX Profile Picture
    709 on at

    Noted with thanks.

    And how to use this LedgerDimension field ? Means, I want to create a CoC for additional field that I add in table BankAccountTable. So the logic is : there is a custom field (lets say fieldX) in that table. Now I created this Display method like this : 

    [ExtensionOf(tableStr(LedgerJournalTrans))]
    final class LedgerJournalTransTable_Extension
    {
    
        /// 
        /// Display method for Bank type from bank account table
        /// 
        /// 
        /// 
        [SysClientCacheDataMethodAttribute(true)]
        public display Name bankType(LedgerJournalTrans _this)
        {
            if (_this.AccountType == LedgerJournalACType::Bank)
                return BankAccountTable::find(_this.LedgerDimension).fieldX;
            
            return  "" ;
        }
    
    }

    There is an error while build like this : 

    pastedimage1661361702132v1.png

    Thanks,

  • Suggested answer
    ShaqAX Profile Picture
    709 on at

    Ok, solved it. It should be like this :

    BankAccountTable::find(LedgerDynamicAccountHelper::getAccountNumberFromDynamicAccount(_this.LedgerDimension)).fieldX;

    Thanks

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 689

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 478 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 258 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans