We are looking to build a BAQ that includes the material cost by operation.
The production detail report includes material costs separated by part which is a start. Is it possible to see the what tables/fields are being used to populate the actual material costs? Or is there an easier way to go about getting the material costs by operation?
Actual material costs are recorded in the PartTran table. That gives you the job number, assembly seq, and material seq. From there you can join to the JobMtl table and look at the related operation to get the costs by operation.
My only issue is I do not have any jobs or assemblies populate when I press analyze.
select
[PartTran].[PartNum] as [PartTran_PartNum],
[PartTran].[JobNum] as [PartTran_JobNum],
[PartTran].[AssemblySeq] as [PartTran_AssemblySeq]
from Erp.PartTran as PartTran
Part tran has a ton of stuff if it. So filter down to known job number to get your BAQ to return something. If you run it wide open, it’s gonna return a ton of unrelated stuff.
Correct. Before you get that far though, take a look and make sure your materials are related to operations. That step isn’t strictly required. So you might be hosed by your data entry.
For analyzing job - I always recommend the Job Status Dashboard.
It is available as a right click off of the jobnum field.
The material list shows the related operation.
The material transaction tab does not, but could by copying the dashboard and modifying it.