\Bitrix\Sale\ShipmentItem::setQuantity($quantity);
Method sets amount of product included into a shipment. Static method.