<?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: Sending Multiple Attachment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-multiple-attachment/m-p/6923576#M1484654</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;You can use CL_BCS class to send emails with multiple attachments. Below URL of my article has code snippet of how it can be done. Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ravikiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 May 2010 14:14:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-07T14:14:47Z</dc:date>
    <item>
      <title>Sending Multiple Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-multiple-attachment/m-p/6923573#M1484651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send mail with multiple attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to display-&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some text_1 &lt;/P&gt;&lt;P&gt;Attachment_1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some text_2&lt;/P&gt;&lt;P&gt;attachment_2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone enlighten me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 12:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-multiple-attachment/m-p/6923573#M1484651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-07T12:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Multiple Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-multiple-attachment/m-p/6923574#M1484652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For send multiple Attachments you need to use CL_BCS class&lt;/P&gt;&lt;P&gt;To learn more about it, give a look at example report from BCS_EXAMPLE_1 to BCS_EXAMPLE_5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With FM SO_NEW_DOCUMENT_ATT_SEND_API1 you cannot send more than 1 attachment each time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 13:05:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-multiple-attachment/m-p/6923574#M1484652</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2010-05-07T13:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Multiple Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-multiple-attachment/m-p/6923575#M1484653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;It is possible to send multiple attachments using SO_NEW_DOCUMENT_ATT_SEND_API1. All files will be in one internal table   contents_bin and you need to specify the filelength for and name for each attachment in table  packing_list. So the program will know which lines of contents for which file and it is easy to have filelength if you are uploading the files. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT gt_attach INTO gs_attach.

*  describe table i_objbin lines v_lines_bin   .

    i_objpack-body_num   = gs_attach-count       .
    PERFORM get_file_ext_name USING gs_attach-path
                              CHANGING  i_objpack.
*Get file extension  and name
*  SPLIT gs_attach-path AT '.' INTO TABLE LT_SPLIT.
*  READ TABLE LT_SPLIT INTO LS_SPLIT INDEX 2.
*  TRANSLATE LS_SPLIT TO UPPER CASE.
*    i_objpack-doc_type   = LS_SPLIT              .
    i_objpack-obj_name   = lv_n                  .

*   i_objpack-obj_descr  = gs_attach-docname     .
    i_objpack-transf_bin = 'X'                   .
    i_objpack-doc_size   = gs_attach-filelength  .
    gv_filelength_all = gv_filelength_all + gs_attach-filelength.
    i_objpack-body_start = lv_n.
    lv_n = lv_n + gs_attach-count.
    IF gv_filelength_all &amp;gt; '5000000'.
      APPEND i_objpack TO i_objpack2.
    ELSE.
      APPEND i_objpack.
    ENDIF.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Gungor Ozcelebi on May 7, 2010 3:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 13:17:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-multiple-attachment/m-p/6923575#M1484653</guid>
      <dc:creator>former_member194416</dc:creator>
      <dc:date>2010-05-07T13:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Multiple Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-multiple-attachment/m-p/6923576#M1484654</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;You can use CL_BCS class to send emails with multiple attachments. Below URL of my article has code snippet of how it can be done. Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ravikiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 14:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-multiple-attachment/m-p/6923576#M1484654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-07T14:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Multiple Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-multiple-attachment/m-p/6923577#M1484655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at that wiki: [Sending Mails - Home Page|http://wiki.sdn.sap.com/wiki/display/ABAP/Sending&lt;EM&gt;Mails&lt;/EM&gt;-&lt;EM&gt;Home&lt;/EM&gt;Page]&lt;/P&gt;&lt;P&gt;Use CL_BCS examples (SO_* function modules are obsolete and complex to make them work if you're not an expert)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 May 2010 17:22:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-multiple-attachment/m-p/6923577#M1484655</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-05-08T17:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Multiple Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-multiple-attachment/m-p/6923578#M1484656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Can You Explain with full&amp;nbsp; Example For Two separate smartform in single mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Saranya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 09:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-multiple-attachment/m-p/6923578#M1484656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-24T09:54:02Z</dc:date>
    </item>
  </channel>
</rss>

