How to interrupt a running process in X3…?

By | November 26, 2015

There can be occasions when you want to allow user to interrupt a running X3 process/loops. Here we are describing how to achieve the same via combination of keys.

New Stuff: How to create multiple shipments by passing sales order range in Sage X3?

In X3 if you want to interrupt a process during execution you need use Inter 1 command in your code. This command tells Adonix that this part of process can be interrupted by hitting sequence of keys, which is called a “soft interruption sequence.” You will use the sequence of <CTRL> + <ALT> + <Q> keys together for this purpose. The <Q> key is defined by default in the X3.ini configuration file and it can be modified.

When you hit this key, a question box displays the following message: “Execution interrupted on line N … Do you wish to stop (Y/N)?” If you answer “No” to this question, the process will continue as before. Otherwise, it is interrupted.

Also you can write your own code which will trapped when interruption occur. You can achieve the same by writing your own label using the Onintgo instruction. In this case, no message is displayed by Adonix, but the subroutine defined on the label is executed with a possible return to the process.

Below is the code I have written on creation event of Inter-site transfer:

Interrupt a running process in X3

About Us
Greytrix – a globally recognized Premier Sage Gold Development Partner is a one-stop solution provider for Sage ERP and Sage CRM needs. Being recognized and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development and implementation expertise.

Greytrix caters to a wide range of Sage Enterprise Management (Sage X3) offerings – a Sage Business Cloud Solution. Our unique GUMU™ integrations include Sage Enterprise Management (Sage X3) for Sage CRMSalesforce.com and Magento eCommerce along with Implementation and Technical Support worldwide for Sage Enterprise Management (Sage X3). Currently we are Sage Enterprise Management Implementation Partner in East Africa, Middles East, Australia, Asia. We also offer best-in-class Sage X3 customization and development services, integrated applications such as POS | WMS | Payment Gateway | Shipping System | Business Intelligence | eCommerce and have developed add-ons such as Catch – Weight  and Letter of Credit for Sage Enterprise Management to Sage business partners, end users and Sage PSG worldwide.

Greytrix is a recognized Sage Rockstar ISV Partner for GUMU™ Sage Enterprise Management – Sage CRM integration also listed on Sage Marketplace; GUMU™ integration for Sage Enterprise Management – Salesforce is a 5-star app listed on Salesforce AppExchange.

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