Report Writer doesn't restore work area automaticaly like SCAN does. Your function should do that before it returns control.
>I have created a function that is stored in the DBC and need to use this function in a report (I'm using the Mere Mortals framework). The function will calculate a rate but its parameters come from aggregate values calculated in a summary band. Due to this, the function call seems to be the only way to do it. The function will retrieve the rate from a business object view (an unrelated view not used in the report).
>
>However, the report just lists the same detail row over and over for the number of rows in the report view. It seems the report is not selecting the report view work area when the function returns and lists the first line.
>
>Does anybody know what might be causing this?
>
>Thanks in advance.
>
>Bob F.
--sb--