Заведите свой собственный мап, в котором будут перечислены поля для синхронизации и сделайте что-то типа такого (вместо CustVendTable - ваш мап)
X++:
{
DictTable dictTable = new DictTable(tableNum(CustVendTable));
int i;
CustVendTable _vendTable;
CustVendTable _custTable;
CustTable CustTable;
VendTable VendTable;
;
select CustTable;
vendTable.clear();
_vendTable = vendTable;
_custTable = custTable;
if (dictTable)
{
for (i=1;i<=dictTable.fieldCnt();i++)
{
try
{
_vendTable.(dictTable.fieldCnt2Id(i)) = _custTable.(dictTable.fieldCnt2Id(i));
}
catch
{
}
}
}
info(_vendTable.xml());
}
Блок try-catch нужен для случаев отсутствия ссылок на поля в таблицах