Category Archives: Greytrix

How to add Conditional styles to a Patch File in Sage X3?

We may come across a situation, where we want to add Entry Point to Patch file in Sage X3. Follow the below steps: Step 1: Kindly navigate to Development > Utilities > Patches > Patch Creation Then we will get the below screen. Step 2: Click on Client Radio button, then select Type of Patch… Read More »

Handling the Customized Fields Using Entry Transaction in Sage X3

In Sage X3, whenever we do any change on transaction screens like order, shipment, receipts or any other screens, we need to validate Entry Transaction. But, we may come across a scenario where user wants the modifications to behave differently depending on the transaction selections. For e.g., A customized field on Sales Order is to… 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 validate alphanumeric date field in Sage X3?

There can be occasions when you want to accept date input in an alphanumeric field in grid. As, alphanumeric field does not have calendar control so you need to validate the entry section by writing our own code. Here we are describing how to achieve same via code. Below is the code we have written after… Read More »

Making Bank Payments using the ACH NACHA Bank files from Sage X3

Every company has to make a series of payments to its Suppliers / Vendors. Nowadays, payments made using ACH are preferred by maximum companies because it not only saves time and money but is also easier and quicker to make payments/get paid with increased security while preventing the possibility of frauds. Many of the Sage… Read More »

How to automatically allocate the work order

Sage X3 has a feature where we can automatically allocate automated work order generated from sales order at the time of creation. To successfully implement this functionality follow below steps: Navigate to: Setup>Manufacturing>Entry transactions>Work orders>AUT (Automatic generation) Select AUT Automatic transaction. Select Automatic global () or Automatic Click on save Click on Validation button

How to assign the allocation and issue rules on product categories?

You may come across a scenario where you want to set the allocation and issue rules on product categories. Sage X3 has standard feature where you can set the allocation rule. Create the allocation and issue rules on below path. Navigate: Setup>Stock>Allocation and issue rules Assign the above created allocation rule on product category. Now… Read More »

How to avoid clashing between local variable and table column name?

In Sage X3, we may come across the situation where we may be having some variable name declared in the code file and the same variable in table. Sage X3 has special keyword to make differentiation between local variable and the table variable as there can be same name used while declaring the local variable… Read More »

How to Check Whether the Given Directory/ Path Exists or Not

In Sage X3, we may come across a situation where we need to know whether the path or a particular directory exists or not. We can know this using following function: Syntax: filinfo(path_fil, arg_ent) Parameters: path_fil: Char type expression for the file path to be tested Arg_ent: Integer expression specifying the property to be found.… Read More »

How to disallow user to unblock an order?

Sage X3 has a parameter which can be used to disallow a particular user with the rights to unlock an order which has been put on hold manually or whose credit status is blocked. To disable a particular user to unblock sales order, please follow the following steps: Step 1: Go to Setup >General Parameters>Parameter values… Read More »