Same report different output

I am running report 99000756 (Detailed Calculation) from a codeunit. I am passing some parameters and a filter on Item record.

When I run it with USEREQUESTFORM(FALSE) the output includes the original version of the Production BOM.

When I run it with USEREQUESTFORM(TRUE) and select either Print or Preview, the output shows the current version of the Production BOM.

Any ideas? Thanks in advance.

Hi,

“Calc.Date” is being initialised to WORKDATE when using the request form (in the OnActivate trigger). You will need to assign this when calling from a codeunit by using a function.

Thanks. That’s exactly what I needed.

Glad to Help [:D]