Wednesday, April 21, 2010

Post a pick list journal through X++ code

Many times we are required to post a pick list journal through X++ code. Sometimes developers fear about how lengthy the code will be to post a journal but it's just a 3 lines code.
The following code can be used to posts a pick list journal.
You should have JournalId which is required to be posted. in this case i have used table object _record which holds journalId

ProdJournalCheckPostBOM prodJournalCheckPostBOM;
ProdJournalCheckPostBOM = ProdJournalCheckPostBOM::newPostJournal(_record.JournalId,false);;


No comments:

Post a Comment