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 AX (Archived)

Serial Number Validation during Sales Order Picking

(0) ShareShare
ReportReport
Posted on by 95

Hello experts,

I am looking at adding some extra logic for our serial controlled items during the sales picking process. I am wanting to make it so the person picking the item is prompted to scan the serial number twice and use some X++ logic to compare the two and ensure they are the same number. I would like to make it throw an error if:

A) The serial number has been used before.

B) The two serial numbers scanned do not match.

C) The serial number scanned isn't at least a certain length of characters long.

If anyone could point me in the right direction to achieve this it would be greatly appreciated!

I am currently running AX 2012 R3 CU10.

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • JHickey Profile Picture
    95 on at

    Hi,

    Sorry I should have been more clear - currently I am just looking for where I would go to place this code. Although I may be back for help with more later on.

    thanks,

    Jeff

  • JHickey Profile Picture
    95 on at

    Crispin,

    Were you able to locate which class/method that this code would need to be developed in? Any information would be greatly appreciated!

    Thanks,

    Jeff

  • JHickey Profile Picture
    95 on at

    Hi Crispin,

    Thanks for the reply. We scan the serial number during the picking process. When the picking team gets to an item that is serialized a new screen appears on their devices and requires a serial number to be scanned. the closest we have been to finding where this lives is in the WHSWorkExecute Class in the PickFromLicensePlate Method. Inside of there we can see a variable "_assignSerial" and by default is set to False but, obviously, when the item is serialized, it changes to True.

    We are trying to find the piece of code that prompts the user to scan the serial number as that is where I would like to add some more logic or extra steps for the picker to perform before being able to continue to the next item.

    I hope that makes sense and hope you can help!

    Much appreciated,

    Jeff

  • JHickey Profile Picture
    95 on at

    Crispin,

    I added some break points in that class and ran through a scenario of picking a serialized item and it appears as if it never even referenced that class as it never hit any of my breakpoints. Any ideas?

    Thanks,

    Jeff

  • JHickey Profile Picture
    95 on at

    Hi Crispin.

    We have located where the capture serial is happening. It is in the WHSWorkExecuteDisplayPickPack\processWorkLine between lines 1212 and 1254.

    For starters, I am wanting to simply check to see if its been used before (exists in Inventserial.inventserialID) and if it has been, display an error message and force them to scan a new serial id. Is this something you would be able to assist with?

    Thanks for pointing us in the right direction!

    Jeff

  • JHickey Profile Picture
    95 on at

    Sorry, typo - It is in the WHSWorkExecuteDisplay\processWorkLine***

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans