‎2006 Sep 03 3:13 PM
‎2006 Sep 03 4:31 PM
‎2006 Sep 04 2:11 AM
Hi,
If the Spool output has a image or logo, then there is no point in downloading it to a text file. Otherwise, you can use the following FM`s :
RSPO_DOWNLOAD_SPOOLJOB - To download the spool. Provide the filename with .TXT extension.
For eg.
Call Function `RSPO_DOWNLOAD_SPOOLJOB`
Exporting
ID = l_spool_numbr
FNAME = `C:\spool.txt`
.
I tested it, and it is working fine as per your requirement.
Best regards,
Prashant
‎2006 Sep 04 2:39 AM
Hi Claudeni,
How to Convert SAP Script to Text (OTF)?
Manual conversion to OTF format
If there are more than 10 pages,
Tick the spool request
then click Edit -> OTF display -> No. of OTF pages
Convert SAP Script to text
Display the spool request
then click Goto -> List display
Automatic conversion to OTF format
tables: tline.
data: begin of int_tline1 occurs 100.
include structure tline.
data: end of int_tline1.
call function 'OPEN_FORM'
device = 'OTF_MEM'
.........................................
* after CLOSE_FORM
call function 'CONVERT_OTF_MEMORY'
exporting
format = 'ASCII'
max_linewidth = 132
tables
lines = int_tline1
exceptions
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
others = 4.
* write the text file to spool
loop at int_tline1.
if int_tline1-tdline = space.
skip.
else.
write:/ int_tline1-tdline.
endif.
endloop.
Cheers
VJ