The following procedure describes how to set up a trigger.
To define or modify a table or field trigger
Open Object Designer and then click Table.
Select a table from the list and then click Design.
The table opens in Table Designer.
Click View and then click C/AL Code.
The C/AL Editor opens.
The position or the cursor in Table Designer determines the order in which triggers are displayed in the C/AL Editors. For example, if you place the cursor on a specific field, the trigger for that field appears at the top of the C/AL Editor. Scroll through the list of triggers displayed to access other triggers.
Enter or modify the appropriate triggers.