Global variables are defined on the var section of each object in AL.
Global variables should be avoided. Dynamics Business Central legacy code has inherited many of them from the MS-DOS era of the product (called Navision or Navigator) when local variables were not available.
Global text constants are defined as variables. The primary purpose of the text constants area is to allow for easier translation of messages from one language to another. By putting all message text in this one place in each object, a standardized process can be defined for language translation.
Procedures are most often defined at the end of an AL file. The following screenshot provides an example of this: