<?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: File type problem with email attachments in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-type-problem-with-email-attachments/m-p/1992770#M404781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Filip Camerman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am giving you the sample code try this as such.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it_packing_list-transf_bin = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it_packing_list-head_start = 1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it_packing_list-head_num = 1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it_packing_list-body_start = 1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it_packing_list-doc_type = 'PDF'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it_packing_list-body_num = tab_lines.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it_packing_list-doc_size = tab_lines * 255.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; APPEND it_packing_list.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balaji E.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2007 11:18:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-19T11:18:17Z</dc:date>
    <item>
      <title>File type problem with email attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-type-problem-with-email-attachments/m-p/1992769#M404780</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;I'm using SO_DOCUMENT_SEND_API1 to send email with an attachment. This attachment is a random file uploaded by the user on an ITS web site and sent to my FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is all working fine as long as I tell SO_DOCUMENT_SEND_API1 that the doc_type is 'PDF'. When I say it's 'JPG' I get an error "Message cannot be processed as it cannot be converted". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not the actual file that is the problem, I can send jpg-images or any other file as long as I say t_packing_list-doc_type   =  'PDF'. However this leads to the attached file being called *.PDF instead of *.JPG, and the receiver has to rename it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relevant code is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  t_packing_list-doc_type   =  ld_format.&lt;/P&gt;&lt;P&gt;  t_packing_list-obj_descr  =  ld_attdescription.&lt;/P&gt;&lt;P&gt;  t_packing_list-obj_name   =  ld_attfilename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;- ld_format is the file extension (e.g. 'jpg', 'pdf', ...)&lt;/P&gt;&lt;P&gt;- ld_attdescription = ' ' (1 space)&lt;/P&gt;&lt;P&gt;- ld_attfilename is the file name without extension (e.g. 'image001')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My FM has to work with any file extension. It receives the file name and the file extension (jpg, pdf, doc, whatever) as an input parameter along with the file, and I just need to be able to email this file with the originale file name and extension no matter what that extension is. Any suggestions? Tia.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 10:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-type-problem-with-email-attachments/m-p/1992769#M404780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T10:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: File type problem with email attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-type-problem-with-email-attachments/m-p/1992770#M404781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Filip Camerman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am giving you the sample code try this as such.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it_packing_list-transf_bin = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it_packing_list-head_start = 1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it_packing_list-head_num = 1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it_packing_list-body_start = 1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it_packing_list-doc_type = 'PDF'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it_packing_list-body_num = tab_lines.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it_packing_list-doc_size = tab_lines * 255.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; APPEND it_packing_list.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balaji E.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 11:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-type-problem-with-email-attachments/m-p/1992770#M404781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T11:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: File type problem with email attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-type-problem-with-email-attachments/m-p/1992771#M404782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Filip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check Amit's reply in the link given below,&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="113416"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&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;Reward points if it is useful.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 11:20:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-type-problem-with-email-attachments/m-p/1992771#M404782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T11:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: File type problem with email attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-type-problem-with-email-attachments/m-p/1992772#M404783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Balaji: as I said, it already works fine with it_packing_list-doc_type = 'PDF'. The problem is that some extensions, like 'JPG', don't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 12:23:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-type-problem-with-email-attachments/m-p/1992772#M404783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T12:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: File type problem with email attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-type-problem-with-email-attachments/m-p/1992773#M404784</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;chk this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="91237"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 12:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-type-problem-with-email-attachments/m-p/1992773#M404784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T12:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: File type problem with email attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-type-problem-with-email-attachments/m-p/1992774#M404785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the problem myself. It was not with the ABAP code but with a server setting which did not let attachments with extensions like JPG pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution for anyone else wiht the same prob who ends up here later:&lt;/P&gt;&lt;P&gt;1) go to transaction SCOT&lt;/P&gt;&lt;P&gt;2) double click on the line with the internet mail process (INT - XMAIL)&lt;/P&gt;&lt;P&gt;3) click on the button "Set" next to Internet&lt;/P&gt;&lt;P&gt;4) select the option "All formats"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 13:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-type-problem-with-email-attachments/m-p/1992774#M404785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T13:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: File type problem with email attachments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-type-problem-with-email-attachments/m-p/1992775#M404786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Filip Camerman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           I have a requirement like................ I have to convert smartform output to HTML and send this HTML ouput to external Email in the BODY of the mail not as an attachment. I have done this but whats happening is when I am sending this to an external Email id last couple of lines in the getting truncated but when I see this output in the SOST it showing the complete ouput.&lt;/P&gt;&lt;P&gt;Please help me Regarding this...............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Shravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 12:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-type-problem-with-email-attachments/m-p/1992775#M404786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T12:51:43Z</dc:date>
    </item>
  </channel>
</rss>

