Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

General journal with financial dimensions through x++

(0) ShareShare
ReportReport
Posted on by 2,953

Hi all,

CostCenter = "12", Location = "Ind-Ah";

Main account = 53121

I need to create a JV with above 1 line  with above financial dimensions.

journal voucher line should have ledger account with display 53121-12-Ind-Ah

how to pass these dimensions to container in my case, also have Bank account with no fin. dimensions

CreateJVXpp.PNG

*This post is locked for comments

  • Verified answer
    Ajit Profile Picture
    8,755 on at
    RE: General journal with financial dimensions through x++

    Both are main account id and for offset, you would have to set ledger type as Bank and offset Ledger Dimension. You will get lot of examples when you search about offset ledger dimension.

  • krishna.rao@dax Profile Picture
    2,953 on at
    RE: General journal with financial dimensions through x++

    Thanks  so much for reply.

    1)what is the first parameter ,since repeating same twice.

    2)how to handle for non ledger accounts like Bank..

     since my script like be this

      while select ledgerjounraltransSource //will have ledger & non ledger accounts

     {

     ledgerDimensions =  [".....];

      ledgerJournalTrans.parmLedgerDimension(AxdDimensionUtil::getLedgerAccountId(ledgerDimensions));

      ledgerJournalTrans.save();

     }

  • Verified answer
    Ajit Profile Picture
    8,755 on at
    RE: General journal with financial dimensions through x++

    Try like this -

    account = ["1000", "1000",3,"LineOfBusiness","D", "Location","NA","Department", "IT]; you would have to replace with your values. Here 1000 is a main account with 3 dimensions. You have 2 dimensions so put 2 there and add dimensions.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans