Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How to get the production bom item cost x++

(0) ShareShare
ReportReport
Posted on by 60

Hi,

I'm trying to get the production bom item cost price per unit through code. 

Does anyone have an idea how to do that?

Regards,

Brightlin

  • André Arnaud de Calavon Profile Picture
    292,892 Super User 2025 Season 1 on at
    RE: How to get the production bom item cost x++

    Hi Brightlin,

    Can you provide some examples? Note that the inventory closing or recalculation can indeed create an adjustment on the inventory transaction which is not reflected on the production order.

  • Brightlin Profile Picture
    60 on at
    RE: How to get the production bom item cost x++

    I was using the calculated methods that comes with AX. When I was comparing it to the inventory transaction cost price, at times is was the same other time not.

  • André Arnaud de Calavon Profile Picture
    292,892 Super User 2025 Season 1 on at
    RE: How to get the production bom item cost x++

    Can you share the code you used with your approach? That might help understanding where to assist you.

  • Brightlin Profile Picture
    60 on at
    RE: How to get the production bom item cost x++

    I tried using the calculated methods by since the bom items have been invoiced, I don't get the correct cost price from those methods comparing to their respective inventory transactions.

  • André Arnaud de Calavon Profile Picture
    292,892 Super User 2025 Season 1 on at
    RE: How to get the production bom item cost x++

    If I understand you correctly, you need the cost price from the related inventory transaction. If I'm not mistaken, the calculated method is available on the table. You can try to find the correct InventTrans in coding and then call the display method to get this amount.

    I'm not sure if you need all cost from all BOM lines or one single item line.

  • Brightlin Profile Picture
    60 on at
    RE: How to get the production bom item cost x++

    Sure André.

    When you go to Production control -> Common -> Production orders -> All production orders -> open a production -> Production order tab -> under Production details group -> BOM -> select a bom item -> click on the Inventory drop down -> Transaction -> and there you have the cost amount field, which a calculated method.

    For the invoiced production orders parent item, I want to get it's bom item cost amount.

    How to get the bom item cost amount?

    Am I clear?

    Regards,

  • André Arnaud de Calavon Profile Picture
    292,892 Super User 2025 Season 1 on at
    RE: How to get the production bom item cost x++

    Hi Brightlin,

    Can you elaborate on the business process where you need this? What exact cost do you want to retrieve? Estimated, WIP, or cost calculated?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,892 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,772 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans