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

Find or create a ledger dimension based on the dimension combination

(0) ShareShare
ReportReport
Posted on by 3

Hi,

I am trying to create a line in budget transfer line table. I need to update the LedgerDimension field, based on the known dimension combination. We know the dimension values (Division, Department, Cost center, and Sub cost center).

I found one post but it needs main account. In my case i don't have main account, we know the accounting structure value and dimension values only.

https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/67891/create-a-new-record-in-dimensionattributevaluecombination-by-ax2012-code/191381

Please let me know if you have any idea.

Thanks,

Hari

I have the same question (0)
  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    If you don't have main account then maybe you need default dimension instead ? Here is an example how to create it community.dynamics.com/.../ax2012-create-default-dimension-with-a-set-of-dimension-values

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Hari,

    Why do you need to code that?

    There is a standard budget transfer functionality available that can be used for that purpose.

    Would be great if you could elaborate.

    Many thanks,

    Ludwig

  • Hariharans87 Profile Picture
    3 on at

    Hi Ludwig,

    We are creating transfer budget form for ESS users.

    Thanks,

    Hari

  • Hariharans87 Profile Picture
    3 on at

    Hi Ludwig,

    We are creating this form for the EP user. In the purchase requisition time, no budget then user do the the request in the transfer budget form (EP form) with to dimension and from dimension details.

    Please let me know if you have any idea.

    Thanks,

    Hari

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Hari,

    Many thanks for the update.

    I just wonder if this is the right process.

    If a user gets a message that he cannot purchase something because of insufficient budget funds, doesn't he have to got to his boss and ask for the budget first?

    If you just do a transfer from another existing budget, wouldn't this allow users basically to order everything without a previous prior approval from their boss?

    I would expect that the boss is accepting / rejecting this and initiates the budget transfer if this is ok with him.

    Not sure if this makes sense in your company environment but that is what I would expect.

    Best regards,

    Ludwig

  • Hariharans87 Profile Picture
    3 on at

    The request workflow will go for approval

  • ergun sahin Profile Picture
    8,826 Moderator on at

    I do not know your purpose in development and the situation you are facing, but the ledger dimension to be copied has an account. You can use it.

    Instead of creating a new ledger dimension, you can merge with the values ​​you want to change.

    There is also a white paper as below, I share the relevant part. You can review the document for details.

    "The following methods are used to create budget ledger dimensions:

    ï‚· saveLedgerDimensionBudget

    Creates a ledger dimension of type budget by using the dimension attribute values from another

    ledger dimension reference. Uses only dimension attributes that are enabled for budget to create

    the budget ledger dimension.

    ï‚· getLedgerDimensionBudget

    Combines a default account reference for a main account and a default dimension reference into

    one budget ledger dimension. Uses only dimension attributes that are enabled for a budget to

    create the budget ledger dimension.

    ï‚· mergeDefaultDimWithLedgerDim

    Combines a ledger dimension with a default dimension into one budget ledger dimension. Uses

    only dimension attributes that are enabled for the budget to create the budget ledger dimension."

    download.microsoft.com/.../implementing_budgeting_for_microsoft_dynamics_ax_2012_applications_ax 2012.pdf

  • ergun sahin Profile Picture
    8,826 Moderator on at

    Sorry I didn't realize you were working on the budget module. But my answer has not changed outside the main account part, merge the old dimensions and the new ones

  • Hariharans87 Profile Picture
    3 on at

    I could not find any example.

    Could you please explain which parameter value i need to pass for the saveLedgerDimensionBudget method?

  • Hariharans87 Profile Picture
    3 on at

    Great. You helped me in the right time. I found some example by using cross reference.

    Once i get the default dimension value, i need to pass this default dimension value to the BudgetTransacationManager::SaveLedgerDimensionBudget method.

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 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans