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,302 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
    Saurav.Dhyani 14,302 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
    mmv 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans