How to add analysis codes

Analysis codes are extra pieces information can that can be added to customer accounts, supplier accounts, nominal accounts, stock records, sales orders and invoices, and purchase orders.

Although many reports contain analysis codes by default, you can also add them to other documents by using Report Designer. You do this by adding a Variable.

How to locate the report or document

Open: Tools > Run Sage Report Designer

  1. Go to File Explorer section.

    The default reports are all stored under the Defaults folder by type of report and module such as nominal, purchases etc.

    If you've previously amended the report or document, it will be saved in the Custom or Company folder.

How to add an analysis code variable

How you add the analysis code to your documents will vary depending on how you want to use and display the analysis code. When you add the analysis code variable to a document, the value that's assigned that entity, such as the supplier's account or stock item, is displayed in the document.

The following instructions cover adding a supplier analysis code to a remittance advice.

In this example, the analysis code value on the supplier's account is the account number provided by your energy supplier. To add this to your remittance advice you'll need to create a text box to provide a label for the analysis code field and then add the analysis code value as a variable. When the remittance is printed, it will pick up the account number for your supplier account.

Add a text box for the label

Open: View > Dynamic help

  1. Select Add text or data field and then Add text.
  2. Enter the required text, such as Account number.
  3. Choose the required style. It's a good idea to use the same style as the other fields in the section.

    The font, size and colour are shown below. You can change these here, if required.

    For example, on the remittance advice, if you add the account number above the cheque number, use the Group Title style.

  4. Choose how to align the text within the text box and whether to add borders.
  5. Click Next.
  6. Choose the section and location within the section.

    For example, on the remittance advice, choose Page Header and Add the text after last item in the section.

  7. Click Add to report.
  8. You can then position and align the box. To do this:
    • Use the mouse or arrow keys
    • Use the options on the Format section of the menu.

Add a variable for the analysis code

Open: View > Dynamic help

  1. Select Add text or data field and then Add a data field
  2. Select the table that contains the data. Analysis codes are contained in the following data tables. You'll only be able to choose data tables that are already linked to the document, for example, you can only select supplier accounts from the remittance advice, and customer accounts from a sales report.

    Customers SLCustomerAccounts
    Suppliers PLSupplierAccounts
    Nominal Accounts NLNominalAccounts
    Stock items StockItems
    Invoicing and Sales Orders

    Header - SOPOrderReturns

    Lines - SOPOrderReturnLines

    Purchase Orders

    Header - POPOrderReturns

    Lines - POPOrderReturnLines

  3. Select the required analysis code from the data field drop-down list, e.g. AnalysisCode1.
  4. Choose where to add the data field. Make sure it's the same section and approximate position as the text box.

    For example, on the remittance advice, choose Page Header and Add the text after last item in the section.

  5. Click Add to report.
  6. You can then position and align the box. To do this:
    • Use the mouse or arrow keys
    • Use the options on the Format section of the menu.
  7. To make sure it uses the same formatting as other information in the section, click on the field and then select the same style from the toolbar.

    For example, on the remittance advice, choose Group Field.

Tip: Preview the document to check that it's displaying correctly (View > Preview).

Where to save the amended report or document

When you save a customised report or document, make sure to save it in a new folder. This is to make sure that the original isn't lost.

If you have more than one company, you can choose whether the amended report should be used for all companies or just for a specific one.

When you generate a report or document Sage 200 first looks for the version in the Company folder, then the Custom folder, and if it does not find one it uses the 'out of the box' version. For each report, it will check in a specific folder for a specific filename.