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