By default, all Reports and WFL jobs started through your application (with the Run and Start logic commands, :RUN Administration command, and RIP) uses the chargecode of your System Supervisor program (LSS). To change this chargecode, you can use the Glb.ChargeCode built-in attribute in your logic, in conjunction with the :COD Administration command.
Standalone Reports use the chargecode relevant to the environment in which they are run, and they are not affected by :COD, Glb.ChargeCode, or the chargecode of the application.
Glb.ChargeCode
The Glb.ChargeCode built-in attribute has a length of 45 characters, and enables you to enter a chargecode for a Report that is initiated by a Run logic command or a WFL job that is initiated by a Start logic command. In both cases, the chargecode that applies to the Report or WFL job is defined by the value of Glb.ChargeCode when the Run or Start logic command is executed, provided the appropriate value of :COD is set.
:COD
The :COD Administration command enables you to control which chargecode is actually used by your Reports and WFL jobs. The value of :COD can be set to 0, 1, or 2.
If :COD is set to 0, your Reports and WFL jobs runs with the chargecode of your application (specifically LSS), ignoring any value that was entered into Glb.ChargeCode. (The application chargecode comes from the Generate System dialog box.) Reports initiated with a :RUN Administration command also runs with the chargecode of your application.
If the :COD Administration command is set to 1 or 2, the chargecode that is used depends upon the method of initiation.
Refer to :COD Report and WFL Job Chargecodes for more information on :COD. Refer to the Agile Business Suite Programming Reference Manual for more information on Glb.ChargeCode.