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)

General journal with financial dimensions through x++

(0) ShareShare
ReportReport
Posted on by 3,020

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

I have the same question (0)
  • Verified answer
    Ajit Profile Picture
    8,788 on at

    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.

  • krishna.rao@dax Profile Picture
    3,020 on at

    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,788 on at

    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.

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
Jagadabi Profile Picture

Jagadabi 6

#2
ZvikaR Profile Picture

ZvikaR 6

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans