web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

How to Post a job card journal for a production order

(0) ShareShare
ReportReport
Posted on by 35

Hi All,

I am using the following code to post job cards in production order but getting an error with the cancelation of the job card in the D365 F&O environment.

Can someone helps me with the same?

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

    // Check/Post journal
    journalCheckPost = ProdJournalCheckPostRouteJob ::newJournalCheckPost(false,
                                                                    true,
                                                                    JournalCheckPostType::post,
                                                                    prodJournalTable.TableId,
                                                                    prodJournalTable.JournalId);
    journalCheckPost.run();
}
I have the same question (0)
  • Verified answer
    WillWU Profile Picture
    22,361 on at
    RE: How to Post a job card journal for a production order

    Hi Samir Sharma,

    What issue are you facing now?

    Please try the below code:

    static void checkPostProdJournalTableRouteJob(Args _args)
    {
        JournalCheckPost journalCheckPost;
        ProdJournalTable prodJournalTable = ProdJournalTable::find("JRAE000162", true);
        
        prodJournalTable.VoucherDraw        = journalVoucherDraw::Post;
        // Check/Post journal
        
        ProdJournalRoute prodJournalCheckPostRoute = ProdJournalCheckPostRoute::newPostJournal(prodJournalTable.journalId,true);
        prodJournalCheckPostRoute.run();
    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 947

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 248 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 176 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans