Click here to Skip to main content
15,896,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have tried to get default dimension based on Account number in AX 2012. But I have not found Table "LEDGERCONTROLDIMENSION" and got alternative table "DIMENSIONATTRIBUTEVALUECOMBINATION" for AX 2012 but I have no idea how to use this table.

How can I get Default Financial dimension for particular Account. Please see below query of AX - 2009. If anyone have idea please share it to me.

SQL
Select LC.NUM as SiteID,    
D.Description as SiteDescription    
from LEDGERCONTROLDIMENSION LC    
inner join DIMENSIONS D on LC.NUM=D.NUM and LC.DimensionCode=D.Dimensioncode    
where LC.AccountNum=@TrimmedAccount and LC.DimensionCode=0  


Thank you in Advance.
Posted
Updated 29-Dec-14 18:54pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900