Skip to main content

Notifications

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
    Community Member Profile Picture
    Community Member Microsoft Employee 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

  • Suggested answer
    Andy Sather Profile Picture
    Andy Sather 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.

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

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans