Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Incorrect item Quantity per in BOMs

(0) ShareShare
ReportReport
Posted on by

Hello,

I am using NAV 2013. Here is the question detail.

One item is used in many Assembly BOMs, but its Quantity per in each BOMs is not correct, for example: 0.01812, 0.02254, 0.00112, etc. 

We want to change these numbers to 1. We can make the change in BOM.

Is there any quick shortcut or other method to update in all BOMs?

*This post is locked for comments

  • Tharanga Chandrasekara Profile Picture
    23,116 on at
    RE: Incorrect item Quantity per in BOMs

    Glad it help you.

  • Community Member Profile Picture
    on at
    RE: Incorrect item Quantity per in BOMs

    Configuration Package allowed me to quickly modify the BOM Lines.

  • Community Member Profile Picture
    on at
    RE: Incorrect item Quantity per in BOMs

    I used Configuration Package to export BOM Component Table, and updated those fields, and then imported the table.

  • Verified answer
    Tharanga Chandrasekara Profile Picture
    23,116 on at
    RE: Incorrect item Quantity per in BOMs

    Export the table to Excel using Rapidstart and then do all the necessary changes to your BOMs and then upload it back. It will sort your issue and you do not require to modify or create any new reports to update quantity per field.  

    Refer below link on how to use Rapidstart.

    msdn.microsoft.com/.../hh997614(v=nav.90).aspx

    msdn.microsoft.com/.../hh997463(v=nav.90).aspx

  • Agusti Carceller Profile Picture
    on at
    RE: Incorrect item Quantity per in BOMs

    Hi,

    You must validate field, not assign  "quantity per" field.

    When you validate fields, "onvalidate" trigger fires code and field "quantity" is correctly updated.

    ProductionBOMLine.RESET;

    ProductionBOMLine.SETRANGE(ProductionBOMLine."No.", XXXXXX);

    IF ProductionBOMLine.FINDSET THEN

     REPEAT

       ProductionBOMLine.validate("Quantity Per",1);

       ProductionBOMLine.MODIFY;

     UNTIL ProductionBOMLine.NEXT = 0

    Regads

    Agustí

  • Suggested answer
    Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at
    RE: Incorrect item Quantity per in BOMs

    Hi Allen,

    This will be a customization. Let me write the code vaguely, but please find a developer to properly code it.

    Since you are using the Production BOM Line table (Table 99000772), I would design my code as the following.

    ProductionBOMLine.RESET;
    ProductionBOMLine.SETRANGE(ProductionBOMLine."No.", XXXXXX);
    
    IF ProductionBOMLine.FINDSET THEN
    BEGIN
      REPEAT
        ProductionBOMLine."Quantity Per" = 1;
        ProductionBOMLine.MODIFY;
      UNTIL ProductionBOMLine.NEXT = 0
    END; 

    Please note that XXXXXX is the item which you are going to change the "Quantity Per" value and ProductionBOMLine is a record variable to the table 99000772.

    Please let us know if it works for you.

     

  • Suggested answer
    Jens Glathe Profile Picture
    6,092 on at
    RE: Incorrect item Quantity per in BOMs

    Hi Allen,

    shortcut: no. As a programmer, I would create a batch report that updates all Assembly BOM lines with this item to 1, probably with validate. Do you have more than one item with this issue? Sounds like somebody has changed the base unit of measure...

    with best regards

    Jens

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans