А у Вас какая версия Axapta?
Я вот беру код типа:
------
X++:
ttsbegin;
if (!inventTable.AFPGroupId) {
if (cry) warning(strfmt("@KCL2642", inventTable.ItemId));
return;
}
while select AFPGroupLines
where AFPGroupLines.GroupId == inventTable.AFPGroupId {
AFPUnit::createUnit(inventTable.ItemId, AFPGroupLines.InventLocationId, _combination);
}
ttscommit;
----
Запускаю проверку Best Practices, и никаких предупреждений не вижу.