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

Notifications

Announcements

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

News and Announcements

Season of Giving Solutions is Here!

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
TAHER Mehdi Profile Picture

TAHER Mehdi 3

#2
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#2
Volodya Profile Picture

Volodya 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans