Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Location Check Digit Length

(0) ShareShare
ReportReport
Posted on by

Good day,

When I first set-up locations in the warehouse the system automatically assigns a 2 or 3 character check digit. If I highlight a location and click on "Generate Check Digit" I get a new 7 character result. Is there a way to restrict the length of check digits? Duplicates are certainly fine.

Thx

Sheldon

*This post is locked for comments

  • Suggested answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Location Check Digit Length

    Hey Sheldon,

    This line of code does check digit generation when you click button on the form:

    // Generate a random check digit.
    checkText = int2str(random.randomInt(#MacroLib.whsCheckDigitMin, #MacroLib.whsCheckDigitMax));

    As you can see there are 2 macro that you can change to achieve your requirement and no setup that could be done from UI. 

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans