<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SapScript in text file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-in-text-file/m-p/1546670#M248493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Claudeni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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 -&amp;gt; OTF display -&amp;gt; No. of OTF pages 
Convert SAP Script to text 
Display the spool request 
then click Goto -&amp;gt; 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. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2006 01:39:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-04T01:39:20Z</dc:date>
    <item>
      <title>SapScript in text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-in-text-file/m-p/1546667#M248490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I save a SapScript spool in text file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Sep 2006 14:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-in-text-file/m-p/1546667#M248490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-03T14:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: SapScript in text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-in-text-file/m-p/1546668#M248491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a text file?  I think it would like garbage anyway, a PDF would definitly be better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this you will need to convert the OTF code to PDF using the function module CONVERT_OTF_TO_PDF(i think that is named like this).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Sep 2006 15:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-in-text-file/m-p/1546668#M248491</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-03T15:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: SapScript in text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-in-text-file/m-p/1546669#M248492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSPO_DOWNLOAD_SPOOLJOB - To download the spool. Provide the filename with .TXT extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Function  `RSPO_DOWNLOAD_SPOOLJOB`&lt;/P&gt;&lt;P&gt;Exporting&lt;/P&gt;&lt;P&gt;ID  = l_spool_numbr&lt;/P&gt;&lt;P&gt;FNAME = `C:\spool.txt`&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested it, and it is working fine as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 01:11:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-in-text-file/m-p/1546669#M248492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T01:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: SapScript in text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-in-text-file/m-p/1546670#M248493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Claudeni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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 -&amp;gt; OTF display -&amp;gt; No. of OTF pages 
Convert SAP Script to text 
Display the spool request 
then click Goto -&amp;gt; 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. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 01:39:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-in-text-file/m-p/1546670#M248493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T01:39:20Z</dc:date>
    </item>
  </channel>
</rss>

