Unable create shipment from same sales order by code

  • 21 March 2022
  • 2 replies


I’m trying to create shipment by code. 

I’ve already create the shipment successfully, but while I trying to create shipment from same sales order but different inventory, it’ll show message below.

Here is my code I currently use.

            foreach (SOShipmentPlan res in tmpShipmentPlan.Cache.Cached)


                //foreach(list in List<SOPreShipmentLine> lists) { }

                var plan = (SOShipmentPlan)res;

                plan.Selected = true;

                SOOrder order = PXSelect<SOOrder,

             Where<SOOrder.orderType, Equal<Required<PreAddSOFilter.orderType>>,

               And<SOOrder.orderNbr, Equal<Required<PreAddSOFilter.orderNbr>>>>>.Select(this, plan.OrderType, plan.OrderNbr);


                graph.CreateShipment(order, shipment.SiteID, shipment.ShipDate, false, shipment.Operation, null);





Is there any way to create new shipment from same sales order by code? Thanks!


Best answer by Naveen Boga 21 March 2022, 09:08

View original

2 replies

Userlevel 7
Badge +18

Hi @goldas54  From the Sales Order screen, if there is any OPEN shipment is available, the Sales Order status will be moved to “Shipping” status, and the system will NOT us to create another shipment until we confirm the first OPEN shipment.


Please confirm the first shipment and then create the new shipment.

Userlevel 7
Badge +18

@goldas54  If you want to still, create another shipment (When there is an OPEN shipment already), then you need to override the Create Shipment Logic and work on it.



About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved