AX – D365FO – Create and post a Transfer InventJournal in Dynamics AX 2012

The sample code below creates a Transfer InventJournal and posts it public static boolean createInventTransferJournal() { InventDim fromInventDim; InventDim toInventDim; InventJournalNameTransfer journalIdParameter; InventJournalName transferJournalName; InventJournalTable inventJournalTable; InventJournalTable updateInventJournalTable; InventJournalTrans inventJournalTrans; JournalCheckPost inventJournalCheckPost; ; try { ttsBegin; journalIdParameter = InventParameters::find().TransferJournalNameId; if (journalIdParameter == '') { return false; } transferJournalName = InventJournalName::find(journalIdParameter); //Create invent journal header inventJournalTable.clear(); … Continua a leggere AX – D365FO – Create and post a Transfer InventJournal in Dynamics AX 2012 →