Quantcast
Channel: Sage X3 – Tips, Tricks and Components
Viewing all articles
Browse latest Browse all 1519

How to get Name of the Program where the Error occurred

$
0
0

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

 Examples :

  # Let’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 / ZERO

End ERROR_MESSAGE

$ERR_HANDLE

ERROR_MESSAGE=”Error”-num$(errn)-“raised on line”-num$(errl)-“in script”-errp-“Message:”-errmes$(errn)

&                -“Additional details:”-errm

Resume

Description:

 errp returns a script name. The result type is Char.
Errp has only a significant value in the error handling routine.
About Us:

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.

Greytrix have some unique solutions of Sage X3’s integration with Sage CRM, Salesforce.com and Magento eCommerce. It also offers best-in-class Sage X3 customization and development services to Sage business partners, end users, and Sage PSG worldwide.

For more information on Sage X3 Integration and Services, please contact us at x3@greytrix.com .We will be glad to assist you.

 

Also Read:


Viewing all articles
Browse latest Browse all 1519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>