Changes required
A convention used in the report procedures is to put the same commands on pop-up menus for all reports that use the same primary sort field. For example, all the reports whose primary sort key is element or element_xpn display the same set of commands.
To make an additional command available for all reports whose primary sort key is element or element_xpn, modify the routines stored in \script_rightclick and then edit the associated routine in \script_tools\common.prl.
To change the report procedure, copy the contents of sub print_element_rightclick (located in \script_tools\common.prl) and paste it into the appropriate part of the interface specification. Then, add a declaration to display the new command.