WINDOWS Live Search

To contact me for any clarifications regarding any posts / information, please mail me at arijit [dot] basu [at] gmail [dot] com


Thursday, November 23, 2006

How to create a PO from AX Classes

static void createPurchase(Args _args)
{
AxPurchTable table;
AxPurchLine line;
;
table = new AxPurchTable();
table.OrderAccount('3023');
table.InventLocationId(‘WAREHOUSE’);
table.save();
line = new AxPurchLine();
line.axPurchTable(table);
line.itemId('A001'); // Item number Q987
line.purchQty(12); // 12 pcs.
line.save();
}

1 comment:

Imran Mahmood said...

Good Example.. But i am a bit curious that what's the basic purpose of Ax classes in Axapta and in which circumstances do we use them?