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 :
Small and medium business | Business Central, N...
Suggested Answer

Bill Of Material structure for StockKeeping Unit

(0) ShareShare
ReportReport
Posted on by 5

Want to create bill of Material Structure for Stock Keeping Unit. My all stock keeping unit has its own routing and production BOM.

Not ablet to understand on how to pass this on the BOM structure page. (Procedure 'InitItem') takes only Item as input and not stock keeping unit.
Already tried to define the OnAction trigger on page extension of StockKeeping Unit

My of code is

actions
    {
        //Add changes to page actions here
        addafter(Warehouse)
        {
            group(BillOfMaterials)
            {
                Caption = 'Bill of Materials';
                Image = Production;
                action(BOMStructure)
                {
                    ApplicationArea = Assembly;
                    Caption = 'Structure';
                    Image = Hierarchy;
                    ToolTip = 'View which child items are used in an item''s assembly BOM or production BOM. Each item level can be collapsed or expanded to obtain an overview or detailed view.';

                    trigger OnAction()
                    var
                        BOMStructure: Page "BOM Structure";
                        Item: Record Item;
                    begin
                        Item."No." := Rec."Item No.";
                        item."Replenishment System" := rec."Replenishment System";
                        item."Production BOM No." := rec."Production BOM No.";
                        item."Routing No." := rec."Routing No.";
                        Item.SetRange("Location Filter", Rec."Location Code");
                        Item.setrange("Variant Filter", Rec."Variant Code");
                        BOMStructure.InitItem(Item);
                        BOMStructure.Run;
                    end;
                }
            }
        }
    }
I have the same question (0)
  • Suggested answer
    Andy Sather Profile Picture
    on at
    RE: Bill Of Material structure for StockKeeping Unit

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    I will open this up to the community in case they have something to add.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Bill Of Material structure for StockKeeping Unit

    Umesh,

    What version of BC are you on? In Wave 2 2021 v19 the Production BOM and Routing appear on the SKU Card.

    pastedimage1645412121268v1.png

    Thanks,

    Steve

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans