Defining format codes

A format code represents a format type that is used for a category of prices and amounts. Start the Formats (ttadv4585m000) session in Tools to list the predefined format codes in LN.

You use the format codes to specify formats with different degrees of precision for one currency when it is used for different purposes.

Example

In a specific currency you want to register and display:

  • Prices with two decimals
  • Rates as whole numbers
  • All other amounts with one decimal

To define the formats:

  1. Define the currency as a generic unit in the Generic Units (ttaad1106m000) session.
  2. Define the currency in the Currencies (tcmcs0102m000) session.
  3. Select the format code for prices (003) in the Formats by Generic Unit (ttaad1107m000) session and then select the currencies' generic unit. Specify a format with two decimals.
  4. Select the format codes for rates (001, 002, 400, in turn) in the Formats by Generic Unit (ttaad1107m000) session, then select the currencies' generic unit. Specify a format with no decimals.
  5. Specify a format with one decimal for the currencies' generic unit for all other format codes.

As a result, users can enter prices with up to two decimals, rates in whole numbers only, and other amounts with one decimal. LN also calculates prices up to two decimal places.