{"id":9832,"date":"2017-01-24T12:51:42","date_gmt":"2017-01-24T12:51:42","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=9832"},"modified":"2017-01-24T12:51:42","modified_gmt":"2017-01-24T12:51:42","slug":"how-to-get-name-of-the-program-where-the-error-occurred","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2017\/01\/24\/how-to-get-name-of-the-program-where-the-error-occurred\/","title":{"rendered":"How to get Name of the Program where the Error occurred"},"content":{"rendered":"<p>Errp returns the name of the script where an error occurred. It can be used in the error handling routine set by <a href=\"http:\/\/online-help.sageerpx3.com\/erp\/wp-static-content\/static-pages\/en_US\/v7dev\/4gl_onerrgo.html\" target=\"_blank\" rel=\"noopener\">Onerrgo<\/a>.<\/p>\n<p><u>Syntax : <\/u><\/p>\n<p><strong>errp<\/strong><\/p>\n<p><strong>\u00a0<\/strong><u>Examples : <\/u><\/p>\n<p><strong>\u00a0 <\/strong># Let&#8217;s trigger an error (division by zero)<\/p>\n<p style=\"padding-left: 30px\"><span style=\"color: #3366ff\">Funprog DIV_BY_ZERO<\/span><\/p>\n<p style=\"padding-left: 30px\"><span style=\"color: #3366ff\">Local Integer ZERO, ONE, RESULT<\/span><\/p>\n<p style=\"padding-left: 30px\"><span style=\"color: #3366ff\">Local Char ERROR_MESSAGE(250)<\/span><\/p>\n<p style=\"padding-left: 30px\"><span style=\"color: #3366ff\">ONE=1 : ZERO=0<\/span><\/p>\n<p style=\"padding-left: 60px\"><span style=\"color: #3366ff\">Onerrgo ERR_HANDLE<\/span><\/p>\n<p style=\"padding-left: 60px\"><span style=\"color: #3366ff\">RESULT = ONE \/ ZERO<\/span><\/p>\n<p style=\"padding-left: 60px\"><span style=\"color: #3366ff\">End ERROR_MESSAGE<\/span><\/p>\n<p style=\"padding-left: 30px\"><span style=\"color: #3366ff\">$ERR_HANDLE<\/span><\/p>\n<p style=\"padding-left: 30px\"><span style=\"color: #3366ff\">ERROR_MESSAGE=&#8221;Error&#8221;-num$(errn)-&#8220;raised on line&#8221;-num$(errl)-&#8220;in script&#8221;-errp-&#8220;Message:&#8221;-errmes$(errn)<\/span><\/p>\n<p style=\"padding-left: 30px\"><span style=\"color: #3366ff\">&amp;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 -&#8220;Additional details:&#8221;-errm<\/span><\/p>\n<p style=\"padding-left: 60px\"><span style=\"color: #3366ff\">Resume<\/span><\/p>\n<p><u>Description: <\/u><\/p>\n<p><strong>\u00a0<\/strong>errp returns a script name. The result type is <a href=\"http:\/\/online-help.sageerpx3.com\/erp\/wp-static-content\/static-pages\/en_US\/v7dev\/4gl_char.html\" target=\"_blank\" rel=\"noopener\">Char<\/a>.<strong><br \/>\n<\/strong>Errp has only a significant value in the error handling routine.<br \/>\n<strong>About Us:<\/strong><\/p>\n<p style=\"text-align: justify\">Greytrix is one stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.<\/p>\n<p style=\"text-align: justify\"><a href=\"http:\/\/www.greytrix.com\/\" target=\"_blank\">Greytrix<\/a> have some unique solutions of <a href=\"http:\/\/www.greytrix.com\/product\/sage-crm\/gumu-sage-x3-integration\" target=\"_blank\">Sage X3\u2019s integration with Sage CRM<\/a>, <a href=\"http:\/\/www.greytrix.com\/product\/sage-x3\/gumu-x3-salesforce-integration\" target=\"_blank\">Salesforce.com<\/a> and <a href=\"http:\/\/www.greytrix.com\/product\/magento-sage-integrations\/sage-x3-magento\" target=\"_blank\">Magento eCommerce<\/a>. It also offers best-in-class <a href=\"http:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" target=\"_blank\">Sage X3 customization and development services<\/a> to Sage business partners, end users, and Sage PSG worldwide.<\/p>\n<p style=\"text-align: justify\">For more information on Sage X3 Integration and Services, please contact us at <a href=\"mailto:x3@greytrix.com\" target=\"_blank\">x3@greytrix.com<\/a> .We will be glad to assist you.<\/p>\n<p>&nbsp;<\/p>\n<p><strong><u>Also Read: <\/u><\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/07\/30\/how-to-solve-expression-too-large-error-in-sage-x3\/\">How to Solve \u201cexpression too large\u201d error in Sage X3<\/a><\/li>\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/06\/14\/how-to-overcome-product-not-managed-in-stock-error\/\">How to Overcome \u201cProduct not managed in stock\u201d error in Sage X3?<\/a><\/li>\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/02\/19\/gte-error-in-field-evaluation-error-while-running-accounting-interface\/\">\u201cGTE Error in Field Evaluation\u201d error while running accounting interface<\/a><strong>\u00a0<\/strong><\/li>\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/01\/04\/how-to-handle-the-errors-in-sage-x3-with-custom-message\/\">How to handle the errors in Sage X3 with custom message?<\/a><\/li>\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/11\/27\/how-to-display-serious-error-message-box\/\">How to display serious error message box<\/a><strong>\u00a0<\/strong><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Errp returns the name of the script where an error occurred. It can be used in the error handling routine set by Onerrgo. Syntax : errp \u00a0Examples : \u00a0 # Let&#8217;s trigger an error (division by zero) Funprog DIV_BY_ZERO Local Integer ZERO, ONE, RESULT Local Char ERROR_MESSAGE(250) ONE=1 : ZERO=0 Onerrgo ERR_HANDLE RESULT = ONE\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2017\/01\/24\/how-to-get-name-of-the-program-where-the-error-occurred\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[743,881,1773,1941,1942,1945],"class_list":["post-9832","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","tag-errp-tag","tag-get-name-of-the-program","tag-sage-erp-x3-blogs","tag-sage-x3-technical","tag-sage-x3-technical-assistance","tag-sage-x3-technical-blogs"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/9832","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=9832"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/9832\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=9832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=9832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=9832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}