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:
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?
Post a Comment