Был Джобик для создания строки
X++:
static void CreateInventTransferTable(Args _args)
{
InventTransferTable InventTransferTable;
InventTransferLine InventTransferLineNew;
InventTable inventTable;
InventDim inventDim;
itemId ItemId = '0681602'; // Код товара
InventLocationId InventLocationId = '005'; //Склад откуда
;
inventTable = inventTable::find(ItemId);
if (!inventTable)
throw error("Не найдена номенклатура!");
InventTransferTable = InventTransferTable::find('ПЕР0000034');
if (!InventTransferTable)
throw error("Журнал не найден !");
InventTransferLineNew.clear();
InventTransferLineNew.initFromInventTransferTable(InventTransferTable,true);
InventTransferLineNew.ItemId = inventTable.ItemId;
InventTransferLineNew.initFromInventTable(inventTable);
InventMovement::bufferSetRemainQty(InventTransferLineNew,InventMovSubType::None);
InventMovement::bufferSetRemainQty(InventTransferLineNew,InventMovSubType::TransferOrderTransitFrom);
InventTransferLineNew.insert();
}