title: How to set a single dimension value in AX 2012?
body: <p>My problem is setting some dimension values read from an external source.</p>
  
  <p>Given the AX 2009 statement:</p>
  
  <pre><code>ledgerJournalTrans.Dimension    = ledgerTable.Dimension;
  ledgerJournalTrans.Dimension[1] = "abc";
  </code></pre>
  
  <p>What is the equivalent way to that in AX 2012?</p>
  
  <p>This will of cause assume the existence of a "Department" dimension as the first dimension.</p>