axapta - How to post Production journal table from code? -
i create code record in 2 tables prodjournaltable (header) , prodjournalprod (lines).
i inserted records in both tables well, without problems.
after want to post journal.
i used code:
prodjournalcheckpostprod::newpostjournal(myprodjournalprod.journalid, true); i execute method, in fact not register journal, in form production journal record have yet registered. call class under button in form, not good. if clicked on button post journal without problem.
the journal , form in :
production control -> journals -> report finished
i'm writing journal report finished.
how post code?
the newpostjournal methods returns prodjournalcheckpostprod object. not post journal.
if really want post journal, call run method.
prodjournalcheckpostprod::newpostjournal(myprodjournalprod.journalid, true).run();
Comments
Post a Comment