web
You’re offline. This is a read only version of the page.
close
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,380 Super User 2025 Season 2

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

I have the same question (0)
  • mmv Profile Picture
    11,471 on at

    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

  • Saurav.Dhyani Profile Picture
    14,380 Super User 2025 Season 2 on at

    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?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans