Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Picking list generation through x++

$
0
0

Hi All,

I need to generate Picking list on the batch job automatically by selected query. Like add Shipping date range today..today+2

I found this example:

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);
}

But on this example I can't specify what kind lines I want to add to the SO picking list.

I need filter Sales Lines by some ranges and add it to the Picking List.

Next day when Batch job will run and will find new lines by selected query ranges need to add to another picking list and so on.

Is there other example where I can specify which lines I want to see on the picking list?


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>