{"id":23830,"date":"2021-10-28T11:19:18","date_gmt":"2021-10-28T11:19:18","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=23830"},"modified":"2021-10-28T11:27:26","modified_gmt":"2021-10-28T11:27:26","slug":"validation-on-hsn-code","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/10\/28\/validation-on-hsn-code\/","title":{"rendered":"Validation on HSN Code"},"content":{"rendered":"\n<p>In <a rel=\"noreferrer noopener\" href=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" target=\"_blank\">Sage X3<\/a>, we do have Indian Legislation addon module developed which is suitable for Indian business. Good and Service tax is part of the Indian Legislation where defining HSN code against product and service is mandatory. HSN stands for \u201cHarmonized System of Nomenclature\u201d. HSN code is a 6-digit uniform code that classifies 5000+ products and is accepted worldwide. In India, HSN code has extra 2 digits for further classification. The main purpose of HSN is to classify goods from all over the World in a systematic and logical manner. This brings in a uniform classification of goods and facilitates international trade.<\/p>\n\n\n\n<p>There was a requirement from one of the client to add validation on HSN master where HSN number will take minimum 7 digits for creation not less than that. For example, if the user is trying to enter the HSN code less than 7 digit then it will give a popup message as &#8220;HSN code should be greater than 6 digit&#8221; and it won&#8217;t allow to create HSN Code till user enters the HSN Code greater than or equal to 7. Also client had requested us to add same validation on the Sales Invoice screen while selecting HSN Code in the detail line where the length of HSN code should not be less than 7 digits.<\/p>\n\n\n\n<p>To achieve the above requirement follow the below steps:<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Go to Development -&gt;Script Dictionary -&gt;Windows and open HSN master window(XX1P4HSN)<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Jump to &#8216;XX1P4HSNMST&#8217; screen and add &#8216;After field&#8217; &amp; &#8216;After change&#8217; actions on HSNCODE field as per below screenshot :<\/p>\n\n\n\n<p><strong>New Stuff<\/strong> : <a rel=\"noreferrer noopener\" href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/10\/28\/restriction-on-sales-order-if-date-exceeds-the-defined-due-date\/\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/10\/28\/restriction-on-sales-order-if-date-exceeds-the-defined-due-date\/\" target=\"_blank\">Restriction on Sales Order if date exceeds the defined due date<\/a><\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/10\/HSN-Master-screen.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/10\/HSN-Master-screen.jpg\" alt=\"[HSN Master screen]\"><\/a><\/center>\n<font size=\"2\"><center>[HSN Master screen]<\/center><\/font>\n\n\n\n<p><strong>Step 3:<\/strong> Save and validate the screen and global validate the window<\/p>\n\n\n\n<p><strong>Step 4: <\/strong>Add the below code in SPEHSN script :<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/10\/script-SPEHSN.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/10\/script-SPEHSN.jpg\" alt=\"[Script-SPEHSN]\"><\/a><\/center>\n<font size=\"2\"><center>[Script-SPEHSN]<\/center><\/font>\n\n\n\n<p>Add the similar code in AP_XX1P4HSNCODE action and compile the script.<\/p>\n\n\n\n<p>Now if the user tries to enter less than 7 digits in HSN code field then it will give a popup as &#8220;HSN code should be greater than 6 digit&#8221;.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/10\/HSN-Code-popup.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/10\/HSN-Code-popup.jpg\" alt=\"[HSN master popup]\"><\/a><\/center>\n<font size=\"2\"><center>[HSN master popup]<\/center><\/font>\n\n\n\n<p>Similarly, add same validation for the HSN Code in the detail line of the Sales Invoice screen<\/p>\n\n\n\n<p>-Go to OSIH window, jump to SIH4 screen and add &#8216;After field&#8217; &amp; &#8216;After change&#8217; action on &#8216;HSN Code&#8217; field.<br>-Save and validate the screen and global validate the window.<br>-Add the below code in AM_XX1P4HSNCODE &amp; AP_XX1P4HSNCODE actions in SPESIH script and compile the script<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/10\/Script-SPESIH.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/10\/Script-SPESIH.jpg\" alt=\"[Script-SPESIH]\"><\/a><\/center>\n<font size=\"2\"><center>[Script-SPESIH]<\/center><\/font>\n\n\n\n<p>After applying above validation on sales invoice screen if the user tries to select the HSN code having less than 7 digits from HSN Code finder it will give a popup as below screenshot:<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/10\/Sales-Invoice-HSN-Code-popup.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/10\/Sales-Invoice-HSN-Code-popup.jpg\" alt=\"[Sales Invoice- HSN Code popup]\"><\/a><\/center>\n<font size=\"2\"><center>[Sales Invoice- HSN Code popup]<\/center><\/font>\n\n\n\n<p>In this way we can add validation on HSN Code field in HSN Master of GST Module and in detail line of Sales Invoice screen.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>About Us<\/strong><\/h2>\n\n\n\n<p>Greytrix \u2013 a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.<\/p>\n\n\n\n<p id=\"block-28013e99-0882-44c6-b705-7b16c85053b2\">Greytrix&nbsp;has some unique integration solutions developed for&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-crm\/\">Sage CRM<\/a>&nbsp;with Sage ERPs&nbsp;namely&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-x3-erp\/\">Sage X3<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-intacct\/\">Sage Intacct<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-100-erp\/\">Sage 100<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-500-erp\/\">Sage 500<\/a>,&nbsp;and&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-300-erp\/\">Sage 300<\/a>. We also offer best-in-class&nbsp;Sage ERP&nbsp;and&nbsp;Sage CRM&nbsp;customization and development services&nbsp;to&nbsp;Business&nbsp;Partners,&nbsp;End&nbsp;Users, and Sage PSG worldwide. Greytrix&nbsp;helps in&nbsp;the migration of Sage CRM from&nbsp;Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes&nbsp;addons like&nbsp;&nbsp;Greytrix Business Manager,&nbsp;Sage CRM Project Manager,&nbsp;Sage CRM Resource Planner,&nbsp;Sage CRM Contract Manager,&nbsp;Sage CRM Event Manager,&nbsp;Sage CRM Budget Planner,&nbsp;Gmail Integration,&nbsp;Sage CRM Mobile Service Signature,&nbsp;Sage CRM CTI Framework.<\/p>\n\n\n\n<p id=\"block-4bc42a09-fb13-4598-8137-ce5f7b91ce28\">Greytrix is a recognized&nbsp;Sage Champion Partner&nbsp;for GUMU&#x2122; Sage X3 \u2013 Sage CRM integration listed on&nbsp;<a href=\"https:\/\/www.sage.com\/marketplace\/asb_ListingDetail?listingId=a1h24000007PC3aAAG\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Marketplace<\/a>&nbsp;and Sage CRM \u2013 Sage Intacct integration listed on&nbsp;<a href=\"https:\/\/marketplace.intacct.com\/MPListing?lid=a2D0H000007kiHyUAI\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Intacct Marketplace<\/a>. The&nbsp;<a href=\"https:\/\/www.greytrix.com\/gumu\/\" target=\"_blank\" rel=\"noreferrer noopener\">GUMU&#x2122; Cloud framework<\/a>&nbsp;by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.<\/p>\n\n\n\n<p id=\"block-76376301-1c3e-4250-8a09-727595a606f0\">For more information on our integration solutions, please contact us at&nbsp;<a href=\"mailto:sage@greytrix.com\">sage@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Sage X3, we do have Indian Legislation addon module developed which is suitable for Indian business. Good and Service tax is part of the Indian Legislation where defining HSN code against product and service is mandatory. HSN stands for \u201cHarmonized System of Nomenclature\u201d. HSN code is a 6-digit uniform code that classifies 5000+ products\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/10\/28\/validation-on-hsn-code\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,2796],"tags":[3458,3457,3459,1822,1945,2357],"class_list":["post-23830","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","category-technical","tag-field-validation","tag-hsn-code","tag-len-function","tag-sage-x3","tag-sage-x3-technical-blogs","tag-validation"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/23830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=23830"}],"version-history":[{"count":10,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/23830\/revisions"}],"predecessor-version":[{"id":23853,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/23830\/revisions\/23853"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=23830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=23830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=23830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}