I need to create and post production order report as finished journal thur code with batch number and serial number in AX 2012
Can anyone help me
You need to use ProdJournalCreateProd and ProdJournalCheckPostProd classes.
The method ProdJournalCreateProd::newReportFinished can help you a lot, I guess. Then post the journal with ProdJournalCheckpostProd. Make sure you set the correct parameters using the parm methods, as you would when manually creating a raf journal.