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 :
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
    237,801 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
    19,703 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

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

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans