05-10-2011 8:24 PM
Dear All,
I'm a beginner in SAP ABAP programs, reports so there are a lot of things I still don't know. I try to set up a batch job for running reports, but the output comes up in a different way that I want.
I set up a job for running a report. The report has 43 columns, but the spool displays only a few of them although the format of spool report set up to X_65_255.
I've read that the spool wraps the report by default fitting for printing, so it displays only the amount of data that can be seen on the screen. But this way, I loose the later columns.
How can it be set the spool to display the full report and not wrap it? (It's also problem with the lines, so those should be also corrected if possible).
I would have another question too. If I get the report in a requested way, how can that be set up to mail it in a txt format? xls would be the best but I read that it cannot be sent straight in xls format.
I would very appreciate if you could help!
Thank you in advance!
Zoltan
05-10-2011 10:34 PM
Hello Zolaxy,
I think it can not be extended, but it can help you:
http://sample-code-abap.blogspot.com/2008/01/printing-multiple-line-header-and.html
On this link explain how use a RKD_WORD_WRAP Function Module. Appears that there may be a possible solution.
To send the result by mail you can check the below links:
http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-Sendthespooldatatoanemail+address.
http://www.sap-img.com/abap/sending-mail-with-attachment-report-in-background.htm
I hope that you find useful information.
Greetings.
Dave
05-11-2011 1:13 PM
Hi ,
To display wide spool requests implement the SAP Note 1226758. This might help you.