Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Calculate Inventory Batch - Dimension Set ID 0 with BIN

(0) ShareShare
ReportReport
Posted on by 14,314 Super User 2025 Season 1

Hi All,

Just a quick query. 

Once of my customer is using bins in Location. When user runs the Calculate Inventory Batch the Dimension SET ID on all lines comes as ZERO.

When i debugged it, i found that there is a piece of code which done that in Standard W1 Version -

 IF Location."Bin Mandatory" THEN
      "Dimension Set ID" := 0;


Just wanted to know the Reason why the Dimension Set ID is set to Zero in case Location have BINS, as its a tedious job to re-insert dimension in all lines appearing from the batch.

Thanks in advance.

*This post is locked for comments

  • Saurav.Dhyani Profile Picture
    14,314 Super User 2025 Season 1 on at
    RE: Calculate Inventory Batch - Dimension Set ID 0 with BIN

    Dear mmv ,

    IF you try with the batch it does not pull the dimension set ID from Ledger.

    My Question is why & What is the logic behind it?

  • mmv Profile Picture
    11,467 on at
    RE: Calculate Inventory Batch - Dimension Set ID 0 with BIN

    Hi,

    But I could see that the "Dimension Set ID" is re-initialized here:-

       IF DimBufMgt.GetDimensions(DimEntryNo2,TempDimBufOut) THEN BEGIN

         TempDimSetEntry.RESET;

         TempDimSetEntry.DELETEALL;

         IF TempDimBufOut.FIND('-') THEN BEGIN

           REPEAT

             DimValue.GET(TempDimBufOut."Dimension Code",TempDimBufOut."Dimension Value Code");

             TempDimSetEntry."Dimension Code" := TempDimBufOut."Dimension Code";

             TempDimSetEntry."Dimension Value Code" := TempDimBufOut."Dimension Value Code";

             TempDimSetEntry."Dimension Value ID" := DimValue."Dimension Value ID";

             IF TempDimSetEntry.INSERT THEN;

             "Dimension Set ID" := DimMgt.GetDimensionSetID(TempDimSetEntry);

             DimMgt.UpdateGlobalDimFromDimSetID("Dimension Set ID",

               "Shortcut Dimension 1 Code","Shortcut Dimension 2 Code");

             MODIFY;

           UNTIL TempDimBufOut.NEXT = 0;

           TempDimBufOut.DELETEALL;

         END;

       END;

    Best Regards,

    MMV

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

🌸 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…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans