MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Technical Library > Manufacturing > Shop Floor Control > Programs > Scrap Expense Detail Report - Purpose > Scrap Expense Detail Report - Calculations

Scrap Expense Detail Report - Calculations

SF535E

A.   Housekeeping

1.   Key fields are set up; parameter lists, work fields, and program constants are defined.

2.   The company name is retrieved from the System Control file (CT100M).

3.   The date format is retrieved from Reference File category 049.  If this category is not found, a message is sent to the system operator, the date format defaults to MMDDYY, and processing continues.

B.   Mainline

1.   The Scrap Transaction Audit Trail (IC235BP) is read for all Inventory Accounting transactions that meet the criteria entered by the user.  (An OPNQRYF command in the calling command language program selects only data that has been processed in an Inventory Accounting trial or post run.)  User-specified criteria are passed from the Scrap Expense Summary/Detail Call program (CF234E).

2.   The scrap quantity, material cost due to scrap, labor cost due to scrap, overhead cost due to scrap, and total cost due to scrap are added to the running totals for the scrap code.

3.   When a new scrap code is encountered, the total line for the scrap code is printed and the scrap code totals are added to the running totals for the part.  Similar processing occurs when a new part number , workcenter, department, plant, or company/location is encountered; the totals for that level are printed and added to the running totals for the next level.