<?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: MIGO - Read spool and send e-mail in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-read-spool-and-send-e-mail/m-p/3695534#M889814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jackandjay &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, How can I know the Spool Number ? Because I can have a lot of spools number in my list and I need the spool related with my material document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2008 23:04:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-15T23:04:48Z</dc:date>
    <item>
      <title>MIGO - Read spool and send e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-read-spool-and-send-e-mail/m-p/3695532#M889812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I save in MIGO Transaction, I need to select the Spool Number and send by e-mail the print form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mile&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 22:13:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-read-spool-and-send-e-mail/m-p/3695532#M889812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T22:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: MIGO - Read spool and send e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-read-spool-and-send-e-mail/m-p/3695533#M889813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data: list type table of  abaplist with header line.
data: htmllines type table of w3html with header line.
 
data: maildata   like sodocchgi1.
data: mailtxt    like solisti1 occurs 10 with header line.
data: mailrec    like somlrec90 occurs 0  with header line.
 
start-of-selection.
 
* Produce a list
  do 100 times.
    write:/ sy-index, at 30 sy-index, at 50 sy-index.
  enddo.
 
* Save the list
  call function 'SAVE_LIST'
       tables
            listobject         = list
       exceptions
            list_index_invalid = 1
            others             = 2.
 
* Convert the list
  call function 'WWW_LIST_TO_HTML'
       tables
            html = htmllines.
 
* Send mail
  maildata-obj_name = 'TEST'.
  maildata-obj_descr = 'Test Subject'.
 
  loop at htmllines.
    mailtxt = htmllines.
    append mailtxt.
  endloop.
 
  mailrec-receiver = 'you at yourcompany.com'.
  mailrec-rec_type  = 'U'.
  append mailrec.
 
  call function 'SO_NEW_DOCUMENT_SEND_API1'
       exporting
            document_data              = maildata
            document_type              = 'HTM'
            put_in_outbox              = 'X'
       tables
            object_header              = mailtxt
            object_content             = mailtxt
            receivers                  = mailrec
       exceptions
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7
            others                     = 8.
  if sy-subrc  0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 22:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-read-spool-and-send-e-mail/m-p/3695533#M889813</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-04-15T22:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: MIGO - Read spool and send e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-read-spool-and-send-e-mail/m-p/3695534#M889814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jackandjay &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, How can I know the Spool Number ? Because I can have a lot of spools number in my list and I need the spool related with my material document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 23:04:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-read-spool-and-send-e-mail/m-p/3695534#M889814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T23:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: MIGO - Read spool and send e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-read-spool-and-send-e-mail/m-p/3695535#M889815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simplest method is to read the spool table directly, table TSP01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also check this [link|http://searchsap.techtarget.com/tip/1,289483,sid21_gci1121833,00.html?track=NL-42&amp;amp;ad=527944&amp;amp;FromTaxonomy=%2Fpr%2F283958%22%20rel=%22nofollow%22%3Ehttp://searchsap.techtarget.com/tip/1,289483,sid21_gci1121833,00.html?track=NL-42&amp;amp;ad=527944&amp;amp;FromTaxonomy=%2Fpr%2F283958]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 23:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-read-spool-and-send-e-mail/m-p/3695535#M889815</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-04-15T23:17:41Z</dc:date>
    </item>
  </channel>
</rss>

