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 :
Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    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

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

#1
Rahul Shah Profile Picture

Rahul Shah 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans