metropoj
8th September 2010, 18:41
OK, TFGLD3402m000 Print Trial Balance includes standard reports from Baan such as TFGLD340211000. User wants to keep this report but make some changes to it and create a new report out of it. Seems fairly straight forward task.

I copy the 340211000 report AS IS to a new name 340211002 for example, compile it and no errors show up. Add the new report into the session as an additional entry. I have NOT changed the report in any way at this point ...

I exit out of Baan, re renter and run the session, choose the new report and it will not work. The last line of values in the report repeats itself in the details section over and over again instead of all the correct details content.

Rather odd ! Any suggestions ? We do have Development licences.

I can make changes to the content of the original report and as long as I don't change the name of the report, it is fine.

Infor suggests a non specific solution which may or may not help but it needs a ton of dependencies so we are leery to install it ....

Suggestions what we can do here ?

mark_h
8th September 2010, 19:35
Well for just changing a report you should not even have to exit the session, much less baan. Have you tried debugging the report? Do you have the session script? Sometimes session scripts do different things based off the report selected(report number or name).

BaanInOhio
8th September 2010, 19:40
Some sessions use program scripts that have logic dependent on the selected report number and/or group. This is one of those sessions. Therefore, if you copied a standard report that is in report group 1 and report number 1 to a different group and/or number, you will have to change the program script to also use the new report number/group where the 1's are checked. You can find these by looking for predefined variables "reportgrp" and "reportno".

metropoj
8th September 2010, 20:17
OK, I check those things out, thanks. I normally don't exit after creating reports and restarting Baan but when things started looking strange i figured it was worth a shot ....

I'll take a boo through and see what happens ... thanks for the tips ...

metropoj
8th September 2010, 20:49
Ha, good call guys, thanks for the detail BaaninOhio, I don't do this very much.

I ended up changing the working report in position 1, 1 to 1,5 and put my non working report into the old 1,1 position and now it works as it should and the original report is now busted.

So i gotta read up on some debug commands to try and find those reportgrp and reportno fields and see what I can find out and change there.

metropoj
15th September 2010, 22:22
Ended up needing Infor to create a solution patch to fix this one session up ...