<?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: Regarding Function Module SO_NEW_DOCUMENT_ATT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380394#M1237390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2009 17:54:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-30T17:54:03Z</dc:date>
    <item>
      <title>Regarding Function Module SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380390#M1237386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; How to set the following table field of the FM  &lt;STRONG&gt;SO_NEW_DOCUMENT_ATT_SEND_API1&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt; PACKING_LIST &lt;/P&gt;&lt;P&gt;OBJECT_HEADER&lt;/P&gt;&lt;P&gt;CONTENTS_BIN &lt;/P&gt;&lt;P&gt;CONTENTS_TXT &lt;/P&gt;&lt;P&gt;RECEIVERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have gone through the FM. Please help me with a code snippet along with a bit of explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sarbajit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 05:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380390#M1237386</guid>
      <dc:creator>sarbajitm</dc:creator>
      <dc:date>2009-03-30T05:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function Module SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380391#M1237387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there is at least one subject which has been explained in this forum over and over again, it would be about this function module. Search the forum first, before posting!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 06:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380391#M1237387</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-03-30T06:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function Module SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380392#M1237388</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;Refer:&lt;/P&gt;&lt;P&gt;/people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/multiple%252battachment%252bon%252be_mail" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/multiple%252battachment%252bon%252be_mail&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 06:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380392#M1237388</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-30T06:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function Module SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380393#M1237389</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;&lt;/P&gt;&lt;P&gt;Goto &lt;STRONG&gt;SE37 SO_NEW_DOCUMENT_ATT_SEND_API1&lt;/STRONG&gt; go through the documentation given there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sravanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 07:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380393#M1237389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T07:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function Module SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380394#M1237390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 17:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380394#M1237390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T17:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function Module SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380395#M1237391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REFRESH t_packing_list.
  t_packing_list-transf_bin = space.
  t_packing_list-head_start = 1.
  t_packing_list-head_num = 0.
  t_packing_list-body_start = 1.
  DESCRIBE TABLE lt_message LINES t_packing_list-body_num.
  t_packing_list-doc_type = 'RAW'.
  APPEND t_packing_list.
* Create attachment notification
  t_packing_list-transf_bin = 'X'.
  t_packing_list-head_start = 1.
  t_packing_list-head_num = 1.
  t_packing_list-body_start = 1.
  DESCRIBE TABLE gt_file LINES t_packing_list-body_num.
  t_packing_list-doc_type = 'RAW'.
  t_packing_list-obj_descr = w_doc_data-obj_descr.
  t_packing_list-obj_name = w_doc_data-obj_name.
  t_packing_list-doc_size = t_packing_list-body_num * 255.
  APPEND t_packing_list.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;t_attachment[] = gt_file[].
......
     contents_bin                     = t_attachment&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 17:58:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380395#M1237391</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-03-30T17:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function Module SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380396#M1237392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the explanation along with your code that you have given. But your code snippet does not reflect anything regarding attachment.Actually my requirement is to attaching a smartform to a mail and sending it to a specific mailid. I have developed a code through which I am able to save the Smartform in local server. Now in SDN Code Gallery I also get code snippet of converting a Smartform into PDF and attaching it to a mail. You also can check it out by clicking &lt;STRONG&gt;Wiki-&amp;gt;Wiki Categories(SAP NetWeaver and Technology)-&amp;gt;Code Gallery-&amp;gt;(Type Smartforms in Search space)-&amp;gt;click on 3rd page link at below&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&amp;gt;Click on 4thlink from bottom(Smartform as PDF to MailID).&lt;/STRONG&gt; There you get the following code snippet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT gt_pdf_tab INTO gs_pdf_tab.&lt;/P&gt;&lt;P&gt;    gv_pos = 255 - gv_len.&lt;/P&gt;&lt;P&gt;    IF gv_pos &amp;gt; 134. "length of pdf_table&lt;/P&gt;&lt;P&gt;      gv_pos = 134.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    gs_objbin+gv_len = gs_pdf_tab(gv_pos).&lt;/P&gt;&lt;P&gt;    gv_len = gv_len + gv_pos.&lt;/P&gt;&lt;P&gt;    IF gv_len = 255. "length of out (contents_bin)&lt;/P&gt;&lt;P&gt;      APPEND gs_objbin TO gt_objbin.&lt;/P&gt;&lt;P&gt;      CLEAR: gs_objbin, gv_len.&lt;/P&gt;&lt;P&gt;      IF gv_pos &amp;lt; 134.&lt;/P&gt;&lt;P&gt;        gs_objbin = gs_pdf_tab+gv_pos.&lt;/P&gt;&lt;P&gt;        gv_len = 134 - gv_pos.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  IF gv_len &amp;gt; 0.&lt;/P&gt;&lt;P&gt;    APPEND gs_objbin TO gt_objbin.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; If you have time kindly check it out and can explain what is this piece of code doing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sarbajit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sarbajit Majumdar on Mar 31, 2009 11:28 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2009 05:57:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380396#M1237392</guid>
      <dc:creator>sarbajitm</dc:creator>
      <dc:date>2009-03-31T05:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function Module SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380397#M1237393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you still watching this thread then please put some light based on my above post.&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;Sarbajit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 09:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-so-new-document-att-send-api1/m-p/5380397#M1237393</guid>
      <dc:creator>sarbajitm</dc:creator>
      <dc:date>2009-04-02T09:01:44Z</dc:date>
    </item>
  </channel>
</rss>

