EIN Format Based on a Formula
When you use a formula, you create a format that can include alphanumeric affixes that you define, a numeric counter that increments, and text fields for the user to populate. The EIN can be either completely autogenarated or you can let users enter their own text.
A simple formula typically includes one or more alphanumeric affixes of static text and a counter. The counter increments each time that a user adds the EIN to an object. For example: PN-QN-001, PN-QN-002, PN-QN-003, and so on. For information on how to create a simple EIN formula, see Create an EIN Formula.
A more complex EIN formula can include an attribute that acts like a variable. As an administrator, you define the attribute and a list of possible values that the attribute can have. Then, the user selects one value from the list for each object in the product structure. The counter in the EIN formula increments for a specific attribute value each time the user assigns that value to the object.
For example, consider the forrmula:
PN-{Location}-<counter>
In this example, "PN-" is a static text prefix that the administrator has defined. All EINs with this formula begin with this prefix. The attribute Location can contain one or more values that the administrator has defined. Each represent the location in which the object was manufactured such as TOR, ZUR, ATL for Toronto, Zurich, and Atlanta. The user chooses the location from the list of defined values when they assign the EIN to the object. The counter is specific to the location. For example, the first three objects manufactured in Zurich may have the EIN values PN-ZUR-000100, PN-ZUR-000101, PN-ZUR-000102, depending on the starting value that the administrator has chosen.