You can print multiple reports with ease using the simple structure below.
DECLARE-REPORT can declare n number of reports (max 99) and use it for the respective printing. There is catch at this point. What if the reports are dynamic and you cannot forcast the number of reports that gets generated.
Then the below code can be handy.
You have the while loop and NEW-REPORT part inside it. Make the file name dynamic based on the variables in your code. And that's it.
No headaches of declaring multiple reports in the begin-setup and you can get n number of reports (max infinity), without the limitation of 99.
Hope, this will be a handy code for you.









