Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Replacing main account in ledger dimension

(1) ShareShare
ReportReport
Posted on by 46

hello,
I tried this method: 

GeneralJournalAccountEntry GTabl;

ttsbegin;

update_recordset GTabl
setting LedgerDimension = LedgerDimensionFacade::serviceCreateLedgerDimension(LedgerDefaultAccountHelper::getDefaultAccountFromMainAccountId('200999'),LedgerDimensionFacade::getDefaultDimensionFromLedgerDimension(GTabl.LedgerDimension)) where GTabl.RecId==5637145040;

ttscommit;

to change the main account of ledger account but it's not working .

thanks

kind regards

  • MariamW Profile Picture
    MariamW 46 on at
    RE: Replacing main account in ledger dimension

    hello Thank you very much for your answer.

    I just want to know , How do I find the Main account linked to items to set conditions and replace it with another Main account?

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,969 Super User 2025 Season 1 on at
    RE: Replacing main account in ledger dimension

    Hi MariamW, ChahrazadK,

    The GeneralJournalAccountEntry table contains posted transactions. It is not allowed to just change the contents of this table using a script. This is according to international accounting rules. Or do you have permissions from an external auditor to do so? When making this change, you will create inconsistencies with the DimensionFocusBalance table and the Financial Reporter might not be aware of it. If the entry comes from a subledger, then also other table references will have incorrect data.

    My recommendation would be to create a reversing entry and then post the correct entry.

  • L Profile Picture
    L 31 on at
    RE: Replacing main account in ledger dimension

    Hi Mariam,

    I want the same solution.

    Kind regards

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans