Вот так будет лучше, чтоб форму не создавать.
X++:
public void lookup(FormControl _formControl, str _filterStr)
{
TableLookup_RU sysTableLookup = new TableLookup_RU();
InventTrans inventTrans;
FormRun lookupForm;
;
sysTableLookup.parmTableId(tableNum(InventTrans));
sysTableLookup.parmCallingControl(_formControl);
sysTableLookup.addLookupfield(fieldNum(InventTrans, InventTransId));
lookUpForm = sysTableLookup.formRun();
this.performFormLookup(lookUpForm, _formControl);
if(sysTableLookup.WaitAndSearch(lookUpForm, fieldnum(InventTrans,inventTransId)))
{
inventTrans = lookUpForm.dataSource(1).cursor();
}
}