Hi,
Any one can provide some sample code to create the BOM journal using X++ in AX 2009 or AX 2012?
Thanks
Matt
*This post is locked for comments
I have the same question (0)See and copy the related to Inventory Movement Journal for creating/posting by x++ code at
http://learnax.blogspot.com/2010/01/x-code-to-create-and-post-inventory.html
or
http://axhelper.blogspot.com/2011/11/create-post-inventory-journal-in-ax.html
Additionally apply the below listed changes for 'Inventory BOM Journal' :
1) InventJournalTable.JournalType = InventJournalType::BOM;
2) InventJournalTable.JournalNameId = ‘JournalNameId’;
// journal name that has specified as InventJournalName.JournalType=InventJournalType::BOM
3) InventJournalTrans.BOMLine = true; // atleast one line for raw material items with InventJournalTrans.BOMLine = true
4) specify InventJournalTrans’s Inventory Dimensions to be of production related warehouse