Do you want to group all Items from the SAME Item Class together, rather than the order shown on the screen, and have a subtotal after each group?
Or do you want a subtotal that pertains to each Item Class group at the end of the report, having shown all item lines already?
The former is possible within Report Writer, the latter not.
How to get Subtotalling on Item Class?
The following is a simple way, but does mean that Line comments will NOT print. Having done this mod, it is unlikely to print as expected should you have kits, serialised items or lot numbered items.
1. Change the Sorting.
Include the fields: (first seven represent the original index, whilst the 8th field represents your grouping)
Location Code of table Sales Document header temp
Document Type of table Sales Document header temp
Sequence Number of table Sales Document header temp
User ID of table Sales Document header temp
Document Print of table Sales Document header temp
Sop Type of table Sales Document header temp
Sop Number of table Sales Document header temp
Item Class Code of table Item Master
2. Within the Layout,
remove the fields in the BODY section
Move the fields in H2 into Body Section
Remove any fields in F1 to F5 (this should only the the comment array)
3. Change the Additional Headers and Footers
a. Change the seoncd header (labelled 'Item').
Currently it is set to 'Sales transaction Amounts Work'.'Line Item Sequence'.
Amend this to 'Item Master'.'Item Class Code'
b. Remove the remaining additional headers (3, 4,& 5)
c. Remove the first three additional Footers
d. Change the additional footer (previously the fourth, now the first) 'Comment 4' break field from
'Sales transaction Amounts Work'.'Line Item Sequence'.
Amend this to 'Item Master'.'Item Class Code'
5. Footer Two [F2] is where you can now put your subtotalling.
------
Robert