Tag Archives: Sage X3 technical blogs

Know Month Name from the Given Date

Sage X3 provides an inbuilt function to retrieve the number and name of month from the particular date. Following are the functions you need to write for the same. To retrieve number of month from given date: month(exp_date) To retrieve name of month from given date or given number of month: month$(exp_date) month$(exp_num) Where, exp_date         … Read More »

How to know a Mask Variable is Initialized or not?

In Sage X3, sometimes you may have to check for the initialization of a particular mask variable. Sage X3 provides an inbuilt function to do the same. Below function is used to know whether a mask variable is initialized or not. varinit ( zone_name [, exp_index ] ) Where, Zone_name :     [ class ] name_of_variable.… Read More »

How to Reopen the Debugging Window in the Eclipse?

If we want to debug the code on version 7 or on any higher version, eclipse will help us in that. We cannot get the window back if we knowingly or unknowingly close the debugging window. Sometimes we may need to uninstall or re-install eclipse, even if we click on debug button. This issue can… Read More »

How to Restrict User from Creating SO for Price below Minimum Sales Price

If you come across a scenario where you want to restrict user from creating a sales order for net price less than minimum price then sage X3 provides a standard functionality Non block ctrl price,profit,qt. Navigation: Setup –> General parameters –> Parameter Values Sales – Authorization —  SDACLOK (Non block ctrl price,profit,qt ) Set  Non… Read More »

How to use Local Menu Message through Coding?

In Sage X3, we may have to display a particular message for several times based on the certain condition. We can define such frequently used messages in a local menu and can access them through coding. To access the message defined in a local menu in coding, Sage X3 provides an inbuilt function: mess(exp_num, exp_chap,… Read More »

How to Reserve the Stock for Particular Customer?

Have you ever come across a circumstance in Sage X3 where you would like to reserve the stock of managed product for customer? Sage X3 has a feature where we can reserve the stock for customers. To successfully bring this functionality follow below steps. Navigate To: Sales>Allocations>Customer reservations We can reserve the product in stock… Read More »

How to Change the Title of a Tab Dynamically?

Sage X3 provides an inbuilt function to rename the title of a tab at runtime. We can change the tab title dynamically using following function: Chgtfd [class] expr_c Where, class: describes an open mask. In the absence of this parameter, the default mask is used. expr_c: describes expression of the type Char containing a valid… Read More »

How to Call “Entry point” from the Code

As you know we have been blogging for quite a while now, however you might have found very few topics on Entry Point. This blog will help you understand the working of Entry Point in Sage X3. In our processing file, there are a lot of coding lines and very few codes would be comprehended… Read More »

Re-instate Order Allocations in Sage X3

If we come across a scenario where we want the system to prompt user to reallocate the allocated quantities on original orders. In such a case Sage X3 has a standard Re-instate Order Allocation functionality. This feature can be achieved by following below steps:- Navigate to Setup → General parameters → Parameter Values. Select “On… Read More »

How to get the value of the current variable/field in Sage X3?

ZC contains the value of the current variable (in input, initialization, check, selection and help mode). Class, Type and Dimension: Type of zc depends on context that corresponds to type of variable being entered (at the time of check or help is executed) or being initialized. [s]zc Examples: # In a routine associated with a… Read More »