<?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 Send attachment using FM 'SO_OBJECT_SEND' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-attachment-using-fm-so-object-send/m-p/2923402#M688539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to send an attachment the content of an internal table say i_tab, using &lt;/P&gt;&lt;P&gt;FM 'SO_OBJECT_SEND' to the transaction SBWP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could u plz give some example how to do the  same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be rewarded.&lt;/P&gt;&lt;P&gt;Thanx in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anant Srivastava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2007 06:30:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-09T06:30:23Z</dc:date>
    <item>
      <title>Send attachment using FM 'SO_OBJECT_SEND'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-attachment-using-fm-so-object-send/m-p/2923402#M688539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to send an attachment the content of an internal table say i_tab, using &lt;/P&gt;&lt;P&gt;FM 'SO_OBJECT_SEND' to the transaction SBWP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could u plz give some example how to do the  same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be rewarded.&lt;/P&gt;&lt;P&gt;Thanx in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anant Srivastava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 06:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-attachment-using-fm-so-object-send/m-p/2923402#M688539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T06:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Send attachment using FM 'SO_OBJECT_SEND'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-attachment-using-fm-so-object-send/m-p/2923403#M688540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this example program: - &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/fu016.htm" target="test_blank"&gt;http://www.sap-img.com/fu016.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/email/email_sapmail.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/email/email_sapmail.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Learn the parameters to pass here: - &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.thespot4sap.com/articles/SAP_Mail_Understanding_SO_Object_Send.asp" target="test_blank"&gt;http://www.thespot4sap.com/articles/SAP_Mail_Understanding_SO_Object_Send.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 06:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-attachment-using-fm-so-object-send/m-p/2923403#M688540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T06:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Send attachment using FM 'SO_OBJECT_SEND'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-attachment-using-fm-so-object-send/m-p/2923404#M688541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPORT ZREPORT_TO_EMAIL NO STANDARD PAGE HEADING LINE-SIZE 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;PERNR LIKE PA0001-PERNR,&lt;/P&gt;&lt;P&gt;ENAME LIKE PA0001-ENAME,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: message_content LIKE soli OCCURS 10 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;receiver_list LIKE soos1 OCCURS 5 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;packing_list LIKE soxpl OCCURS 2 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;listobject LIKE abaplist OCCURS 10,&lt;/P&gt;&lt;P&gt;compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;w_object_hd_change LIKE sood1,&lt;/P&gt;&lt;P&gt;compressed_size LIKE sy-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT PERNR ENAME&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE ITAB&lt;/P&gt;&lt;P&gt;FROM PA0001&lt;/P&gt;&lt;P&gt;WHERE PERNR &amp;lt; 50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;WRITE :/02 SY-VLINE , ITAB-PERNR, 15 SY-VLINE , ITAB-ENAME, 50&lt;/P&gt;&lt;P&gt;SY-VLINE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;Receivers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;receiver_list-recextnam = 'Feroz.khan-n@hp.com'. "--&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EMAIL ADDRESS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;RECEIVER_list-RECESC = 'E'. "&amp;lt;-&lt;/P&gt;&lt;P&gt;RECEIVER_list-SNDART = 'INT'."&amp;lt;-&lt;/P&gt;&lt;P&gt;RECEIVER_list-SNDPRI = '1'."&amp;lt;-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND receiver_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;General data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;w_object_hd_change-objla = sy-langu.&lt;/P&gt;&lt;P&gt;w_object_hd_change-objnam = 'Object name'.&lt;/P&gt;&lt;P&gt;w_object_hd_change-objsns = 'P'.&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;w_object_hd_change-objdes = 'Message subject'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Mail body&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;APPEND 'Message content' TO message_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Attachment&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'SAVE_LIST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;list_index = '0'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;listobject = listobject.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TABLE_COMPRESS'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;compressed_size = compressed_size&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;in = listobject&lt;/P&gt;&lt;P&gt;out = compressed_attachment.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE compressed_attachment.&lt;/P&gt;&lt;P&gt;CLEAR packing_list.&lt;/P&gt;&lt;P&gt;packing_list-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;packing_list-head_start = 0.&lt;/P&gt;&lt;P&gt;packing_list-head_num = 0.&lt;/P&gt;&lt;P&gt;packing_list-body_start = 1.&lt;/P&gt;&lt;P&gt;packing_list-body_num = sy-tfill.&lt;/P&gt;&lt;P&gt;packing_list-objtp = 'ALI'.&lt;/P&gt;&lt;P&gt;packing_list-objnam = 'Object name'.&lt;/P&gt;&lt;P&gt;packing_list-objdes = 'Attachment description'.&lt;/P&gt;&lt;P&gt;packing_list-objlen = compressed_size.&lt;/P&gt;&lt;P&gt;APPEND packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SO_OBJECT_SEND'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;object_hd_change = w_object_hd_change&lt;/P&gt;&lt;P&gt;object_type = 'RAW'&lt;/P&gt;&lt;P&gt;owner = sy-uname&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;objcont = message_content&lt;/P&gt;&lt;P&gt;receivers = receiver_list&lt;/P&gt;&lt;P&gt;packing_list = packing_list&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 06:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-attachment-using-fm-so-object-send/m-p/2923404#M688541</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-10-09T06:37:51Z</dc:date>
    </item>
  </channel>
</rss>

