09-17-2008 9:44 AM
Hi all,
My report program uses REUSE_ALV_GRID_DISPLAY for the output and this displays the output in ALV and if required they can print.
But my client wants that whole program should run in a background and the output needs to be sent to spool list instead of displaying or printing.
Kindly help to achieve this.
regs,
raja
09-17-2008 9:46 AM
09-17-2008 9:46 AM
09-17-2008 9:46 AM
Why dont you just run it in background getting the output in the spool?
09-17-2008 9:47 AM
By Default the ALV report output will be send to Spool or Print...when it run in Background. It Depends on how you set the properties of the Spool settings while Defining the Background job.
In your case you/some one set the properties to print. instead set the property to send to spool now option.
09-17-2008 9:49 AM
09-17-2008 10:32 AM
When it is executed in background.
Check for SY-BATCH, it wiil be X.
Then if the width exceeds the page then split the output and use write statement to display.
You will get it in the spool.
Regards,
Ranjith
09-18-2008 2:51 AM
thanks guys for your suggestion, i created another program with SUBMIT XXX to SAP-SPOOL option.
regs,
raja