Material costs by operation BAQ


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.

Thanks, this is exactly what I am looking for.

My only issue is I do not have any jobs or assemblies populate when I press analyze.

[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.

The scroll wheel is my friend…


1 Like

Any clue why I’m not getting any values under assembly?

Not without seeing some of your data. What does your job look like? 0 is a valid sequence number.

Here is a standard MOM:

Yup. Your assembly seq is 0. So 0 is correct. What are you expecting to see?

Ahh, apologies - I’m looking to see the related operation which needs to be pulled from the joined JobMtl table?

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.

All of our materials are linked to an operation via “related operation”.

In phrase build there is no automatic link created between PartTran and JobMtl. Is there a middle or shared table I need to bring in?

no… Not everything is automatic. Stop and think for a second of you how you would need to join those two tables, should be pretty straight forward.

I’ve already manually linked them was just curious if I was missing something…

When I create manual links, I try to use an index and choose as many fields from left to right in my BAQ linkage:


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.