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)

Post packing slip using shipment through x++ in Dynamics AX 2012

(0) ShareShare
ReportReport
Posted on by

Hello,

I am trying to post a single packing slip for multiple sales orders through code using wmsshipment.

If I only use this line of code:

     SalesFormLetter.update(wmsShipment,systemDateGet(), SalesUpdate::DeliverNow, AccountOrder::Account);

Instead of posting packing slip for one specified shipment, it includes lines from all sales orders that are ready to to pack slip posted.


But if I do this:

    Set shipmentsToPostSet = new Set(Types::String);   
    WMSShipment wmsShipment = WMSShipment::find('SHP0000034');

    shipmentsToPostSet.add(wmsShipment.shipmentId);   
    salesFormLetter.parmLineIdSet(shipmentsToPostSet.pack());   
    SalesFormLetter.update(wmsShipment,systemDateGet(), SalesUpdate::DeliverNow, AccountOrder::Account);

It posts packing slips only for sales orders associated with the shipment but creates separate packing slips for each sales order.

I want to get it to consolidate the packing slip.

Can anybody please help with this issue if you have any information?

Thanks,

Charu Jadhav

 

 

*This post is locked for comments

I have the same question (0)
  • ARPIT CHAVHAN Profile Picture
    4,359 on at

    hi Charuhas ,

    My requirement is somehow similar to yours, 

    I have to post packing slip, shipment wise. Suppose in a load i have three lines with first two having same shipment and the last one with different shipment. then two packing slips should get generated.

    i.e.,  it should consolidate based on shipment id.

    Have you found any solution ?

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#1
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#1
Pratik Bhosle Profile Picture

Pratik Bhosle 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans