This post is machine-translated. The original post in german language can be found here.

Check/Post a route card journal for a production order

Below is a sample of X++ code which can be used to check or post a route card journal for a production order. Changing the value of the Enum JournalCheckPostType controls if the journal is checked or checked and posted.

static void checkPostProdJournalTableRoute(Args _args)
{
    JournalCheckPost journalCheckPost;
    ProdJournalTable prodJournalTable = ProdJournalTable::find("00943", true);

    // Check/Post journal
    journalCheckPost = ProdJournalCheckPostRoute::newJournalCheckPost(false,
                                                                    true,
                                                                    JournalCheckPostType::Check,
                                                                    prodJournalTable.TableId,
                                                                    prodJournalTable.JournalId);
    journalCheckPost.run();
}
These post applies to following version:
Dynamics AX 2012

paula 08/07/2024 13:41 | #1

using newJournalCheckPost(false,
true,
JournalCheckPostType::Check,
prodJournalTable.TableId,
prodJournalTable.JournalId);
by changing JournalCheckPostType::Post, would check and post? I mean, if the validation is wrong, it throws an error or post it anyway?

 
 

 

 
 
 
Posts of the actual month
November 2024
MoTuWeThFrSaSu
 123
45678910
11121314151617
18192021222324
252627282930 
 
© 2006-2024 Heinz Schweda | Imprint | Contact | German version | Mobile version
In order to provide you with better service, this site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.