Calling a standard report in loop
I have a requirement wherein we need to develop a Z report, ZREPORT1 for mass deletion of product.
There is a standard report REPORT2 to delete a single product.
The standard report has WRITE statement to display deletion status.
I am calling REPORT2 in a loop from ZREPORT1. Everytime in REPORT2 when WRITE statement is executed, messages got displayed, and I need to press F3 to return the control to report execution.
To call the REPORT2 I have used below code:
WITH param1 EQ...
For mass deletion, where there are thusands products need to be deleted, I cannot press F3 thousand times.
You can use 'exporting list to memory' addition with submit statement. This way, the list output will not be displayed. If needed, you can read the list from memory in your Z program and generate custom output at the end of execution.