<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6625577645294068831</id><updated>2024-09-07T08:12:15.059+08:00</updated><category term="AX 2009"/><category term="AX tips and tricks"/><category term="AX blog"/><category term="RFQ"/><category term="purchase order"/><category term="AX 2012"/><category term="Fixed Asset"/><category term="Intercompany"/><category term="Invoice"/><category term="Management Reporter 2012"/><category term="Payment"/><category term="Settlement"/><category term="VendSettlement"/><category term="VendTrans"/><category term="createExcel"/><category term="error user credential"/><category term="field"/><category term="link"/><category term="po"/><category term="posting layer"/><category term="read/write excel"/><category term="request for quote"/><category term="x++"/><title type='text'>Dynamics AX tips, tricks and everything</title><subtitle type='html'>This blog contains MS Dynamics AX tool, tips, tricks, procedures and anything about it.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://daxjoyie.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://daxjoyie.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11385927042387600047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6625577645294068831.post-1447680783558177523</id><published>2012-12-20T13:54:00.000+08:00</published><updated>2012-12-20T14:00:59.095+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AX 2012"/><category scheme="http://www.blogger.com/atom/ns#" term="error user credential"/><category scheme="http://www.blogger.com/atom/ns#" term="Management Reporter 2012"/><title type='text'>Error Installing Management Reporter 2012</title><content type='html'>&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I&#39;ve been experiencing &lt;a href=&quot;http://daxjoyie.blogspot.com/2012/12/error-installing-management-reporter.html&quot;&gt;installation&lt;/a&gt; issue of &lt;a href=&quot;http://daxjoyie.blogspot.com/2012/12/error-installing-management-reporter.html&quot;&gt;Management Reporter 2012 &lt;/a&gt;for MS Dynamics AX 2012 for quite few weeks. I&#39;ve&amp;nbsp;goggled&amp;nbsp;every MSDN forum I can find but this &lt;a href=&quot;http://community.dynamics.com/product/f/31/t/76757.aspx&quot;&gt;dynamics community forum&lt;/a&gt; helps me to resolve this issue in a quick easy way.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Upon configuring the &lt;a href=&quot;http://daxjoyie.blogspot.com/2012/12/error-installing-management-reporter.html&quot;&gt;Management Reporter 2012&lt;/a&gt;, it keeps on saying that the user doesn&#39;t have credentials and is not a valid user. See below resolution coming from the &lt;a href=&quot;http://community.dynamics.com/product/f/31/t/76757.aspx&quot;&gt;dynamics community forum&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;A few things for you to check.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1. Verify if you are deploying using the domain\administrator that the &quot;Display Name&quot; in active directory is set, and not blank.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2. Try deploying an app and process service first. If it fails, please close the config console and reopen. Then click on Deployment logs and attach the log or copy/paste into your thread so we can see the error you are hitting.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Management Reporter 2012 does not use IIS, so no website will be created. You should see Windows Services and a SQL Server database.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;i style=&quot;background-color: #fefdfa; color: #575757; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;For more&amp;nbsp;&lt;a href=&quot;http://daxjoyie.blogspot.com/&quot; style=&quot;-webkit-transition: color 0.3s; color: #1fa43c; display: inline; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; outline: none; text-decoration: initial;&quot;&gt;AX tips and tricks&lt;/a&gt;, feel free to browse some of my articles.&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
</content><link rel='replies' type='application/atom+xml' href='http://daxjoyie.blogspot.com/feeds/1447680783558177523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://daxjoyie.blogspot.com/2012/12/error-installing-management-reporter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/1447680783558177523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/1447680783558177523'/><link rel='alternate' type='text/html' href='http://daxjoyie.blogspot.com/2012/12/error-installing-management-reporter.html' title='Error Installing Management Reporter 2012'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11385927042387600047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6625577645294068831.post-3529789544734606924</id><published>2012-09-23T08:23:00.002+08:00</published><updated>2012-09-23T08:25:49.042+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AX 2009"/><category scheme="http://www.blogger.com/atom/ns#" term="AX tips and tricks"/><category scheme="http://www.blogger.com/atom/ns#" term="Invoice"/><category scheme="http://www.blogger.com/atom/ns#" term="Payment"/><category scheme="http://www.blogger.com/atom/ns#" term="Settlement"/><category scheme="http://www.blogger.com/atom/ns#" term="VendSettlement"/><category scheme="http://www.blogger.com/atom/ns#" term="VendTrans"/><title type='text'>Link for Settled Invoices in AX 2009</title><content type='html'>&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;It is easy to create a report of Vendor &lt;a href=&quot;http://daxjoyie.blogspot.com/2012/09/link-for-settled-invoices-in-ax-2009.html&quot;&gt;Invoices &lt;/a&gt;with particular Payments done if this transaction is posted. You&#39;ll gonna use &lt;b&gt;LastSettlementVoucher&lt;/b&gt; in the &lt;b&gt;VendTrans&amp;nbsp;&lt;/b&gt;to pair an &lt;a href=&quot;http://daxjoyie.blogspot.com/2012/09/link-for-settled-invoices-in-ax-2009.html&quot;&gt;invoice &lt;/a&gt;to its payment.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;What if create a report which invoices has been marked for payment but not yet posted? Since the payment is not posted, the &lt;b&gt;VendTrans&amp;nbsp;&lt;/b&gt;has an empty &lt;b&gt;LastSettlementVoucher &lt;/b&gt;field.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In order to do this, there is a table, &lt;b&gt;VendTransOpen&lt;/b&gt;, that stores information which invoices has been marked for &lt;a href=&quot;http://daxjoyie.blogspot.com/2012/09/link-for-settled-invoices-in-ax-2009.html&quot;&gt;settlement&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Here is the code:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Select the reference id of VendTransOpen&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;SELECT VendTransOpen&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; JOIN SpecTrans&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE SpecTrans.RefCompany == VendTransOpen.DataAreaId&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&amp;amp; SpecTrans.RefTableId == VendTransOpen.TableId&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&amp;amp; SpecTrans.RefRecId == VensTransOpen.RecId;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Select the correspoding invoice marked&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;SELECT VendTrans&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WHERE VendTrans.RecId == VendTransOpen.RefRecId;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: #fefdfa; color: #575757; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;For more&amp;nbsp;&lt;a href=&quot;http://daxjoyie.blogspot.com/&quot; style=&quot;color: #1fa43c; text-decoration: none;&quot;&gt;AX tips and tricks&lt;/a&gt;, feel free to browse some of my articles.&lt;/i&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://daxjoyie.blogspot.com/feeds/3529789544734606924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://daxjoyie.blogspot.com/2012/09/link-for-settled-invoices-in-ax-2009.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/3529789544734606924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/3529789544734606924'/><link rel='alternate' type='text/html' href='http://daxjoyie.blogspot.com/2012/09/link-for-settled-invoices-in-ax-2009.html' title='Link for Settled Invoices in AX 2009'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11385927042387600047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6625577645294068831.post-5872501100722295852</id><published>2012-09-23T07:27:00.002+08:00</published><updated>2012-09-23T07:30:34.481+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AX 2009"/><category scheme="http://www.blogger.com/atom/ns#" term="AX tips and tricks"/><category scheme="http://www.blogger.com/atom/ns#" term="field"/><category scheme="http://www.blogger.com/atom/ns#" term="link"/><category scheme="http://www.blogger.com/atom/ns#" term="po"/><category scheme="http://www.blogger.com/atom/ns#" term="purchase order"/><category scheme="http://www.blogger.com/atom/ns#" term="request for quote"/><category scheme="http://www.blogger.com/atom/ns#" term="RFQ"/><title type='text'>Field That Could Link Purchase Order (PO) and Request For Quote (RFQ)</title><content type='html'>&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If you are creating a report and couldn&#39;t find a way to connect this two processes, &lt;a href=&quot;http://daxjoyie.blogspot.com/2012/09/field-that-could-link-purchase-order-po.html&quot;&gt;Purchase Order (PO)&lt;/a&gt; and &lt;a href=&quot;http://daxjoyie.blogspot.com/2012/09/field-that-could-link-purchase-order-po.html&quot;&gt;Request For Quote (RFQ),&lt;/a&gt; then you are in the right blog. Here it is!&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In the PurchTable table where the header of purchase order resides, there is a field &#39;PurchId&#39; which you can link to PurchRFQLine that has a field of &#39;PurchId&#39; also. It generates purchase order number once the item requested is awarded to the vendor.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; line-height: 16.5px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 16.5px;&quot;&gt;&lt;i&gt;&lt;b&gt;PurchTable.PurchId == PurchRFQLine.PurchId&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 16.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 16.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 16.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: #fefdfa; color: #575757; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;For more&amp;nbsp;&lt;a href=&quot;http://daxjoyie.blogspot.com/&quot; style=&quot;color: #1fa43c; text-decoration: none;&quot;&gt;AX tips and tricks&lt;/a&gt;, feel free to browse some of my articles.&lt;/i&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://daxjoyie.blogspot.com/feeds/5872501100722295852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://daxjoyie.blogspot.com/2012/09/field-that-could-link-purchase-order-po.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/5872501100722295852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/5872501100722295852'/><link rel='alternate' type='text/html' href='http://daxjoyie.blogspot.com/2012/09/field-that-could-link-purchase-order-po.html' title='Field That Could Link Purchase Order (PO) and Request For Quote (RFQ)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11385927042387600047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6625577645294068831.post-4839630974443712778</id><published>2012-07-01T21:25:00.002+08:00</published><updated>2012-07-01T21:26:06.535+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AX 2009"/><category scheme="http://www.blogger.com/atom/ns#" term="AX blog"/><category scheme="http://www.blogger.com/atom/ns#" term="AX tips and tricks"/><category scheme="http://www.blogger.com/atom/ns#" term="read/write excel"/><category scheme="http://www.blogger.com/atom/ns#" term="x++"/><title type='text'>Read/Write to Excel using X++</title><content type='html'>&lt;span style=&quot;color: #333333; font-family: Verdana, Geneva, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;Here is the simplest way to &lt;a href=&quot;http://daxjoyie.blogspot.com/2012/07/readwrite-to-excel-using-x.html&quot;&gt;read/write in excel using X++&lt;/a&gt;. You can also view my previous blog about &lt;a href=&quot;http://daxjoyie.blogspot.com/2012/07/create-excel-file-using-x.html&quot;&gt;creating an excel file using X++&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;strong style=&quot;color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//Write to Excel&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 16px;&quot;&gt;File using X++&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;strong style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;static void Write2ExcelFile(Args _args)&lt;br /&gt;{&lt;/strong&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;InventTable inventTable;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;SysExcelApplication application;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;SysExcelWorkbooks workbooks;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;SysExcelWorkbook workbook;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;SysExcelWorksheets worksheets;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;SysExcelWorksheet worksheet;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;SysExcelCells cells;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;SysExcelCell cell;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;int row;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;application = SysExcelApplication::construct();&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;workbooks = application.workbooks();&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;workbook = workbooks.add();&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;worksheets = workbook.worksheets();&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;worksheet = worksheets.itemFromNum(1);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;cells = worksheet.cells();&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;cells.range(&#39;A:A&#39;).numberFormat(&#39;@&#39;);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;cell = cells.item(1,1);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;cell.value(&quot;Item&quot;);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;cell = cells.item(1,2);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;cell.value(&quot;Name&quot;);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;row = 1;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;while select inventTable&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp; &amp;nbsp; row++;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp; &amp;nbsp; cell = cells.item(row, 1);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp; &amp;nbsp; cell.value(inventTable.ItemId);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp; &amp;nbsp; cell = cells.item(row, 2);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp; &amp;nbsp; cell.value(inventTable.ItemName);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;application.visible(true);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;strong style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;}&lt;/strong&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&lt;b&gt;//Read an Excel File using X++&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;strong style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;static void ReadExcel(Args _args)&lt;br /&gt;{&lt;/strong&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;SysExcelApplication application;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;SysExcelWorkbooks workbooks;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;SysExcelWorkbook workbook;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;SysExcelWorksheets worksheets;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;SysExcelWorksheet worksheet;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;SysExcelCells cells;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;COMVariantType type;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;int row;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;ItemId itemid;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;Name name;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;FileName filename;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;application = SysExcelApplication::construct();&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;workbooks = application.workbooks();&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;//specify the file path that you want to read&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;filename = &quot;C:\\item.xls&quot;;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;try&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp; &amp;nbsp; workbooks.open(filename);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;catch (Exception::Error)&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp; &amp;nbsp; throw error(&quot;File cannot be opened.&quot;);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;workbook = workbooks.item(1);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;worksheets = workbook.worksheets();&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;worksheet = worksheets.itemFromNum(1);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;cells = worksheet.cells();&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;do&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp; &amp;nbsp; row++;&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp; &amp;nbsp; itemId = cells.item(row, 1).value().bStr();&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp; &amp;nbsp; name = cells.item(row, 2).value().bStr();&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp; &amp;nbsp; info(strfmt(&#39;%1 - %2&#39;, itemId, name));&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&amp;nbsp; &amp;nbsp; type = cells.item(row+1, 1).value().variantType();&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;while (type != COMVariantType::VT_EMPTY);&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;span style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;application.quit();&lt;/span&gt;&lt;br style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot; /&gt;&lt;strong style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;}&lt;/strong&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;strong style=&quot;color: #333333; font-size: 12px; line-height: 16px;&quot;&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;i style=&quot;background-color: #fefdfa; color: #575757; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;For more&amp;nbsp;&lt;a href=&quot;http://daxjoyie.blogspot.com/&quot; style=&quot;color: #1fa43c; text-decoration: none;&quot;&gt;AX tips and tricks&lt;/a&gt;, feel free to browse some of my articles.&lt;/i&gt;</content><link rel='replies' type='application/atom+xml' href='http://daxjoyie.blogspot.com/feeds/4839630974443712778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://daxjoyie.blogspot.com/2012/07/readwrite-to-excel-using-x.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/4839630974443712778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/4839630974443712778'/><link rel='alternate' type='text/html' href='http://daxjoyie.blogspot.com/2012/07/readwrite-to-excel-using-x.html' title='Read/Write to Excel using X++'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11385927042387600047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6625577645294068831.post-5524627557665375892</id><published>2012-07-01T21:05:00.000+08:00</published><updated>2012-07-01T21:13:49.132+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AX 2009"/><category scheme="http://www.blogger.com/atom/ns#" term="AX tips and tricks"/><category scheme="http://www.blogger.com/atom/ns#" term="createExcel"/><title type='text'>Create an Excel File using X++</title><content type='html'>&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Creating an excel file is essential mostly in data import or export. Microsoft Dynamics AX has a feature to import and export through excel template. But in some cases, you need to create an excel to integrate with other application. Below is an example of &lt;a href=&quot;http://daxjoyie.blogspot.com/2012/07/create-excel-file-using-x.html&quot;&gt;creating an excel file in X++&lt;/a&gt; using an existing table in AX.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;static void ExportToExcel(Args _args)&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    #AviFiles&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    SysOperationProgress    progress = new SysOperationProgress();&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    SysExcelApplication     sysExcelApplication;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    SysExcelWorkbooks       sysExcelWorkBooks;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Filename to which you will be writing your data&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    FileName                fileName = &quot;C:\\Windows\\Temp\\ExportToExcel.xlsx&quot;;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    SysExcelWorkbook        sysExcelWorkBook;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    SysExcelWorkSheets      sysExcelWorkSheets;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    SysExcelWorkSheet       sysExcelWorkSheet;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    SysExcelWorkSheet       sysExcelWorksheetBackOrder;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    SysExcelWorksheet       sysExcelWorkSheetToBeDeleted;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    SysExcelStyles          styles;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    SysExcelStyle           style;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    SysExcelFont            font;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    SysExcelCells           cells;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    int                     row = 1;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    int                     rowBackOrder;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    CustTable               custTable;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    SalesTable              salesTable;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    SalesLine               salesLine;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    boolean                 workSheetAdded = false;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    int                     nbrOfCustomers;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    ;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Initialising progress bar&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    progress.setCaption(&quot;Export To Excel in progress...&quot;);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    progress.setAnimation(#AviTransfer);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Initialisation of some objects&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelApplication = SysExcelApplication::construct();&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Create new workbook&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelWorkBooks = sysExcelApplication.workbooks();&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelWorkBook = sysExcelWorkBooks.add();&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Create new style&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    styles = sysExcelWorkBook.styles();&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    style = styles.add(&quot;Header&quot;);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Set font for this style to bold and color to red&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    font = style.font();&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    font.bold(true);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    font.color(255);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Get worksheets collection&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelWorkSheets = sysExcelWorkbook.worksheets();&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Excel visible on desktop running the job or not?&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelApplication.visible(false);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Newly created Excel files have by default some worksheets&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Delete those worksheets created by default&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    while(sysExcelWorkSheets.count() &amp;gt; 1)&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    {&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        sysExcelWorkSheetToBeDeleted = sysExcelWorkSheets.itemFromNum(2);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        sysExcelWorkSheetToBeDeleted.delete();&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    }&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Add as many worksheets as there are customers&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    select count(RecId) from CustTable;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelWorkSheet = sysExcelWorkSheets.add(null,null,CustTable.RecId);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Add another worksheet&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelWorkSheet = sysExcelWorkSheets.add();&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    //Rename the first worksheet&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelWorkSheet.name(&quot;Customers&quot;);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Make a title row&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // set a value in cell on row 1 column 1&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelWorkSheet.cells().item(1,1).value(&quot;Customer account&quot;);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // set a value in cell on row 1 column 2&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelWorksheet.cells().item(1,2).value(&quot;Name&quot;);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // set the title row in the Header style&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelWorksheet.rows().item(1).style(&quot;Header&quot;);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    while select custTable&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    {&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        progress.setText(strfmt(&quot;Customer %1&quot;, custTable.Name));&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        row++;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        rowBackOrder = 1;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        sysExcelWorksheet.cells().item(row,1).value(custTable.AccountNum);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        sysExcelWorksheet.cells().item(row,2).value(custTable.Name);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        while select salesLine&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        where salesLine.SalesStatus             == salesStatus::Backorder&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        &amp;amp;&amp;amp; salesLine.ConfirmedDlv               &amp;lt; Today()&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        &amp;amp;&amp;amp; salesLine.RemainSalesPhysical        &amp;gt; 0&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        join salesTable&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        where salesTable.SalesId                == salesLine.SalesId &amp;amp;&amp;amp;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        salesTable.CustAccount                  == custTable.AccountNum&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        {&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;            if(!workSheetAdded)&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;            {&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                // Use the next Excel worksheet and rename it&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                sysExcelWorksheetBackOrder = sysExcelWorkSheets.itemFromNum(&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                    row);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                //Name of worksheet can have maximum 31 characters&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                sysExcelWorksheetBackOrder.name(substr(custTable.Name,1,31));&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                workSheetAdded = true;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                // Make a title row&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                // set a value in cell on row 1 column 1&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                sysExcelWorksheetBackOrder.cells().item(1,1).value(&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                    &quot;Ship Date&quot;);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                // set a value in cell on row 1 column 2&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                sysExcelWorksheetBackOrder.cells().item(1,2).value(&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                    &quot;Item Number&quot;);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                // set a value in cell on row 1 column 3&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                sysExcelWorksheetBackOrder.cells().item(1,3).value(&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                    &quot;Item Name&quot;);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                // set a value in cell on row 1 column 4&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                sysExcelWorksheetBackOrder.cells().item(1,4).value(&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                    &quot;Deliver Remainder&quot;);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                // set the title row in the Header style&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                sysExcelWorksheetBackOrder.rows().item(1).style(&quot;Header&quot;);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;            }&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;            rowBackOrder++;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;            sysExcelWorksheetBackOrder.cells().item(rowBackOrder,1).value(&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                salesLine.ConfirmedDlv);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;            sysExcelWorksheetBackOrder.cells().item(rowBackOrder,2).value(&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                salesLine.ItemId);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;            sysExcelWorksheetBackOrder.cells().item(rowBackOrder,3).value(&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                InventTable::find(salesLine.ItemId).ItemName);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;            sysExcelWorksheetBackOrder.cells().item(rowBackOrder,4).value(&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;                salesLine.RemainSalesPhysical);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        }&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        // Set the column width to autofit&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        sysExcelWorksheetBackOrder.columns().autoFit();&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        // Format the 4th column as Number with 2 decimal places&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        cells = sysExcelWorksheetBackOrder.cells();&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        cells.range(&quot;D2:D99&quot;).numberFormat(&quot;0,00&quot;);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;        workSheetAdded = false;&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    }&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Set the column width to autoFit&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelWorksheet.columns().autoFit();&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Suppress the pop-up window:&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // A file named foo already exists in this location. Do you want to replace it?&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelApplication.displayAlerts(false);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Save the Excel file&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelWorkbook.saveAs(fileName);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelWorkBook.comObject().save();&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelWorkBook.saved(true);&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Make sure you close the Excel application&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // Especially if you run the job without showing Excel on the desktop&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    // (sysExcelApplication.visible(false))&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;    sysExcelApplication.quit();&lt;/span&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;br style=&quot;line-height: 22px; white-space: pre;&quot; /&gt;&lt;span style=&quot;line-height: 22px; white-space: pre;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;For more &lt;a href=&quot;http://daxjoyie.blogspot.com/&quot;&gt;AX tips and tricks&lt;/a&gt;, feel free to browse some of my articles.&lt;/i&gt;</content><link rel='replies' type='application/atom+xml' href='http://daxjoyie.blogspot.com/feeds/5524627557665375892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://daxjoyie.blogspot.com/2012/07/create-excel-file-using-x.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/5524627557665375892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/5524627557665375892'/><link rel='alternate' type='text/html' href='http://daxjoyie.blogspot.com/2012/07/create-excel-file-using-x.html' title='Create an Excel File using X++'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11385927042387600047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6625577645294068831.post-9062126930728272715</id><published>2012-06-09T01:26:00.000+08:00</published><updated>2012-06-09T01:26:05.710+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AX 2009"/><category scheme="http://www.blogger.com/atom/ns#" term="AX blog"/><category scheme="http://www.blogger.com/atom/ns#" term="Fixed Asset"/><title type='text'>How to Transfer Fixed Asset and its Transactions To a New Value Model</title><content type='html'>&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This contains process on how to &lt;a href=&quot;http://daxjoyie.blogspot.com/2012/05/how-to-transfer-fixed-asset-and-its.html&quot;&gt;transfer fixed asset and its transactions to a new value model&lt;/a&gt;. This AX blog will give step by step procedure on how to do it.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Below are the steps:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;1. &lt;span style=&quot;line-height: 17px;&quot;&gt;Create a manual depreciation profile in &lt;b&gt;General Ledger &amp;gt; Setup &amp;gt; Fixed Asset &amp;gt; Depreciation Profile&lt;/b&gt;. This is a sample depreciation in this process.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;2. Attached the depreciation profile to a value model&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;3. In the &lt;b&gt;General tab&lt;/b&gt;, ensure that the &quot;&lt;i&gt;Allow net book value higher than acquisition cost&lt;/i&gt;&quot; and &quot;&lt;i&gt;Allow negative net book value&lt;/i&gt;&quot;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;br /&gt;4. Create an asset group that will carry the depreciation profile in&amp;nbsp;&lt;/span&gt;
&lt;b style=&quot;line-height: 17px;&quot;&gt;General Ledger &amp;gt; Setup &amp;gt; Fixed Asset &amp;gt; Fixed Asset Group&lt;/b&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;.&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;5. Click the Value Model button and attached the following value model created above.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;6.&amp;nbsp;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;Proceed with FA transactions such as Acquisition
and depreciation involving the created Value Model&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;When an asset is subject for transfer to other company in the middle of the depreciation, the asset must have a different depreciation profile.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;These are the things to be setup when an asset is&amp;nbsp;transferred:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;1. Select the fixed asset created and click the &lt;b&gt;Value Model&lt;/b&gt; button.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;2. Add the Value Model that carries the remaining life of the asset. For example, if the asset has a six years of life and transferred in the third year, the depreciation profile of the asset must be three years only.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;3.&amp;nbsp;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;Use the &lt;b&gt;Split Fixed Asset&lt;/b&gt; function&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;o:p&gt;4.&amp;nbsp;&lt;/o:p&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;Click &lt;b&gt;Functions button &amp;gt; Split Fixed Asset&lt;/b&gt;
and fill in the following:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To
fixed asset : USE THE SAME FIXED ASSET NUMBER&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To
value model : USE THE NEW VALUE MODEL WHICH HAS REMAINING LIFE&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Percent
: INDICATE 100&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Name
: USE THE FA TRANSFER JOURNAL&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;5.&amp;nbsp;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;An infolog would appear stating that the
transactions has been transferred.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;6.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;Go to &lt;b&gt;General Ledger &amp;gt; Journals &amp;gt; Fixed
Assets&lt;/b&gt; to retrieve the created journals.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;7.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;The Journals that were created are the
Acquisition and the accumulated depreciation that will be transferred to the
new value model&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;8. Proceed on Posting the Journal&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;9.&amp;nbsp;&lt;b&gt;General Ledger &amp;gt; Common Forms &amp;gt; Fixed
Asset Details&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;10. Select the Fixed Asset&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;11. Click the &lt;b&gt;Value Model &lt;/b&gt;button&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;12. Select the original value model&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;13. Click&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;the &lt;b&gt;Inquiry button &amp;gt; Balances&lt;/b&gt;.&lt;/span&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;Note that the Net Book Value is now Zero.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;14. Close the form.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;15. Select the newly created value model then click &lt;b&gt;Inquiry button &amp;gt; Balances&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;16. Note that the selected value model has a netbook value.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;17. Close the form then select the old value model&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;18. Set the value model status to &quot;&lt;i&gt;Closed&lt;/i&gt;&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;19.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;Click &lt;b&gt;Save&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;20. The next time you do a transaction on the fixed
asset, it will use the new value model.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For more &lt;a href=&quot;http://daxjoyie.blogspot.com/&quot;&gt;AX tips and tricks&lt;/a&gt;, feel free to browse some of my articles.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daxjoyie.blogspot.com/feeds/9062126930728272715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://daxjoyie.blogspot.com/2012/05/how-to-transfer-fixed-asset-and-its.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/9062126930728272715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/9062126930728272715'/><link rel='alternate' type='text/html' href='http://daxjoyie.blogspot.com/2012/05/how-to-transfer-fixed-asset-and-its.html' title='How to Transfer Fixed Asset and its Transactions To a New Value Model'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11385927042387600047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6625577645294068831.post-2398047110037348780</id><published>2012-06-09T00:10:00.000+08:00</published><updated>2012-06-09T01:17:12.962+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AX 2009"/><category scheme="http://www.blogger.com/atom/ns#" term="AX blog"/><category scheme="http://www.blogger.com/atom/ns#" term="AX tips and tricks"/><title type='text'>Get Current Company in AX 2009</title><content type='html'>&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Below is the example on how to &lt;a href=&quot;http://daxjoyie.blogspot.com/2012/05/code-for-getting-current-company-in-ax.html&quot;&gt;get current company&lt;/a&gt; in AX 2009.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In AOT &amp;gt; Jobs, paste the following code:&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;static void curExtExample(Args _arg)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; str curCompany;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; // Sets&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;curCompany&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;to the extension of the current company.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;curCompany= curExt();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; print &quot;Current extension is &quot; +&amp;nbsp;curCompany;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; pause;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For more &lt;a href=&quot;http://daxjoyie.blogspot.com/&quot;&gt;AX&amp;nbsp;tips and tricks&lt;/a&gt;, feel free to browse some of my articles.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daxjoyie.blogspot.com/feeds/2398047110037348780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://daxjoyie.blogspot.com/2012/05/code-for-getting-current-company-in-ax.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/2398047110037348780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/2398047110037348780'/><link rel='alternate' type='text/html' href='http://daxjoyie.blogspot.com/2012/05/code-for-getting-current-company-in-ax.html' title='Get Current Company in AX 2009'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11385927042387600047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6625577645294068831.post-5435987891531622272</id><published>2012-05-28T01:50:00.000+08:00</published><updated>2012-06-09T01:21:32.866+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AX 2009"/><category scheme="http://www.blogger.com/atom/ns#" term="AX blog"/><category scheme="http://www.blogger.com/atom/ns#" term="AX tips and tricks"/><category scheme="http://www.blogger.com/atom/ns#" term="posting layer"/><title type='text'>Hide Transaction Using Posting Layer</title><content type='html'>&lt;h2&gt;













&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;POSTING LAYER&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;
This AX blog consist of procedure and sample on how to &lt;a href=&quot;http://daxjoyie.blogspot.com/2012/05/hiding-transaction-using-posting-layer.html&quot;&gt;hide transactions using posting layer&lt;/a&gt; in AX 2009. Not really hiding but for internal purposes use for detailed reports and so on.&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://dynamicsuser.net/members/kjoyie88/default.aspx&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;

Here is the guidelines.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;a href=&quot;http://dynamicsuser.net/members/kjoyie88/default.aspx&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a href=&quot;http://dynamicsuser.net/members/kjoyie88/default.aspx&quot;&gt;
&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;1. Go to &lt;b&gt;General Ledger &amp;gt; Setup &amp;gt; Journals &amp;gt; Journal Names&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a href=&quot;http://dynamicsuser.net/members/kjoyie88/default.aspx&quot;&gt;
&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;a href=&quot;http://dynamicsuser.net/members/kjoyie88/default.aspx&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a href=&quot;http://dynamicsuser.net/members/kjoyie88/default.aspx&quot;&gt;
&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;2. In the &lt;b&gt;General Tab &amp;gt; Posting Section&lt;/b&gt;, select &lt;b&gt;Posting Layer&lt;/b&gt; as &lt;b&gt;Operations&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a href=&quot;http://dynamicsuser.net/members/kjoyie88/default.aspx&quot;&gt;
&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;a href=&quot;http://dynamicsuser.net/members/kjoyie88/default.aspx&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a href=&quot;http://dynamicsuser.net/members/kjoyie88/default.aspx&quot;&gt;
&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://dynamicsuser.net/members/kjoyie88/default.aspx&quot;&gt;
&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTYM-yR5W3W8woFel6XpLdnjlQx01ybN4PYrKNta6afB_F1shZkOTsl8FWDwiE0kPBQYKJTNcCmXOxcKiYPLnGljA0LABKeXdIuF4mU-dKHky8BLVx5a-o43aBXfN6mCCOZeaqbRi5NHw/s1600/postinglayer.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTYM-yR5W3W8woFel6XpLdnjlQx01ybN4PYrKNta6afB_F1shZkOTsl8FWDwiE0kPBQYKJTNcCmXOxcKiYPLnGljA0LABKeXdIuF4mU-dKHky8BLVx5a-o43aBXfN6mCCOZeaqbRi5NHw/s400/postinglayer.png&quot; title=&quot;Journal Names&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;You can now generate trial balance by indicating only transactions posted in Operation Layer in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;General
Ledger &amp;gt; Reports &amp;gt; Transactions &amp;gt; Periodic &amp;gt; Trial Balance&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 11pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 11pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 17px;&quot;&gt;&lt;i&gt;For more &lt;a href=&quot;http://daxjoyie.blogspot.com/&quot;&gt;AX tips and tricks&lt;/a&gt;, feel free to browse some of my articles.&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://daxjoyie.blogspot.com/feeds/5435987891531622272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://daxjoyie.blogspot.com/2012/05/hiding-transaction-using-posting-layer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/5435987891531622272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/5435987891531622272'/><link rel='alternate' type='text/html' href='http://daxjoyie.blogspot.com/2012/05/hiding-transaction-using-posting-layer.html' title='Hide Transaction Using Posting Layer'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11385927042387600047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTYM-yR5W3W8woFel6XpLdnjlQx01ybN4PYrKNta6afB_F1shZkOTsl8FWDwiE0kPBQYKJTNcCmXOxcKiYPLnGljA0LABKeXdIuF4mU-dKHky8BLVx5a-o43aBXfN6mCCOZeaqbRi5NHw/s72-c/postinglayer.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6625577645294068831.post-3261931752132315017</id><published>2012-05-28T01:48:00.000+08:00</published><updated>2012-06-09T01:22:37.083+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AX 2009"/><category scheme="http://www.blogger.com/atom/ns#" term="AX blog"/><category scheme="http://www.blogger.com/atom/ns#" term="AX tips and tricks"/><category scheme="http://www.blogger.com/atom/ns#" term="purchase order"/><category scheme="http://www.blogger.com/atom/ns#" term="RFQ"/><title type='text'>Related Field in RFQ and PO in AX 2009</title><content type='html'>&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I&#39;ve been given a task to create a report listing all purchase order created in purchase requisition module of AX 2009. Thank God I&#39;ve found an AX blog that points a field that can a link between the two tables. For inventory items, it is so hard to find relating tables and field.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In the &lt;b&gt;PurchRFQLine Table&lt;/b&gt;, there is a field &lt;b&gt;PurchId&lt;/b&gt; that you can use in joining with &lt;b&gt;PurchTable&lt;/b&gt; with the same field as &lt;b&gt;PurchId&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For more &lt;a href=&quot;http://daxjoyie.blogspot.com/&quot;&gt;AX tips and tricks&lt;/a&gt;, feel free to browse some of my articles.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://daxjoyie.blogspot.com/feeds/3261931752132315017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://daxjoyie.blogspot.com/2012/05/related-field-in-rfq-and-po-in-ax-2009.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/3261931752132315017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/3261931752132315017'/><link rel='alternate' type='text/html' href='http://daxjoyie.blogspot.com/2012/05/related-field-in-rfq-and-po-in-ax-2009.html' title='Related Field in RFQ and PO in AX 2009'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11385927042387600047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6625577645294068831.post-6617225183338771631</id><published>2012-05-28T01:47:00.000+08:00</published><updated>2012-06-09T01:24:27.920+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AX 2009"/><category scheme="http://www.blogger.com/atom/ns#" term="AX blog"/><category scheme="http://www.blogger.com/atom/ns#" term="Intercompany"/><title type='text'>Error in Intercompany Bank Transaction</title><content type='html'>&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We have a problem in one of our client in terms of intercompany bank transactions. This is so particular that we&#39;ve been crazy for weeks solving this problem. The error is this, &quot;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;i style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://daxjoyie.blogspot.com/2012/05/error-in-intercompany-bank-transaction.html&quot;&gt;Account number for transaction type Bank does not exist&lt;/a&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white;&quot;&gt;.&quot; We thought this is a license issue but it is not! I created this &lt;/span&gt;AX blog&lt;span style=&quot;background-color: white;&quot;&gt; because of this. This was very helpful.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; text-align: left;&quot;&gt;When we check the Bank details, the ledger account is already setup but the error still exist.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;This is how our &lt;/span&gt;Microsoft partner&lt;span style=&quot;background-color: white;&quot;&gt; did. They have identified that the Extended Data Type for Ledger Account is about 20 characters and for the Bank Account Id is 10 characters. The application cannot read the ledger account of the Bank Account that is why AX 2009 is throwing an error. To resolve this, they adjust the character of Bank Account Id same as to the Ledger Account. After this, the transaction can be now posted.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For more &lt;a href=&quot;http://daxjoyie.blogspot.com/&quot;&gt;AX tips and tricks&lt;/a&gt;, feel free to browse some of my articles.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daxjoyie.blogspot.com/feeds/6617225183338771631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://daxjoyie.blogspot.com/2012/05/error-in-intercompany-bank-transaction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/6617225183338771631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6625577645294068831/posts/default/6617225183338771631'/><link rel='alternate' type='text/html' href='http://daxjoyie.blogspot.com/2012/05/error-in-intercompany-bank-transaction.html' title='Error in Intercompany Bank Transaction'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11385927042387600047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>