<?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 Sending attachment using FM : SO_DOCUMENT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-attachment-using-fm-so-document-send-api1/m-p/3350394#M803633</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 can successfully send the attachment to the recipients using the FM SO_DOCUMENT_SEND_API1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if the attachemnt (.XLS) is having more than 30,000 records. I found no mails in the recipient mail box. But I can see the mails in my SAP outbox and also can see the data in the spool ( if I execute this in the background) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP outbox displays a message stating &lt;/P&gt;&lt;P&gt;"No mails has been sent because of huge data".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code uses &lt;/P&gt;&lt;P&gt;FM SO_DOCUMENT_SEND_API1 and then there is a call to SUBMIT rsconn01 WITH mode = 'INT'&lt;/P&gt;&lt;P&gt;                  WITH output = 'X'&lt;/P&gt;&lt;P&gt;     AND RETURN..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggest me what to do in this case.&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;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2008 09:41:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-29T09:41:58Z</dc:date>
    <item>
      <title>Sending attachment using FM : SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-attachment-using-fm-so-document-send-api1/m-p/3350394#M803633</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 can successfully send the attachment to the recipients using the FM SO_DOCUMENT_SEND_API1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if the attachemnt (.XLS) is having more than 30,000 records. I found no mails in the recipient mail box. But I can see the mails in my SAP outbox and also can see the data in the spool ( if I execute this in the background) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP outbox displays a message stating &lt;/P&gt;&lt;P&gt;"No mails has been sent because of huge data".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code uses &lt;/P&gt;&lt;P&gt;FM SO_DOCUMENT_SEND_API1 and then there is a call to SUBMIT rsconn01 WITH mode = 'INT'&lt;/P&gt;&lt;P&gt;                  WITH output = 'X'&lt;/P&gt;&lt;P&gt;     AND RETURN..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggest me what to do in this case.&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;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 09:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-attachment-using-fm-so-document-send-api1/m-p/3350394#M803633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T09:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sending attachment using FM : SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-attachment-using-fm-so-document-send-api1/m-p/3350395#M803634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this pdf file : &lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8cd6adbb-0301-0010-39ba-938c601d5db9" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8cd6adbb-0301-0010-39ba-938c601d5db9&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this : &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="532248"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 09:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-attachment-using-fm-so-document-send-api1/m-p/3350395#M803634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T09:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sending attachment using FM : SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-attachment-using-fm-so-document-send-api1/m-p/3350396#M803635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this code and use the function module accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this sample code :- &lt;/P&gt;&lt;P&gt;&lt;/P&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 = 'EXTERNAL-MAIL-ID@YAHOO.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;P&gt;att_cont = compressed_attachment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 10:04:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-attachment-using-fm-so-document-send-api1/m-p/3350396#M803635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T10:04:08Z</dc:date>
    </item>
  </channel>
</rss>

