You may come across a situation where you would like to update only few fields from the table. So we are using “Columns” keyword in Sage X3 to accomplish desired requirement.
New stuff:How to find the name of the window
Description: The “Columns” instruction is only taken into account by the For loop and Rewrite instructions. The Read and Write instructions still manage class [F] as a whole.
Syntax1: Columns class [(field [, field])]
Syntax2: Columnsclass With Mask (mask [, mask])]
Parameter details:
Class: Abbreviation of an open file
Field: Name of a field from the table.
Mask: Abbreviation of an open mask
Example: Here are the details of three fields i.e. BPRNUM, BPRNAM and BPAADD from table (BPARTNER).
In this screen shot, we have updated the field (BPRNAM ) to ’Emerald city bikes’ where BPRNUM=’P21’.
Kindly refer to the below snippet of code for better understanding.Also read:
1.Limit number of columns or fields loaded from tables during read or write instructions
2.Set column titles dynamically in Sage X3
3.Link tables in Sage ERP X3 through coding
4.Count the number of keys(index) in the table.
5.How to get index name of table in Sage ERP X3