Hi Friends,
Use the following code to generate the picking list for a sales order. This will give you the same results when you do Sales Order --> Pick and Pack --> Generate picking list.
static void SalesOrder_UpdatePickingList(Args _args)
{
SalesFormLetter_PickingList salesFormLetter;
SalesTable salesTable = salesTable::find('SO-101292');
;
salesFormLetter = SalesFormLetter_PickingList::newPickingList();
salesFormLetter.transDate(systemDateGet());
salesFormLetter.update(salesTable,
systemdateget(),
SalesUpdate::All,
AccountOrder::None,
NoYes::No,
NoYes::No);
}
Use the following code to generate the picking list for a sales order. This will give you the same results when you do Sales Order --> Pick and Pack --> Generate picking list.
static void SalesOrder_UpdatePickingList(Args _args)
{
SalesFormLetter_PickingList salesFormLetter;
SalesTable salesTable = salesTable::find('SO-101292');
;
salesFormLetter = SalesFormLetter_PickingList::newPickingList();
salesFormLetter.transDate(systemDateGet());
salesFormLetter.update(salesTable,
systemdateget(),
SalesUpdate::All,
AccountOrder::None,
NoYes::No,
NoYes::No);
}
Good one Rachit
ReplyDeleteNormally you start all the updates with the construct method of the formletter like this one:
ReplyDeletesalesFormLetter = SalesFormLetter::construct(DocumentStatus::PickingList);
wat if there is a partial picking list??
ReplyDeleteIn case of partial picking list you can update the deliver now qty before running the job and instead of SalesUpdate::All you can pass SalesUpdate::DeliverNow
DeleteHi Rachit ,
DeleteI am using AX 2009 RU 6 and I want to automate below Sales Order Packing slip:
1. SalesLine --> Inventory Reservation
2. Release sales order for picking. This divided into 2 sub step:
2. a) Activation of all physically reserved sales orders
2. b) Release for pick ( Picking List posting)
3. Post Packing Slip
I have automated the step 1 : Reservation ( i.e. I am able to reserve based on Inventory dimension like serial number or batch id ). But regarding step 2 I have below questions:
1. Can I update Deliver Now QTY through code without following step 2. i.e. bypass step 2 ?
2. How to post packing slip using x++?
Regards
Sudhesh Dessai
hi buddy were you successful in doing this?
DeleteHi Rachit,
ReplyDeleteHow can I pass new Inventory Dimension like InventBatchId for picking list Item???
Hi Sumit, Can you please elaborate what do you want to achieve. Thanks!!
DeleteHow to get created pick list PickingRouteId?
ReplyDeleteHi Rachit ,
ReplyDeleteI am using AX 2009 RU 6 and I want to automate below Sales Order Packing slip:
1. SalesLine --> Inventory Reservation
2. Release sales order for picking. This divided into 2 sub step:
2. a) Activation of all physically reserved sales orders
2. b) Release for pick ( Picking List posting)
3. Post Packing Slip
I have automated the step 1 : Reservation ( i.e. I am able to reserve based on Inventory dimension like serial number or batch id ). But regarding step 2 I have below questions:
1. Can I update Deliver Now QTY through code without following step 2. i.e. bypass step 2 ?
2. How to post packing slip using x++?
Regards
Sudhesh Dessai
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDelete