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 :
Microsoft Dynamics AX (Archived)

General journal with financial dimensions through x++

(0) ShareShare
ReportReport
Posted on by 3,006

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,755 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,006 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,755 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

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans