<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>NAV : Functional Tips &#38; Tricks</title>
	<link>http://mibuso.com/blogs/ssingla</link>
	<description>Just another Mibuso.com weblog</description>
	<pubDate>Tue, 01 Nov 2011 04:43:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>Replace NAS with SQL Jobs : Extension</title>
		<link>http://mibuso.com/blogs/ssingla/2011/11/01/replace-nas-with-sql-jobs-extension/</link>
		<comments>http://mibuso.com/blogs/ssingla/2011/11/01/replace-nas-with-sql-jobs-extension/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 04:43:56 +0000</pubDate>
		<dc:creator>ssingla</dc:creator>
		
		<category><![CDATA[1]]></category>

		<category><![CDATA[NAV]]></category>

		<category><![CDATA[SQL CLR]]></category>

		<category><![CDATA[Webservices]]></category>

		<guid isPermaLink="false">http://mibuso.com/blogs/ssingla/2011/11/01/replace-nas-with-sql-jobs-extension/</guid>
		<description><![CDATA[ Thanks to Rashed Amini for his great post here. He gave the idea to extend SQL to call NAV web-services. For a specific integration project my team gave the standard NAS/ADO.NET solution to read data and process in NAV but I had a different idea.  Being a technical novice I am unable to understand how [...]]]></description>
			<content:encoded><![CDATA[<p><font face="Times New Roman"> </font><font face="Calibri">Thanks to Rashed Amini for his great post </font><a href="http://community.dynamics.com/product/nav/navtechnical/b/navrashedamini/archive/2009/11/14/replacing-nas-with-sql-jobs-and-nav-web-service.aspx"><font face="Calibri" color="#0000ff">here</font></a><font face="Calibri">. He gave the idea to extend SQL to call NAV web-services. For a specific integration project my team gave the standard NAS/ADO.NET solution to read data and process in NAV but I had a different idea.  Being a technical novice I am unable to understand how xml works therefore wanted to use NAV webservice so my code is small and clean. As Rashed mentioned there were lot of bottlenecks in using webservices with SQL CLR and few of them are:</font></p>
<p><font face="Times New Roman">  </font><font face="Calibri">a)</font>      <font face="Calibri">Using web services with SQL CLR is tedious task due to Dynamics XML Serialization assembly, which requires manual handling of second dll file.</font></p>
<p><font face="Times New Roman">  </font><font face="Calibri">b)</font>      <font face="Calibri">SQL Server Agent does not pass Windows user credential.</font></p>
<p><font face="Calibri">In addition Rashed’s example used codeunit while I wanted to use page web service. Let me give the scenario:</font></p>
<p><font face="Times New Roman"> </font><font face="Calibri">- </font><font face="Calibri">A third party application is writing customer master data in non NAV database (created specifically for integration). SQL Job should then be used to periodically call the stored procedure with primary key of the table as parameter.  Stored procedure should create the record in NAV. </font></p>
<p><font face="Calibri">Here is what I did:</font></p>
<p><font face="Calibri">I did the usual things to make it work like changing the “CustomSettings” file  to have NTLM thrue</font></p>
<p><font face="Times New Roman">  </font><font face="Calibri"><strong>&lt;add key=&#8221;WebServicesUseNTLMAuthentication&#8221; value=&#8221;true&#8221;&gt;&lt;/add&gt;</strong>  </font></p>
<p><font face="Times New Roman">  </font><font face="Calibri">and restarted the NAV services. </font></p>
<p><font face="Times New Roman"> </font><font face="Calibri">Then I published my webservice. I am not going to detail that as most people know how to do it. Remeber never use &#8220;localhost&#8221; in webservice link. Normal C# application works but SQL does not like it. The problem happens when you are configuring everything on 1 system (wasted 3 days to figure that out).</font></p>
<p><font face="Times New Roman"> </font><font face="Calibri">Then I enabled CLR in SQL with the following script:</font></p>
<p><strong>sp_configure &#8217;show advanced options&#8217;, 1;</strong></p>
<p><strong> </strong><strong>GO</strong></p>
<p><strong> </strong><strong>RECONFIGURE;</strong></p>
<p><strong> </strong><strong><font face="Times New Roman">G</font>O</strong></p>
<p><strong> </strong><strong>sp_configure &#8216;clr enabled&#8217;, 1;</strong></p>
<p><strong> </strong><strong>GO</strong></p>
<p><strong> </strong><strong>RECONFIGURE;</strong></p>
<p><strong> </strong><strong>GO</strong></p>
<p><strong> </strong><font face="Calibri">Open Visual Studio (in my case VS2008 Professional Edition). Create a new SQL server project and give name “NAVSQLCLR”. A dialog will open up and ask for connection. Select the database (in my case it is NAV_Test).</font></p>
<p><font face="Calibri">Add web reference for our webservice and name it “CustomerWS”. Then Add New Item “Stored Procedure1.cs” and write your code.  Mine is as follow</font></p>
<p>using System;</p>
<p>using System.Data;</p>
<p>using System.Data.SqlClient;</p>
<p>using System.Data.SqlTypes;</p>
<p>using Microsoft.SqlServer.Server;</p>
<p>using System.Security;</p>
<p>using System.Net;</p>
<p>using System.Transactions;</p>
<p>using NAVSQLCLR.CustomerWS;</p>
<p>public partial class StoredProcedures</p>
<p>{</p>
<p>[Microsoft.SqlServer.Server.SqlProcedure]</p>
<p><font face="Times New Roman">  </font></p>
<p>public static void StoredProcedure1(int VendInt)</p>
<p><font face="Times New Roman">  </font></p>
<p>{</p>
<p>using (SqlConnection sc = new SqlConnection(&#8221;context connection = true&#8221;))</p>
<p>{</p>
<p><font face="Times New Roman">  </font>try</p>
<p><font face="Times New Roman">  </font>{</p>
<p><font face="Times New Roman">  </font>sc.Open();</p>
<p><font face="Times New Roman">  </font>SqlCommand sqlcomm = new SqlCommand(&#8221;SELECT</p>
<p><font face="Times New Roman">  </font>[VendorCode],[Name],[Address] FROM</p>
<p><font face="Times New Roman">  </font>[IntegrationDb].[dbo].[Common_Vendor] AS CV WHERE</p>
<p><font face="Times New Roman">  </font>CV.VendorCode = &#8221; + VendInt, sc);</p>
<p><font face="Times New Roman">  </font>SqlDataReader dr = sqlcomm.ExecuteReader();</p>
<p><font face="Times New Roman">  </font>while (dr.Read())</p>
<p><font face="Times New Roman">  </font>{</p>
<p><font face="Times New Roman">  </font>string name = dr.GetString(1);</p>
<p><font face="Times New Roman">  </font>string addr = dr.GetString(2);</p>
<p><font face="Times New Roman">  </font>Customer_Service custservice = new Customer_Service();</p>
<p><font face="Times New Roman">  </font>custservice.Credentials = new</p>
<p><font face="Times New Roman">  </font>NetworkCredential(&#8221;administrator&#8221;, &#8220;Savita1&#8243;, &#8220;ssd&#8221;);</p>
<p><font face="Times New Roman">  </font>Customer cust = new Customer();</p>
<p><font face="Times New Roman">  </font>cust.Name = name;</p>
<p><font face="Times New Roman">  </font>int strlen = addr.Length;</p>
<p><font face="Times New Roman">  </font>if (strlen &lt;= 50)</p>
<p><font face="Times New Roman">  </font>{</p>
<p><font face="Times New Roman">  </font>cust.Address = addr.Substring(0, strlen);</p>
<p><font face="Times New Roman">  </font>cust.Address_2 = &#8220;&#8221;;</p>
<p><font face="Times New Roman">  </font>}</p>
<p><font face="Times New Roman">  </font>if (strlen &gt; 50 &amp;&amp; strlen &lt;= 100)</p>
<p><font face="Times New Roman">  </font>{</p>
<p><font face="Times New Roman">  </font>cust.Address = addr.Substring(0, 50);</p>
<p><font face="Times New Roman">  </font>cust.Address_2 = addr.Substring(50, strlen - 50);</p>
<p><font face="Times New Roman">  </font>}</p>
<p><font face="Times New Roman">  </font>if (strlen &gt; 100)</p>
<p><font face="Times New Roman">  </font>{</p>
<p><font face="Times New Roman">  </font>cust.Address = addr.Substring(0, 50);</p>
<p><font face="Times New Roman">  </font>cust.Address_2 = addr.Substring(50, 50);</p>
<p><font face="Times New Roman">  </font>}</p>
<p><font face="Times New Roman">  </font>custservice.Create(ref cust);</p>
<p><font face="Times New Roman">  </font>}</p>
<p><font face="Times New Roman">  </font>}</p>
<p><font face="Times New Roman">  </font>finally</p>
<p><font face="Times New Roman">  </font>{</p>
<p><font face="Times New Roman">  </font>sc.Close();</p>
<p><font face="Times New Roman">  </font>}</p>
<p><font face="Times New Roman">  </font>}</p>
<p><font face="Times New Roman">  </font>}</p>
<p><font face="Times New Roman">  </font>}</p>
<p><font face="Times New Roman">  </font><font face="Calibri">Now I cannot write a hardcoded user credentials and password so I found another solution and added </font></p>
<p><font face="Times New Roman">    WindowsImpersonationContext ctx = null;</font></p>
<p><font face="Times New Roman">  WindowsIdentity id = SqlContext.WindowsIdentity;</font></p>
<p><font face="Times New Roman">ctx = id.Impersonate();</p>
<p>Customer_Service custservice = new Customer_Service();</p>
<p>custservice.Credentials = CredentialCache.DefaultNetworkCredentials;</p>
<p></font><font face="Calibri"> I then deployed the code. Inserted a record in common database and called the stored procedure. I ran into problem and have to change my assembly database permission level to “External Access”. Now another problem came </font></p>
<p>The assembly is authorized when either of the following is true: the database owner (DBO) has EXTERNAL ACCESS ASSEMBLY permission and the database has the TRUSTWORTHY database property on; or the assembly is signed with a certificate or an asymmetric key that has a corresponding login with EXTERNAL ACCESS ASSEMBLY permission.</p>
<p><font face="Calibri">I didn’t want to set database Trustworthy and looked for other solution. I signed my assembly and provided a strong name key “NAVSQLCLRkey.pfx”. Then I opened SSMS and wrote the following script.</font></p>
<p><strong>USE master</strong></p>
<p><strong> </strong><strong>GO</strong></p>
<p><strong> </strong><strong>CREATE ASYMMETRIC KEY NAVSQLCLRkey FROM EXECUTABLE FILE =</strong></p>
<p><strong> </strong><strong><font face="Times New Roman"> </font>&#8216;C:\Users\Administrator\Desktop\NAVSQLCLR\NAVSQLCLR\bin\Debug\NAVSQLCLR.dll&#8217;</strong></p>
<p><strong> </strong><strong><font face="Times New Roman">  C</font>REATE LOGIN NAVSQLCLRLogin FROM ASYMMETRIC KEY NAVSQLCLRkey</strong></p>
<p><strong> </strong><strong><font face="Times New Roman">  </font>GRANT EXTERNAL ACCESS ASSEMBLY TO NAVSQLCLRLogin</strong></p>
<p><strong> </strong><strong><font face="Times New Roman">  </font>GO</strong></p>
<p><strong> </strong><font face="Calibri">To eliminate the need of manual handling of dll files I then created 2 file with .sql extension in notepad “postdeployscript.sql” &amp; “predeployscript.sql” and added in my solution. </font></p>
<p><font face="Calibri">In the “predeployscript.sql” add the following code:</font></p>
<p><strong> </strong><strong>IF EXISTS (SELECT [name] FROM sys.assemblies WHERE [name] = N&#8217;NAVSQLCLRXML&#8217;)DROP ASSEMBLY NAVSQLCLRXML with NO DEPENDENTS;</strong></p>
<p><font face="Calibri">In the “postdeployscript.sql” add the following code:</font></p>
<p><strong>CREATE ASSEMBLY NAVSQLCLRXML from</strong></p>
<p><strong> </strong><strong>&#8216;C:\Users\Administrator\Desktop\NAVSQLCLR\NAVSQLCLR\bin\Debug\NAVSQLCLR.XmlSerializers.dll&#8217;</strong></p>
<p><strong> </strong><font face="Calibri">I again deployed the solution, executed the stored procedure and got the following error:</font></p>
<p>Step into: Stepping over non-user code &#8216;NAVSQLCLR.CustomerWS.Customer_Service.Create&#8217;</p>
<p>A first chance exception of type &#8216;System.InvalidOperationException&#8217; occurred in System.Xml.dll</p>
<p>.NET Framework execution was aborted. The UDP/UDF/CLR type did not revert thread token.</p>
<p><font face="Calibri">The error confused me and I decided to debug it. While debugging after the exception occurred I found the real culprit </font></p>
<p>+             InnerException       {&#8221;That assembly does not allow partially trusted callers.&#8221;}       System.Exception {System.Security.SecurityException}</p>
<p><font face="Calibri">I modified “AssemblyInfo.cs” to include 2 lines</font></p>
<p><strong>Using System.Security; and</strong></p>
<p><strong> </strong><strong>[assembly: AllowPartiallyTrustedCallers].</strong></p>
<p><strong> </strong>I started again to deploy and execute and it worked.</p>
<p>Now the SQL Agent job. I inserted some 100 records in the common table and create the job scheduler as below</p>
<p><strong>DECLARE @vendparameter int</strong></p>
<p><strong> </strong><strong>DECLARE vendcursor CURSOR FOR</strong></p>
<p><strong> </strong><strong>SELECT CV.VendorCode FROM IntegrationDb.DBO.Common_Vendor AS CV</strong></p>
<p><strong> </strong><strong>OPEN vendcursor</strong></p>
<p><strong> </strong><strong>FETCH FROM vendcursor into @vendparameter</strong></p>
<p><strong> </strong><strong>WHILE (@@FETCH_STATUS =0)</strong></p>
<p><strong> </strong><strong>BEGIN</strong></p>
<p><strong> </strong><strong>EXECUTE [NAV_Test].[dbo].[StoredProcedure1] @vendparameter</strong></p>
<p><strong> </strong><strong>FETCH NEXT FROM vendcursor into @vendparameter</strong></p>
<p><strong> </strong><strong>END</strong></p>
<p><strong> </strong><strong>CLOSE vendcursor</strong></p>
<p><strong> </strong><strong>DEALLOCATE vendcursor</strong></p>
<p><strong> </strong>This is not the best code but for example I will live with it. The job didn&#8217;t run as expected and then I changed the Job owner to some user who is not “sysadmin” and SQL agent service log-on account was changed to windows login and it started working.</p>
<p><font face="Times New Roman">  </font></p>
]]></content:encoded>
			<wfw:commentRss>http://mibuso.com/blogs/ssingla/2011/11/01/replace-nas-with-sql-jobs-extension/feed/</wfw:commentRss>
		</item>
		<item>
		<title>NAV Links Indian Version</title>
		<link>http://mibuso.com/blogs/ssingla/2010/08/19/nav-links-indian-version/</link>
		<comments>http://mibuso.com/blogs/ssingla/2010/08/19/nav-links-indian-version/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 08:16:41 +0000</pubDate>
		<dc:creator>ssingla</dc:creator>
		
		<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://mibuso.com/blogs/ssingla/2010/08/19/nav-links-indian-version/</guid>
		<description><![CDATA[I have been receiving numerous calls from my friends for details of tax supplements for IN version so I decided to put them together. I will be updating the list as and when something new is released. The links will require partner source login to download the material.
NAV 5.0 SP1 
a) TDS With Higher Rate :
 https://mbs.microsoft.com/partnersource/support/selfsupport/taxupdates/msd_nav5tdshighrateindia.htm?printpage=false
b) [...]]]></description>
			<content:encoded><![CDATA[<p>I have been receiving numerous calls from my friends for details of tax supplements for IN version so I decided to put them together. I will be updating the list as and when something new is released. The links will require partner source login to download the material.</p>
<p><strong>NAV 5.0 SP1</strong> </p>
<p>a) TDS With Higher Rate :</p>
<p> <a href="https://mbs.microsoft.com/partnersource/support/selfsupport/taxupdates/msd_nav5tdshighrateindia.htm?printpage=false">https://mbs.microsoft.com/partnersource/support/selfsupport/taxupdates/msd_nav5tdshighrateindia.htm?printpage=false</a></p>
<p align="left">b) New TDS 16 A &amp; TCS 27 D Certificates  :</p>
<p> <a href="https://mbs.microsoft.com/partnersource/support/selfsupport/taxupdates/msdnav5sp1tdstcs1627_india.htm?printpage=false">https://mbs.microsoft.com/partnersource/support/selfsupport/taxupdates/msdnav5sp1tdstcs1627_india.htm?printpage=false</a></p>
<p>c) PAN Status Change As Applicable for Vendor Details for IN Microsoft Dynamics NAV 2009 SP1</p>
<p><a href="https://mbs.microsoft.com/partnersource/support/selfsupport/servicepacks/msdnav50sp1_panstatus.htm?printpage=false">https://mbs.microsoft.com/partnersource/support/selfsupport/servicepacks/msdnav50sp1_panstatus.htm?printpage=false</a></p>
<p>d) Microsoft Dynamics NAV 5.0 SP1 Hot fix 2 </p>
<p><a href="https://mbs.microsoft.com/partnersource/downloads/hotfixes/nav+5.0+sp1+hot+fix+2.htm?printpage=false">https://mbs.microsoft.com/partnersource/downloads/hotfixes/nav+5.0+sp1+hot+fix+2.htm?printpage=false</a></p>
<p>e) IN NAV 5.0 SP1 HF1 </p>
<p><a href="https://mbs.microsoft.com/partnersource/downloads/hotfixes/innav50sp1hf1.htm?printpage=false">https://mbs.microsoft.com/partnersource/downloads/hotfixes/innav50sp1hf1.htm?printpage=false</a></p>
<p>f) Platform Update 2 for Microsoft Dynamics NAV 5.0 SP1</p>
<p><a href="https://mbs.microsoft.com/partnersource/support/selfsupport/hotfixes/nav500sp1update2.htm?printpage=false">https://mbs.microsoft.com/partnersource/support/selfsupport/hotfixes/nav500sp1update2.htm?printpage=false</a></p>
<p><strong><em>NAV 2009</em></strong></p>
<p>a) Product Download for NAV 2009</p>
<p><a href="https://mbs.microsoft.com/partnersource/downloads/releases/microsoftdynamicsnav2009.htm?printpage=false">https://mbs.microsoft.com/partnersource/downloads/releases/microsoftdynamicsnav2009.htm?printpage=false</a></p>
<p><strong><em>NAV 2009 SP1</em></strong></p>
<p>a) TDS With Higher Rate</p>
<p><a href="https://mbs.microsoft.com/partnersource/support/selfsupport/taxupdates/msd_nav2009tdshighrateindia.htm?printpage=false">https://mbs.microsoft.com/partnersource/support/selfsupport/taxupdates/msd_nav2009tdshighrateindia.htm?printpage=false</a></p>
<p>b) New TDS 16 A &amp; TCS 27 D Certificates</p>
<p><a href="https://mbs.microsoft.com/partnersource/support/selfsupport/taxupdates/msdnav2009sp1tdstcs1627_india.htm?printpage=false">https://mbs.microsoft.com/partnersource/support/selfsupport/taxupdates/msdnav2009sp1tdstcs1627_india.htm?printpage=false</a></p>
<p>c) Tax calculation in Service Management Module</p>
<p><a href="https://mbs.microsoft.com/partnersource/support/selfsupport/taxupdates/msdnav2009sp1taxation_india.htm?printpage=false">https://mbs.microsoft.com/partnersource/support/selfsupport/taxupdates/msdnav2009sp1taxation_india.htm?printpage=false</a></p>
<p>d) New TDS/TCS e-filling formats</p>
<p><a href="https://mbs.microsoft.com/partnersource/support/selfsupport/taxupdates/msdnav2009sp1efiling_india.htm?printpage=false">https://mbs.microsoft.com/partnersource/support/selfsupport/taxupdates/msdnav2009sp1efiling_india.htm?printpage=false</a></p>
<p>e) Feature Pack 1</p>
<p><a href="https://mbs.microsoft.com/partnersource/support/selfsupport/taxupdates/msd_nav2009sp1india.htm?printpage=false">https://mbs.microsoft.com/partnersource/support/selfsupport/taxupdates/msd_nav2009sp1india.htm?printpage=false</a></p>
<p>f) PAN Status Change As Applicable for Vendor Details for IN Microsoft Dynamics NAV 2009 SP1</p>
<p><a href="https://mbs.microsoft.com/partnersource/support/selfsupport/servicepacks/msdnav2009sp1_panstatus.htm?printpage=false">https://mbs.microsoft.com/partnersource/support/selfsupport/servicepacks/msdnav2009sp1_panstatus.htm?printpage=false</a></p>
<p>g) Microsoft Dynamics NAV 2009 Service Pack 1</p>
<p><a href="https://mbs.microsoft.com/partnersource/downloads/releases/microsoftdynamicsnav2009sp1.htm?printpage=false">https://mbs.microsoft.com/partnersource/downloads/releases/microsoftdynamicsnav2009sp1.htm?printpage=false</a></p>
<p><strong><em>Misc.</em></strong></p>
<p>a) Application Test Toolset for Microsoft Dynamics NAV 2009 SP1</p>
<p><a href="https://mbs.microsoft.com/partnersource/deployment/resources/supplements/mdnavapplicationtest.htm?printpage=false">https://mbs.microsoft.com/partnersource/deployment/resources/supplements/mdnavapplicationtest.htm?printpage=false</a></p>
<p>b) User Rights Setup for Microsoft Dynamics NAV</p>
<p><a href="https://mbs.microsoft.com/partnersource/downloads/supplements/userrightsetupformicrosoftdynamicsnav.htm?printpage=false">https://mbs.microsoft.com/partnersource/downloads/supplements/userrightsetupformicrosoftdynamicsnav.htm?printpage=false</a></p>
<p>c) Best Practices Analyzer for Microsoft Dynamics NAV 2009 SP1</p>
<p><u><font color="#800080"><a href="https://mbs.microsoft.com/partnersource/deployment/resources/supplements/bestpracticesanalyzernav2009.htm?printpage=false">https://mbs.microsoft.com/partnersource/deployment/resources/supplements/bestpracticesanalyzernav2009.htm?printpage=false</a></font></u><a href="https://mbs.microsoft.com/partnersource/deployment/resources/supplements/bestpracticesanalyzernav2009.htm?printpage=false"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://mibuso.com/blogs/ssingla/2010/08/19/nav-links-indian-version/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Excise</title>
		<link>http://mibuso.com/blogs/ssingla/2010/02/25/excise/</link>
		<comments>http://mibuso.com/blogs/ssingla/2010/02/25/excise/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 15:56:40 +0000</pubDate>
		<dc:creator>ssingla</dc:creator>
		
		<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://mibuso.com/blogs/ssingla/2010/02/25/excise/</guid>
		<description><![CDATA[Microsoft provided some very good documentation with hot-fixes of NAV 4.0 SP3 and release it within the hot-fixes. With NAV 2009 and NAV 2009 SP1 no documentation was included and they can be downloaded from Partner Source or Customer Source. That had led me to write a few details on some common functionality so everybody [...]]]></description>
			<content:encoded><![CDATA[<p><font face="Calibri">Microsoft provided some very good documentation with hot-fixes of NAV 4.0 SP3 and release it within the hot-fixes. With NAV 2009 and NAV 2009 SP1 no documentation was included and they can be downloaded from Partner Source or Customer Source. That had led me to write a few details on some common functionality so everybody can use them. I will start with Excise Settlement procedure. </font></p>
<p><font face="Calibri">Microsoft has included some very useful fields in the 2009 i.e. RG/Service Tax Setoff Date and PLA Setoff Date. </font></p>
<p><font face="Calibri">The post assumes that you know how to post sales and purchase invoice with Excise values and also how to make payment in PLA account. In case you need me to explain the procedure, write a comment and I will include in my next blog. </font></p>
<p><font face="Calibri">Open the Bank Payment Voucher having the following fields (In case the fields are not available then insert them through Form Designer):</font></p>
<p><font face="Calibri">a)</font>      <font face="Calibri">E.C.C. No. </font></p>
<p><font face="Calibri">b)</font>      <font face="Calibri">RG/Service Tax Setoff Date </font></p>
<p><font face="Calibri">c)</font>       <font face="Calibri">PLA Setoff Date</font></p>
<p><font face="Calibri">Select the G/L account where excise payable entries have been posted. Fill the following Fields:</font></p>
<p><font face="Calibri">a)</font>      <font face="Calibri">Posting Date : Posting Date of Voucher. In this case I am taking as 05/02/11 (DD/MM/YY).</font></p>
<p><font face="Calibri">b)</font>      <font face="Calibri">RG/ServiceTax Set Off Date: Date upto which the RG credit entries and Excise Payable entries have to be taken. Normally it is the last date of the month for which settlement has to be made. In my case it will be 31/01/11 because I am making settlement for the month of Jan 2011.</font></p>
<p><font face="Calibri">c)</font>       <font face="Calibri">PLA Setoff Date : Date upto which the PLA entries have to be taken. Indian Excise law allows the company to deposit the excise amount upto 5<sup>th</sup> of next month. So in case some PLA amount has been deposited in current month and the amount has to be used for settling the due of last month, then current date needs to be given . In my case I am taking 05/02/11.</font></p>
<p><font face="Calibri">d)</font>      <font face="Calibri">E.C.C. No. : ECC no. of location for which excise settlement has to be done. In case we have multiple excisable units then multiple entries needs to be posted. One entry will do the settlement of One Location only. </font></p>
<p><font face="Calibri">e)</font>      <font face="Calibri">Account Type : Account Type should be G/L Account.</font></p>
<p><font face="Calibri">f)</font>       <font face="Calibri">Account No. : Excise Payable account for the location. </font></p>
<p><a rel="attachment wp-att-8" href="http://mibuso.com/blogs/ssingla/2010/02/25/excise/8/" title="1.JPG"><img src="http://mibuso.com/blogs/ssingla/files/2010/02/1.JPG" alt="1.JPG" /></a></p>
<p><font face="Calibri">Click on Payments Tab – Tax Payments – Excise</font></p>
<p><a rel="attachment wp-att-11" href="http://mibuso.com/blogs/ssingla/2010/02/25/excise/11/" title="4.JPG"></a><a rel="attachment wp-att-9" href="http://mibuso.com/blogs/ssingla/2010/02/25/excise/9/" title="2.JPG"><img src="http://mibuso.com/blogs/ssingla/files/2010/02/2.JPG" alt="2.JPG" /></a></p>
<p><font face="Calibri">The following Form will be opened. This will show all the entries outstanding for settlement upto the date of RG/Service Tax Setoff Date.</font></p>
<p><a rel="attachment wp-att-5" href="http://mibuso.com/blogs/ssingla/?attachment_id=5" title="11.JPG"></a><a rel="attachment wp-att-10" href="http://mibuso.com/blogs/ssingla/2010/02/25/excise/10/" title="3.JPG"><img src="http://mibuso.com/blogs/ssingla/files/2010/02/3.JPG" alt="3.JPG" /></a></p>
<p><font face="Calibri">Click on Apply Entries button in the bottom:</font></p>
<p> <a rel="attachment wp-att-11" href="http://mibuso.com/blogs/ssingla/2010/02/25/excise/11/" title="4.JPG"><img src="http://mibuso.com/blogs/ssingla/files/2010/02/4.JPG" alt="4.JPG" /></a></p>
<p><font face="Calibri"> Click in Detail Button in the bottom.  This will open the following screen </font></p>
<p><a rel="attachment wp-att-12" href="http://mibuso.com/blogs/ssingla/2010/02/25/excise/12/" title="5.JPG"><img src="http://mibuso.com/blogs/ssingla/files/2010/02/5.JPG" alt="5.JPG" /></a></p>
<p><font face="Calibri">The left side of the screen shows the components, liability and remaining liability. Remaining Liability will show the unadjusted amount of duty payable. </font></p>
<p><font face="Calibri">The screen will have 3 tabs </font></p>
<p><font face="Calibri">a)</font>      <font face="Calibri">RG 23 A Part II</font></p>
<p><font face="Calibri">b)</font>      <font face="Calibri">RG 23 C Part II</font></p>
<p><font face="Calibri">c)</font>       <font face="Calibri">PLA</font></p>
<p><font face="Calibri">Each tab will show the available credit in the respective group.  </font></p>
<p><font face="Calibri">The first Row in the matrix will be “Credit Available” which will show the credit available under the component. </font></p>
<p><font face="Calibri">In case you need to use a input component for settling duty payable under other component like BED in RG 23 A part II to adjust payable under E-cess then relevant rules has to be defined in the setup under “Claim Setoff”.</font></p>
<p><font face="Calibri">Now you can fill the values in the component by using various tabs and the remaining liability should become zero for all the components (except when you have service tax credit available which you want to use for settlement).  After filling the screen should look like this:</font></p>
<p><font face="Calibri"><a rel="attachment wp-att-13" href="http://mibuso.com/blogs/ssingla/2010/02/25/excise/13/" title="6.JPG"><img src="http://mibuso.com/blogs/ssingla/files/2010/02/6.JPG" alt="6.JPG" /></a></font></p>
<p><font face="Calibri">Note that the remaining Liability has become zero for all the components.  </font></p>
<p><font face="Calibri">Now press escape which will bring you to the earlier screen with a difference:</font></p>
<p><font face="Calibri">The values of RG 23 A, RG 23 C , PLA has been filled adjacent to Excise Payable. </font></p>
<p><font face="Calibri">Again press escape and you will be come on the Bank Payment Voucher screen.  The values will be filled automatically and the voucher will seems to be out of balance </font></p>
<p><a rel="attachment wp-att-14" href="http://mibuso.com/blogs/ssingla/2010/02/25/excise/14/" title="7.JPG"><img src="http://mibuso.com/blogs/ssingla/files/2010/02/7.JPG" alt="7.JPG" /></a></p>
<p><font face="Calibri">You need not modify anything but simply press post. System will automatically insert the balance account. </font></p>
<p>That will be it. We are done. You can check the posted entries.</p>
<p>I don&#8217;t understand why Microsoft has provided the link of Excise Settlement in the Bank Payment Voucher though the voucher never involves any Bank Account. I normally customize the Journal Voucher Form to include the option.</p>
]]></content:encoded>
			<wfw:commentRss>http://mibuso.com/blogs/ssingla/2010/02/25/excise/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
