<?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: how to!!!!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853212#M361095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works because of the SAPconnect which is in between the program and the external mail server.  You need to have an mail server configure in SAPconnect in order for it to work.  Have your basis guys set this up in transaction SCOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jan 2007 21:58:03 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-01-11T21:58:03Z</dc:date>
    <item>
      <title>how to!!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853206#M361089</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;Somebody know how to send a email from sap to an &lt;/P&gt;&lt;P&gt;external email? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Where i can find the documentation to configure the sap server to let me seng a email?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jose Roberto&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Jose Roberto Milan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 21:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853206#M361089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T21:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to!!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853207#M361090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jose,&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;Reward if helpful,&lt;/P&gt;&lt;P&gt;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 21:50:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853207#M361090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T21:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to!!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853208#M361091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, this has been covered many times in this forum.  You might want to search for ......  things like SO_OBJECT_SEND,  or  SO_NEW_DOCUMENT_SEND_API1,  or &lt;/P&gt;&lt;P&gt;SO_NEW_DOCUMENT_ATT_SEND_API1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here also is a very simple program.  You must also have SAPconnect configured correctly.  You can force the SEND process using the commented program at the bottom of this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zrich_0003 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For API&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: maildata type sodocchgi1.&lt;/P&gt;&lt;P&gt;data: mailtxt  type table of solisti1 with header line.&lt;/P&gt;&lt;P&gt;data: mailrec  type table of somlrec90 with header line.&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;  clear:    maildata, mailtxt,  mailrec.&lt;/P&gt;&lt;P&gt;  refresh:  mailtxt, mailrec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  maildata-obj_name = 'TEST'.&lt;/P&gt;&lt;P&gt;  maildata-obj_descr = 'Test'.&lt;/P&gt;&lt;P&gt;  maildata-obj_langu = sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  mailtxt-line = 'This is a test'.&lt;/P&gt;&lt;P&gt;  append mailtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  mailrec-receiver = 'you@yourcompany.com'.&lt;/P&gt;&lt;P&gt;  mailrec-rec_type  = 'U'.&lt;/P&gt;&lt;P&gt;  append mailrec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'SO_NEW_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              document_data              = maildata&lt;/P&gt;&lt;P&gt;              document_type              = 'RAW'&lt;/P&gt;&lt;P&gt;              put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;         tables&lt;/P&gt;&lt;P&gt;              object_header              = mailtxt&lt;/P&gt;&lt;P&gt;              object_content             = mailtxt&lt;/P&gt;&lt;P&gt;              receivers                  = mailrec&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;              too_many_receivers         = 1&lt;/P&gt;&lt;P&gt;              document_not_sent          = 2&lt;/P&gt;&lt;P&gt;              document_type_not_exist    = 3&lt;/P&gt;&lt;P&gt;              operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;              parameter_error            = 5&lt;/P&gt;&lt;P&gt;              x_error                    = 6&lt;/P&gt;&lt;P&gt;              enqueue_error              = 7&lt;/P&gt;&lt;P&gt;              others                     = 8.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;submit rsconn01 with mode = 'INT' and return.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 21:51:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853208#M361091</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-11T21:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to!!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853209#M361092</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;Use the FM SO_NEW_DOCUMENT_SEND_API1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for a sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ionelburlacu.ro/sap0/abap011.htm" target="test_blank"&gt;http://sap.ionelburlacu.ro/sap0/abap011.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 21:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853209#M361092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T21:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to!!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853210#M361093</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;Check Amit Mittal's reply on this thread.&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="129657"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is what he suggested to me and this program really fulfill all the email related requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 21:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853210#M361093</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-01-11T21:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to!!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853211#M361094</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;but how it works???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 21:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853211#M361094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T21:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to!!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853212#M361095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works because of the SAPconnect which is in between the program and the external mail server.  You need to have an mail server configure in SAPconnect in order for it to work.  Have your basis guys set this up in transaction SCOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 21:58:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853212#M361095</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-11T21:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to!!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853213#M361096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this FM SO_OBJECT_SEND to send emails from SAP to external mail system like outlook or lotus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the status of transmission in SOST t-code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 22:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to/m-p/1853213#M361096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T22:03:43Z</dc:date>
    </item>
  </channel>
</rss>

