The QR SET REPORT TABLE command sets the current table for the report area whose reference was passed in area to the table whose number was passed in aTable.
It is necessary for a table to be assigned to the report since the report editor will be using the current selection for that table to display the data, perform computations and propagate relations, if needed.
If you pass an invalid area number, the error -9850 will be generated.
If you pass an invalid table value, the error -9852 will be generated.