<?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: Send e-Mails with attached MIME-Objects from Repository in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mails-with-attached-mime-objects-from-repository/m-p/1366301#M181123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can get the logical and physical id if you right click with the mouse in transaction SE80 on the filename and select "Properties".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The is no path in SE80 in the MIME-Repository showed. It's somehow organized in folders. Here the files lies in \SAP\PUBLIC\BC\Icons\s_s_keyi.gif. But I don't thinks it's the path or the url of the GIF-file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 May 2006 08:47:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-16T08:47:20Z</dc:date>
    <item>
      <title>Send e-Mails with attached MIME-Objects from Repository</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mails-with-attached-mime-objects-from-repository/m-p/1366297#M181119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does someone know a solution to send e-Mails with attached MIME-Objects from MIME-Repository?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment I'm using the class CL_BCS to send mail with works fine. Now I just want to attach (or even better embed!) for example one or more icons from the MIME-Repository to this mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Marc Glässer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 07:26:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mails-with-attached-mime-objects-from-repository/m-p/1366297#M181119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T07:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-Mails with attached MIME-Objects from Repository</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mails-with-attached-mime-objects-from-repository/m-p/1366298#M181120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to SDN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you just want it as a image in the body of the mail, just send the image link as a html content in the body of the mail. (this has other problem, when openning the mail the system would require authentication into WAS system)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to send it as a attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. read the mime&lt;/P&gt;&lt;P&gt;DATA: binary_content     TYPE solix_tab.&lt;/P&gt;&lt;P&gt;data: o_mr_api         type ref to if_mr_api.&lt;/P&gt;&lt;P&gt;if o_mr_api is initial.&lt;/P&gt;&lt;P&gt;      o_mr_api = cl_mime_repository_api=&amp;gt;if_mr_api~get_api( ).&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt; call method o_mr_api-&amp;gt;get&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          i_url              = l_url&lt;/P&gt;&lt;P&gt;        importing&lt;/P&gt;&lt;P&gt;          e_is_folder        = is_folder&lt;/P&gt;&lt;P&gt;          e_content          = l_current&lt;/P&gt;&lt;P&gt;          e_loio             = l_loio&lt;/P&gt;&lt;P&gt;        exceptions&lt;/P&gt;&lt;P&gt;          parameter_missing  = 1&lt;/P&gt;&lt;P&gt;          error_occured      = 2&lt;/P&gt;&lt;P&gt;          not_found          = 3&lt;/P&gt;&lt;P&gt;          permission_failure = 4&lt;/P&gt;&lt;P&gt;          others             = 5.&lt;/P&gt;&lt;P&gt;l_current will hold the image in a XSTRING var&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;convert the xstring to binary table&lt;/P&gt;&lt;P&gt;REFRESH binary_content .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          buffer     = l_current&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          binary_tab = binary_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD document-&amp;gt;add_attachment&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              i_attachment_type    = 'GIF' " pass the right mime type&lt;/P&gt;&lt;P&gt;              i_attachment_subject = atta_sub&lt;/P&gt;&lt;P&gt;              i_att_content_hex    = binary_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 07:47:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mails-with-attached-mime-objects-from-repository/m-p/1366298#M181120</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-05-16T07:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-Mails with attached MIME-Objects from Repository</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mails-with-attached-mime-objects-from-repository/m-p/1366299#M181121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the fast response and the welcome greets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution with sending a link as a html content in the body of the mail is out of the question because of the authentication issue).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not so familiar with the MIME-Repository and it's programming interfaces. So could you please somehow explain me how to attach for example a GIF-File from MIME-Repository with the filename "s_s_keyi.gif", logical ID "6B1679466E47604D82A22F06C8953F7D" and physical ID "412181A9DBF65915E10000000A1145AB"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your example showed a possibility with attaching the document by URL. What is the URL of the above "s_s_keyi.gif"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 08:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mails-with-attached-mime-objects-from-repository/m-p/1366299#M181121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T08:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-Mails with attached MIME-Objects from Repository</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mails-with-attached-mime-objects-from-repository/m-p/1366300#M181122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no need for the logical id or the physical id.&lt;/P&gt;&lt;P&gt;(how did you get them?)&lt;/P&gt;&lt;P&gt;can you get the path of the image s_s_keyi.gif from transaction SE80?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;P&gt;assigning points to helpful answers by choosing the appropriate radiobuttons in the answers in the SDN way of saying thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 08:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mails-with-attached-mime-objects-from-repository/m-p/1366300#M181122</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-05-16T08:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-Mails with attached MIME-Objects from Repository</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mails-with-attached-mime-objects-from-repository/m-p/1366301#M181123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can get the logical and physical id if you right click with the mouse in transaction SE80 on the filename and select "Properties".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The is no path in SE80 in the MIME-Repository showed. It's somehow organized in folders. Here the files lies in \SAP\PUBLIC\BC\Icons\s_s_keyi.gif. But I don't thinks it's the path or the url of the GIF-file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 08:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mails-with-attached-mime-objects-from-repository/m-p/1366301#M181123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T08:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-Mails with attached MIME-Objects from Repository</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mails-with-attached-mime-objects-from-repository/m-p/1366302#M181124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the path is right , you have to use that with the method i have suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example check out this program (for uploading / downloading MIMES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BSP_UPDATE_MIMEREPOS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also check out this thread&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="95115"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 09:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mails-with-attached-mime-objects-from-repository/m-p/1366302#M181124</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-05-16T09:17:08Z</dc:date>
    </item>
  </channel>
</rss>

