Produced, or purchased? Either way, you'll need to start at the origin and follow through to the IM_ItemCost file. I think PO_ReceiptTierDistribution if purchased and BM_ProductionTierDistribution or PM_TransactionTierDist if manufactured.
If you choose IM_ItemCost to create a new UDF and select the source of Business Object, you can pick the different business objects and see where the UDF has to be added in order to end up being updated with the register in question.

I assume you're wanting to print it on the invoice, so you'd also need to add it to the SO_InvoiceTierDistribution so it can be added to the SO_InvoiceWrk file. That comes from the LotSerialNo file, which is apparently the IM_ItemCost file screened for just lots/serial nos.
------------------------------
Beth Bowers
Dog Mom, first and foremost. The rest is all just necessary to keep the dogs in biscuits.
(269) 358-0989
------------------------------