Generating a Running Total of Extended Price
Use this procedure to generate a running total of the extended
price.
- Double-click the IT104 element (in the IT1 segment in the
IT1 group). This is the element that contains the unit price for each
line item.
You already established one accumulator that the system displays in the list on the Standard Rule tab.

- Click New.
The system displays the Edit Accumulator Entry dialog box to create a new calculation for this element.
- From the Primary Accumulator list, select 3.
- In the Name box, type Running Total.
- From the First list, select Add primary to alternate. This operation specifies that the system adds the contents of the primary accumulator to the contents of the alternate accumulator, and stores the result in the primary accumulator for each iteration of the IT1 group.
- From the Alternate Accum list, select 2. This operation specifies that the system add the value of accumulator 2 (which contains the extended price for a line item) to the value of accumulator 3. The system stores the sum in accumulator 3, which therefore contains a running total of the extended price with each iteration of the IT1 group.
- Click OK to add the accumulator.
This diagram illustrates how the Standard Rule tab should look.

- Click OK on the Element Properties dialog box to add the standard rule to the IT104 element.