<?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: Emailing Two Attachments in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/emailing-two-attachments/m-p/1368851#M181990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answers. I think my problem deals more with 2 PDF files.  This is presenting me the most problem. The first attachment opens correctly, but the second PDF is all messed up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sending 2 text files, I think is ok, but 2 PDF's present a challenge.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jun 2006 19:52:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-12T19:52:49Z</dc:date>
    <item>
      <title>Emailing Two Attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/emailing-two-attachments/m-p/1368847#M181986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to email a user 2 attachments using SO_NEW_DOCUMENT_ATT_SEND_API1 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have generated a PDF from a spool list, so that is my first attachment.  The second attachment, I am reading in a PDF file from the file server. I would like to send both of these attachments at the same time, rather than sending two separate emails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this even possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 16:00:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/emailing-two-attachments/m-p/1368847#M181986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-12T16:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Emailing Two Attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/emailing-two-attachments/m-p/1368848#M181987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer to this link.&lt;/P&gt;&lt;P&gt;&amp;lt;a href="/people/sravya.talanki2/blog/2006/01/12/xi-triggering-e-mails-with-multiple-attachments--problems:///people/sravya.talanki2/blog/2006/01/12/xi-triggering-e-mails-with-multiple-attachments--problems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 16:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/emailing-two-attachments/m-p/1368848#M181987</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-06-12T16:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Emailing Two Attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/emailing-two-attachments/m-p/1368849#M181988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt; Have a Look at tbis thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1133893"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 16:58:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/emailing-two-attachments/m-p/1368849#M181988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-12T16:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Emailing Two Attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/emailing-two-attachments/m-p/1368850#M181989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi john,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this code...&lt;/P&gt;&lt;P&gt;data: objpack like sopcklsti1 occurs 2 with header line.&lt;/P&gt;&lt;P&gt;data: objhead like solisti1 occurs 1 with header line.&lt;/P&gt;&lt;P&gt;data: objbin like solisti1 occurs 10 with header line.&lt;/P&gt;&lt;P&gt;data: objtxt like solisti1 occurs 10 with header line.&lt;/P&gt;&lt;P&gt;data: reclist like somlreci1 occurs 5 with header line.&lt;/P&gt;&lt;P&gt;data: doc_chng like sodocchgi1.&lt;/P&gt;&lt;P&gt;data: tab_lines like sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creation of the document to be sent&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;File Name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;doc_chng-obj_name = 'SENDFILE'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Mail Subject&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;doc_chng-obj_descr = 'Send test Mail'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Mail Contents&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;objtxt = 'HELLO'.&lt;/P&gt;&lt;P&gt;append objtxt.&lt;/P&gt;&lt;P&gt;objtxt = 'THIS IS THE FIRST TEST MAIL'.&lt;/P&gt;&lt;P&gt;append objtxt.&lt;/P&gt;&lt;P&gt;objtxt = 'have a good day'.&lt;/P&gt;&lt;P&gt;append objtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table objtxt lines tab_lines.&lt;/P&gt;&lt;P&gt;read table objtxt index tab_lines.&lt;/P&gt;&lt;P&gt;**attachment&lt;/P&gt;&lt;P&gt;objbin-line = 'this is the first document'.&lt;/P&gt;&lt;P&gt;append objbin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doc_chng-doc_size = ( tab_lines - 1 ) * 255 + strlen( objtxt ).&lt;/P&gt;&lt;P&gt;clear objpack-transf_bin.&lt;/P&gt;&lt;P&gt;*OBJPACK-TRANSF_BIN = 'X'.&lt;/P&gt;&lt;P&gt;objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;objpack-head_num = 0.&lt;/P&gt;&lt;P&gt;objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;objpack-body_num = tab_lines.&lt;/P&gt;&lt;P&gt;*OBJPACK-BODY_NUM = 1.&lt;/P&gt;&lt;P&gt;objpack-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;objpack-obj_name   = 'Mail'.&lt;/P&gt;&lt;P&gt;objpack-obj_descr  = 'First Mail'.&lt;/P&gt;&lt;P&gt;objpack-doc_size = 1 * 255.&lt;/P&gt;&lt;P&gt;append objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creation of the entry for the compressed document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*CLEAR OBJPACK-TRANSF_BIN.&lt;/P&gt;&lt;P&gt;objpack-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;objpack-head_num = 0.&lt;/P&gt;&lt;P&gt;objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;*OBJPACK-BODY_NUM = TAB_LINES.&lt;/P&gt;&lt;P&gt;objpack-body_num = 1.&lt;/P&gt;&lt;P&gt;objpack-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;objpack-obj_name   = 'ATTACHMENT'.&lt;/P&gt;&lt;P&gt;objpack-obj_descr  = 'Attached Document'.&lt;/P&gt;&lt;P&gt;objpack-doc_size = 1 * 255.&lt;/P&gt;&lt;P&gt;append objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Creation of the document attachment&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;(Assume that the data in OBJBIN is in BMP format)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*CLEAR OBJPACK-TRANSF_BIN.&lt;/P&gt;&lt;P&gt;objbin = ' \O/ '. append objbin.&lt;/P&gt;&lt;P&gt;objbin = ' | '. append objbin.&lt;/P&gt;&lt;P&gt;objbin = ' / \ '. append objbin.&lt;/P&gt;&lt;P&gt;describe table objbin lines tab_lines.&lt;/P&gt;&lt;P&gt;objhead = 'Ram149_jpg.jpg'.&lt;/P&gt;&lt;P&gt;append objhead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Creation of the entry for the compressed attachment&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;objpack-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;objpack-head_num = 1.&lt;/P&gt;&lt;P&gt;objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;objpack-body_num = tab_lines.&lt;/P&gt;&lt;P&gt;objpack-doc_type = 'JPG'.&lt;/P&gt;&lt;P&gt;objpack-obj_name = 'PICTURE'.&lt;/P&gt;&lt;P&gt;objpack-obj_descr = 'Picture'.&lt;/P&gt;&lt;P&gt;objpack-doc_size = tab_lines * 255.&lt;/P&gt;&lt;P&gt;append objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Completing the recipient list&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RECLIST-RECEIVER = 'xxx@yahoo.com'.&lt;/P&gt;&lt;P&gt;RECLIST-REC_TYPE = 'U'.&lt;/P&gt;&lt;P&gt;APPEND RECLIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sending the document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;document_data = doc_chng&lt;/P&gt;&lt;P&gt;put_in_outbox = 'X'&lt;/P&gt;&lt;P&gt;commit_work = 'X'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;packing_list = objpack&lt;/P&gt;&lt;P&gt;object_header = objhead&lt;/P&gt;&lt;P&gt;contents_bin = objbin&lt;/P&gt;&lt;P&gt;contents_txt = objtxt&lt;/P&gt;&lt;P&gt;receivers = reclist&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;too_many_receivers = 1&lt;/P&gt;&lt;P&gt;document_not_sent = 2&lt;/P&gt;&lt;P&gt;operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;others = 99.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-subrc.&lt;/P&gt;&lt;P&gt;when 0.&lt;/P&gt;&lt;P&gt;write: / 'Result of the send process:'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at reclist.&lt;/P&gt;&lt;P&gt;write: / reclist-receiver(48), ':'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if reclist-retrn_code = 0.&lt;/P&gt;&lt;P&gt;write 'The document was sent'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write 'The document could not be sent'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 1.&lt;/P&gt;&lt;P&gt;write: / 'No authorization for sending to the specified number',&lt;/P&gt;&lt;P&gt;'of recipients'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 2.&lt;/P&gt;&lt;P&gt;write: / 'Document could not be sent to any recipient'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 4.&lt;/P&gt;&lt;P&gt;write: / 'No send authorization'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when others.&lt;/P&gt;&lt;P&gt;write: / 'Error occurred while sending'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;do reward if it helps,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 17:18:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/emailing-two-attachments/m-p/1368850#M181989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-12T17:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Emailing Two Attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/emailing-two-attachments/m-p/1368851#M181990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answers. I think my problem deals more with 2 PDF files.  This is presenting me the most problem. The first attachment opens correctly, but the second PDF is all messed up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sending 2 text files, I think is ok, but 2 PDF's present a challenge.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 19:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/emailing-two-attachments/m-p/1368851#M181990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-12T19:52:49Z</dc:date>
    </item>
  </channel>
</rss>

