Im testing some code to use for inserting Sales Order Lines
but my code does not automatically put the Item Group (It shows in manual adding)
can i know what code/method used to put the Item Group Financial Dimension of the Sales Order Line?
my code for testing (1 item only):
{
SalesLine.clear();
SalesLine.SalesId = SalesTable.SalesId;
SalesLine.ItemId = ‘100407’;
SalesLine.SalesQty = 5;
SalesLine.itemIdChanged();
SalesLine.InventDimId = InventDim::findOrCreate(inventDim).inventDimId;
salesline.initFromSalesTable(salestable);
SalesLine.createLine();
SalesLine_ds.refresh();
SalesLine_ds.executeQuery();
}
what should i add to get the ItemGroup?
help. thanks.