<?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: Doubt regarding spool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regarding-spool/m-p/3333064#M798740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1st create the spool, convert it to pdf and then u can send it as a mail attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; use that spool to convert it to PDF and then download it&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;RQIDENT = GS_OTF_SPOOLS-RQIDENT&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;BUFFER = GT_TEMP_TABLE&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;NO_SUCH_JOB = 1&lt;/P&gt;&lt;P&gt;JOB_CONTAINS_NO_DATA = 2&lt;/P&gt;&lt;P&gt;SELECTION_EMPTY = 3&lt;/P&gt;&lt;P&gt;NO_PERMISSION = 4&lt;/P&gt;&lt;P&gt;CAN_NOT_ACCESS = 5&lt;/P&gt;&lt;P&gt;READ_ERROR = 6&lt;/P&gt;&lt;P&gt;TYPE_NO_MATCH = 7.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_OTF_2_PDF'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;USE_OTF_MC_CMD = 'X'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;BIN_FILESIZE = SIZE&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;OTF = GT_OTF_TABLE&lt;/P&gt;&lt;P&gt;DOCTAB_ARCHIVE = DOC&lt;/P&gt;&lt;P&gt;LINES = GT_PDF&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ERR_CONV_NOT_POSSIBLE = 1&lt;/P&gt;&lt;P&gt;ERR_OTF_MC_NOENDMARKER = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can also use the standard pgm RSTXPDFT4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Narendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2008 10:56:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-30T10:56:00Z</dc:date>
    <item>
      <title>Doubt regarding spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regarding-spool/m-p/3333063#M798739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I want to create multiple spool outputs programatically, How do i do that??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirement: I am looping at an internal table to display its contents. Everytime the material number field changes there should be a separate spool output created.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; As far as i have searched the NEW-PAGE PRINT ON statement creates a separate spool but i dont want to print the contents of the spool but want to email that contents as an attachment... I need ideas as to how i can create separate spools&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 10:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regarding-spool/m-p/3333063#M798739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T10:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt regarding spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regarding-spool/m-p/3333064#M798740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1st create the spool, convert it to pdf and then u can send it as a mail attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; use that spool to convert it to PDF and then download it&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;RQIDENT = GS_OTF_SPOOLS-RQIDENT&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;BUFFER = GT_TEMP_TABL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 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can also use the standard pgm RSTXPDFT4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Narendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 10:56:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regarding-spool/m-p/3333064#M798740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T10:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt regarding spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regarding-spool/m-p/3333065#M798741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at change of material no&lt;/P&gt;&lt;P&gt;u need to close the form using close_form FM&lt;/P&gt;&lt;P&gt;and need to open the form using open_form FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 10:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regarding-spool/m-p/3333065#M798741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T10:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt regarding spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regarding-spool/m-p/3333066#M798742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi narendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I think u didnt get my doubt... My doubt was how to create the spool..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: Lets say i have the following set of write statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_tab into wa_tab.&lt;/P&gt;&lt;P&gt;  AT NEW matnr.&lt;/P&gt;&lt;P&gt; WRITE:/ wa_tab-matnr.&lt;/P&gt;&lt;P&gt; WRITE:/ wa_tab-maktx.&lt;/P&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My doubt is how do i program such that each time it loops there is a separate spool created??&lt;/P&gt;&lt;P&gt;Is there a statement for that??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 11:05:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regarding-spool/m-p/3333066#M798742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T11:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt regarding spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regarding-spool/m-p/3333067#M798743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi madhavi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Does the 2 function modules just create a spool output without doing any kind of printing or asking for any sort of printing parameters???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also can you throw light on wat JOB_OPEN &amp;amp; JOB_CLOSE does??? Is it anything similar??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prakash K on Jan 30, 2008 12:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 11:10:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regarding-spool/m-p/3333067#M798743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T11:10:59Z</dc:date>
    </item>
  </channel>
</rss>

