Category Archives: Uncategorized

Getting the List of Accessible Classes in the Current Application

We may encounter a scenario where we want to know the names of the classes that are accessible in a current application. For this, CLANAM function can be used. The CLANAM function is basically used for acquiring the list of classes accessible to the current application.CLANAM function returns the Char type. Syntax : clanam(< Class… 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 »

Steps to assign Conditional style to screen in Sage X3

Step 1: Navigate to Setup >> General Parameters >>Conditional Style assignment. Step 2: Enter screen code “YWMCSPSTD” and assign conditional style “YSTL1” for all columns except “scheduled date” set conditional style “YSTL2” (Refer to below screen shot) . Step 3: Click on save. Step 4: Put screen code “ZCONSCSO2” and put conditional style “YSTL” for… Read More »

How to give space between string by coding in Sage X3?

How to give space between string by coding You may come across a scenario were you need to provide the space  between string.X3 has a function “space$(n)” which  returns a string with n spaces, Syntax as below. Syntax: space$(nb_esp) space$(nb_esp) returns a string comprising nb_esp spaces(ascii code 32). This function is thus equivalent to string$(nb_esp,… Read More »

How to Find a Factorial of Any Integer Number in Sage X3?

We may come across a situation, where we need to calculate a factorial of any integer. Sage X3 provides built-in function ‘fac’ to calculate the same. Fac: It calculates a factorial of any integer value. Syntax: fac(integer) To better understand this, refer the below snippet of code:

How to add a string in a new Line in Sage X3?

We may come across a scenario where we want to display message in new line, X3 has a function to achieve this.”chr$” function converts a numerical value in an ascii character, syntax as below. Syntax: chr$( exp_ent ). “chr$” returns a character whose ascii code corresponds to the argument (if there is a corresponding ascii… Read More »

Use of “nomap” variable in Sage X3

As we all know that Sage X3 can have more than one folder/application. So the question is how we will get to know current folder/application name while accessing Sage X3 ERP. Here X3 provide special “nomap” variable, which complete your requirement. nomap is a variable that is only accessible in read mode and which determines… Read More »

How to restrict automatic closing of PO’s in Sage X3?

If you come across a scenario where you want to restrict automatic closing of PO’s in Sage X3.Here is a standard functionality for PO line closing method. To set up this functionality: Step 1: Navigation: Set up – General Parameter’s – Purchase – Rest Management. Step 2: Set Rest management to ‘Never’. Now even if… Read More »