Linda Nemitz
3rd March 2006, 17:45
I am writing a Baan report and in my program scripts I have specific criteria which will determine if the selected record will be printed or not. At the end of the report, I want to show a section of totals of scrap, good pieces, and hours by part number and operation (this could be any number of operation/part number combinations). I thought of creating an array, but I am not sure how to create it for this multi-dimensional (oper, part, qty good, qty scrap, hours). Is this the best method, or is there a better way? As I read the detail and determine that a record is good, I want to see if the part/oper already exists in the array. If it does, just add to the totals for hours, scrap, good qty. If the operation/part does not exist, I want to add the operation/part with the totals for that oper, part to the array. At the end of my report, I then would read through this array and print the detail.
Any help would be greatly appreciated.
Any help would be greatly appreciated.