Мой код:
X++:
[ExtensionOf(classstr(SalesPurchReport_RU))]
final class SalesPurchReport_RU_Extension
{
protected void adjustDynamicData()
{
next adjustDynamicData();
select firstonly forupdate dynamicData
order by Qty desc
where dynamicData.InternalId == header.InternalId;
}
}
TmpSalesPurchReportLine_RU dynamicData; - определено как глобальная переменная в классе SalesPurchReport_RU.