Field help (GAFFOR) 

You can define a reference or title (or both) using a formula. They will be used by default when generating the entry (displayed in journal entry or inquiry). If these fields are not entered, the reference and title will be recopied from the template journal.

In formulas, you can use all the variables of the GACCENT0, GACCENT1and GACCENT2screens that make up the STD entry structure. They are open using the abbreviations HAE0, HAE1 and HAE2. The global variables and system variables (datesyst) are also used, as well as the NEWDAT variable, that determines the generation date of the current journal. As for the title, it represents the line number (0...N-1).

If the reference or title is made of text, you must enter the description between quotation marks. You can also resort to formulas and use information from other fields.