//Copying data of one table to another table across the company in AX2009
static void CopyData(Args _args)
{
TableA tableA;
TableB tableB;
DataArea dataArea;
;
while select dataArea
{
changeCompany(dataArea.id)
{
tableA= null;
tableB= null;
while select tableA
{
tableB.CustAccount = tableA.CustAccount;
tableB.ItemCode = tableA.ItemCode;
tableB.insert();
}
}
}
info(strfmt("Mission Accomplished"));
No comments:
Post a Comment