Hi,
I am working on GL importing via AIF using XML file in AX 2012 . The data has been imported successfully in GL without posting.
I have added the code for direct posting via AIF. The following service and class are used to post in GL.
Service: LedgerGeneralService
Class : AxdLedgerGeneralJournal --> prepareForSave method
I have added the below code for direct posting via AIF in prepareForSave method.
ledgerJournalTable = LedgerJournalTable::find(ledgerJournalTable.JournalNum);
ledgerJournalCheckPost = ledgerJournalCheckPost::newLedgerJournalTable(ledgerJournalTable,NoYes::Yes);
ledgerJournalCheckPost.run();
Even with the above code, direct posting doesn’t happen in GL. But the data is imported in GL with open status.
I am trying to debug the prepareForSave method code but the debugger doesn't call this method.
My queries below
Did I add the code in the right class and method? If yes, why the GL doesn't post via AIF?
Can anyone throw light on this?
Thanks,
Peter
↧
GL posting via AIF in AX 2012
↧