Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How to create BOM Journal via code using X++?

Posted on by Microsoft Employee

Hi,

Any one can provide some sample code to create the BOM journal using X++ in AX 2009 or AX 2012?

 

Thanks

Matt

 

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: How to create BOM Journal via code using X++?

    See and copy the related to Inventory Movement Journal for creating/posting by x++ code at

    http://learnax.blogspot.com/2010/01/x-code-to-create-and-post-inventory.html

    or

    http://axhelper.blogspot.com/2011/11/create-post-inventory-journal-in-ax.html

     

    Additionally apply the below listed changes for 'Inventory BOM Journal' :

    1) InventJournalTable.JournalType = InventJournalType::BOM;

    2) InventJournalTable.JournalNameId = ‘JournalNameId’;

    // journal name that has specified as InventJournalName.JournalType=InventJournalType::BOM

    3) InventJournalTrans.BOMLine = true;  // atleast one line for raw material items with InventJournalTrans.BOMLine = true

    4) specify InventJournalTrans’s Inventory Dimensions to be of production related warehouse

     

      

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans