function updateAggregation(oTable, oBindingInfo) {
		const mAggregation = create$$Aggregation(oTable);
		const sSearch = oBindingInfo.parameters.$search;

		if (mAggregation && sSearch) {
			delete oBindingInfo.parameters.$search;
			mAggregation.search = sSearch;
		}

		oBindingInfo.parameters.$$aggregation = mAggregation;

		const bHasGrandTotal = Object.keys(mAggregation?.aggregate || {}).some((sKey) => {
			return mAggregation.aggregate[sKey].grandTotal;
		});
		oTable.getModel("$sap.ui.mdc.Table").setProperty("/@custom/hasGrandTotal", bHasGrandTotal);

		const V4AggregationPlugin = PluginBase.getPlugin(oTable._oTable, "sap.ui.table.plugins.V4Aggregation");
		V4AggregationPlugin?.declareColumnsHavingTotals(getColumnsWithTotals(oTable).map((oColumn) => oColumn.getInnerColumn()));
	}
Sets the $$aggregation binding parameter to the binding info and updates the table, for example, to prepare it for displaying the grand total.

@param {sap.ui.mdc.Table} oTable Instance of the table
@param {sap.ui.base.ManagedObject.AggregationBindingInfo} [oBindingInfo] The binding info object to be used to bind the table to the model