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

Announcements

No record found.

News and Announcements icon
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;
                }
            }
        }
    }
  • Suggested answer
    Andy Sather Profile Picture
    Microsoft Employee on at

    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

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 665 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 418 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 280 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans