This is Code to get Miscellaneous charges of purchase line in Ax 2012. You can try below code to check in job.    PurchTable purchTable;      PurchLine purchLine;      MarkupTrans markupTrans;      while select * from purchLine      Join purchTable      Join markupTrans      Where purchTable.PurchId == purchLine.PurchId        && markupTrans.TransRecId == purchLine.RecId        && purchTable.PurchId=="PO-0000043"      {        info(strFmt("%1 , %2 , %3",purchLine.PurchId,markupTrans.Txt,markupTrans.Value));      }     
Technical Tutorials x++,tips on issues or troubleshooting On Ax ERP ,Microsoft Dynamics 365,Ax 2012,Microsoft , U.S.,Business Software solution.