web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How do you tell SalesFormLetter_PackingSlip which picklist/inventTrans you want to post?

(0) ShareShare
ReportReport
Posted on by 282

Here's what I'm trying to accomplish:
The user will post a picking list for items in a sales order. The warehouse will (through an interface) tell AX when the item was shipped. In this interface, it will include the serial number of the item it shipped.

I have to unpick the picking line and repick it with the serial number, then I have to post the packing slip for THAT serialized picked line.

Here's my problem:
The code will unpick the items that are picked and create multiple picking lines (split them) and store the serial number on one of those lines (with the new inventDimID). However, when the packing slip gets posted, one of the lines WITHOUT the serial number ends up as StatusIssue = Deducted, and the line with the serial number ends up as StatusIssue = Picked.

I need the line that was picked with the serial number to end up as the line that is "deducted." How do I tell SalesFormLetter_PackingSlip which inventTrans to deduct?

Remember all the inventTrans lines use the same InventTransId. There is only one salesLine on the salesOrder. I've tried storing the new inventDimId for the serialized inventTrans in the salesParmLine table, this does not work. I've tried storing the new inventDimId in the SalesLine that gets passed into the salesFormLetter class. This also does not work.

It seems like the code does a select firstonly on the inventTrans for this inventTransId and statusIssue::Picked. It just uses the first one it finds. Can anyone offer any suggestions??

Thanks!

*This post is locked for comments

I have the same question (0)
  • Denis Macchinetti Profile Picture
    16,444 on at

    Hi

    In my opinion you have to modify the class InventUpd_Physical method newSalesPackingSlip.

    Here you have to manage the two internal method parmInventDim and parmInventDimParm. In this way the select Statement on InventTrans will consider the correct Dimensions. You can see for example the third query in the method updatePhysicalIssue.

    I hope to understand well the issue.

    Regard

    Denis

  • Community Member Profile Picture
    on at

    I am sure that there are a lot of things that you considered before implementing, however looking at it from a functional point of view i have a question.

    Why do you need to unpick a line? It seems to me that the line was then never really picked.

    A combination of picking list/picking registration could possibly prevent the unpicking in your process, and thus allow creating a packing slip only on those items that were really picked.

  • GeorgeC Profile Picture
    1,865 on at

    Hi,

    I guess that you realy haev a good reason to pick all items automatically and then unpick and repick them.

    In that case, you may want to explore the following:

    After you have un-picked the items, it would be useful to focus on splitting the picking lists, not the picking route lines. In that way you could end up with at least 2 shipments - 1 for the correct serial number and 1 for the rest of the items. Of course, splitting the pick list and the shipments will give you separate picking route lines too.

    One you have split shipments, you should be able to post packing slip only for the required shipment. WMS2 can do this out of the box - by using the Packing slip button on the Shipments form. You can also use the same concept for simple picking without WMS2 - our developers have done this and it did not take them a lot of time. There's a method to create the lines in the salesParmLines table from a shipment, you just have to make sure that you are passing the correct parameters/data sets.

    George

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans