How to close Sales order through code in Sage X3V12 (Sage Enterprise Management)?

Sometimes in a Sage X3 V12 project a developer may want close a sales order through code. In this blog, we will learn how a user can close the sales order through code in Sage X3 ERP.  To close a sales order, a user can use a keyword as explained in this blog.

For example:

Step 1: Navigation: All > Sales > Orders

Step 2: Use the syntax as explained below:


WSOHNUM: Sales Order number.

WMSGFLG: Error message indicator.

  • 0 = no error message.
  • 1 = error on screen (Call ERROR).
  • 2 = GMESSAGE + GERR positioned.
  • 3 = message in a trace.

To close the Sales Order through code in Sage X3 V12, a user needs to pass sales order number as the parameter and then run the code. Furthermore, they need to check the sales order once the code has processed. Sage X3V12 user will find that sales order has closed completely and would not be able to modify the record.

Step 3: Path: All > Sales > Orders

As a result, we can handle how to fully or partially close the sales order in Sage X3 enterprise management.

Do stay tuned for more technical blogs on Sage X3V12, as we navigate to understand Sage X3 ERP system version 12.

About Us-

GerminIT – Recognised for its X3 implementation and customisation world over, GerminIT is one of the oldest Sage X3 (a Sage Business Cloud Solution) development and implementation enabler and a one-stop solution provider for Sage X3 organizational needs. With a proven track record of X3 development and implementation solutions for clients across the US, UK, Middle East, Australia, Asia and Africa, we bring complete end-to-end assistance for data migration, system integrations, technical consultations, implementation competence, third-party add-on development and product customizations.  

With GerminIT your business will be supported with the best-in-class Sage X3 customization and development services, integrated applications such as Shipping System | eCommerce | Business Intelligence | POS | WMS | Payment Gateway and mobile add-ons solutions. GerminIT caters to a wide range of Sage X3 offerings. Currently, we provide end to end support with Sage X3 implementation and customization solutions for Sage business partners, Sage PSG and end-users worldwide.  


Cloud ERP Consultation In India


Leave a Reply

Your email address will not be published. Required fields are marked *