<?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: Sending EMail from ABAP Program Configuration+Code(Step by Step) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054540#M423944</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;That is the basic configuration which is required to send mail outside SAP. Once that configuration is done you can send mail from your business inbox or using function module or through some other way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try it on yourself, Go to transaction SCOT. In  case node is there then you have to go to settings and maintain the default domain..it can be prd.wipro.com or somthing like that, you will have to search for it.then adress type will be *wipro.com (relevant to you system) and then you haveto schedules job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Choose View &amp;amp;#61614; Jobs. &lt;/P&gt;&lt;P&gt;2. If there is no job scheduled, choose Job &amp;amp;#61614; Create. &lt;/P&gt;&lt;P&gt;3. Enter a job name and confirm. &lt;/P&gt;&lt;P&gt;4. Select the variant SAP&amp;amp;CONNECTALL by placing the cursor on it. &lt;/P&gt;&lt;P&gt;5. Choose Schedule Job. &lt;/P&gt;&lt;P&gt;6. Choose Schedule Periodically. &lt;/P&gt;&lt;P&gt;7. Enter an appropriate time period, such as 5 minutes. &lt;/P&gt;&lt;P&gt;8. Choose Create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that you can run the function module and test it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2007 08:59:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-28T08:59:14Z</dc:date>
    <item>
      <title>Sending EMail from ABAP Program Configuration+Code(Step by Step)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054535#M423939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please anybody can provide me Step by Step document for sending Email from ABAP Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;RP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 07:19:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054535#M423939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T07:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sending EMail from ABAP Program Configuration+Code(Step by Step)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054536#M423940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use the fun module:SO_NEW_DOCUMENT_ATT_SEND_API1 to send mail;&lt;/P&gt;&lt;P&gt;see the sample code:&lt;/P&gt;&lt;P&gt;]&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INCLUDE ZINCUSMAIL                                                 *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include &amp;lt;symbol&amp;gt;.&lt;/P&gt;&lt;P&gt;data : i_doc_data like sodocchgi1.&lt;/P&gt;&lt;P&gt;data : begin of i_pack_list occurs 0.&lt;/P&gt;&lt;P&gt;        include structure sopcklsti1.&lt;/P&gt;&lt;P&gt;data : end of i_pack_list.&lt;/P&gt;&lt;P&gt;data : begin of i_receivers occurs 0.&lt;/P&gt;&lt;P&gt;        include structure somlreci1.&lt;/P&gt;&lt;P&gt;data : end of i_receivers.&lt;/P&gt;&lt;P&gt;data : begin of i_contents occurs 0.&lt;/P&gt;&lt;P&gt;        include structure solisti1.&lt;/P&gt;&lt;P&gt;data : end of i_contents.&lt;/P&gt;&lt;P&gt;data : begin of i_header occurs 0.&lt;/P&gt;&lt;P&gt;        include structure solisti1.&lt;/P&gt;&lt;P&gt;data : end of i_header.&lt;/P&gt;&lt;P&gt;data : begin of i_att occurs 0.&lt;/P&gt;&lt;P&gt;        include structure solisti1.&lt;/P&gt;&lt;P&gt;data : end of i_att.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table for Internet address.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of it_inad occurs 0,&lt;/P&gt;&lt;P&gt;        kunnr like kna1-kunnr,           " Customer Code&lt;/P&gt;&lt;P&gt;        name1 like kna1-name1,           " Customer Name&lt;/P&gt;&lt;P&gt;        ssobl like knkk-ssobl,           " Security Deposit&lt;/P&gt;&lt;P&gt;        klimk like knkk-klimk,           " Credit Limit&lt;/P&gt;&lt;P&gt;        opbal like bsid-wrbtr,           " Opening Balance&lt;/P&gt;&lt;P&gt;        clbal like bsid-wrbtr,           " Closing Balance&lt;/P&gt;&lt;P&gt;        smtp  like adr6-smtp_addr,       " Internet mail (SMTP) address&lt;/P&gt;&lt;P&gt;      end of it_inad.&lt;/P&gt;&lt;P&gt;data : pdf_line(134),&lt;/P&gt;&lt;P&gt;       asdf like pdf_line occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data : pdf_table like tline occurs 0 with header line,&lt;/P&gt;&lt;P&gt;       pdf_fsize type  i.&lt;/P&gt;&lt;P&gt;data : stuff(65000),&lt;/P&gt;&lt;P&gt;       len type i,&lt;/P&gt;&lt;P&gt;       pos type i,&lt;/P&gt;&lt;P&gt;       tab_lines like sy-tabix.&lt;/P&gt;&lt;P&gt;data:  spoolid    type tsp01-rqident,&lt;/P&gt;&lt;P&gt;       spdel      type tsp01sys.&lt;/P&gt;&lt;P&gt;data:  v_gjahrt like bsid-gjahr,&lt;/P&gt;&lt;P&gt;       fmondest(10),&lt;/P&gt;&lt;P&gt;       tmondest(10),&lt;/P&gt;&lt;P&gt;       kunnr1 like kna1-kunnr,&lt;/P&gt;&lt;P&gt;       gjah(4),&lt;/P&gt;&lt;P&gt;       fmon(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  hide_write&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form hide_write.&lt;/P&gt;&lt;P&gt;  new-page print on&lt;/P&gt;&lt;P&gt;    line-size 160&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   line-count 58&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    no-title&lt;/P&gt;&lt;P&gt;    no-heading&lt;/P&gt;&lt;P&gt;    destination 'LOCL'&lt;/P&gt;&lt;P&gt;    immediately ' '&lt;/P&gt;&lt;P&gt;    new list identification 'X'&lt;/P&gt;&lt;P&gt;    no dialog.&lt;/P&gt;&lt;P&gt;  set blank lines on.&lt;/P&gt;&lt;P&gt;endform.                    " hide_write&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  end_write&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form end_write using kunnr1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  set blank lines off.&lt;/P&gt;&lt;P&gt;  new-page print off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Using Spoolid we are getting PDF formated file&lt;/P&gt;&lt;P&gt;  spoolid = spdel-rqident = sy-spono.&lt;/P&gt;&lt;P&gt;  spdel-sys = sy-sysid.&lt;/P&gt;&lt;P&gt;  call function 'CONVERT_ABAPSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            src_spoolid   = spoolid&lt;/P&gt;&lt;P&gt;            no_dialog     = 'X'&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            pdf_bytecount = pdf_fsize&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            pdf           = pdf_table&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others        = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Delleting Spool request&lt;/P&gt;&lt;P&gt;  call function 'RSPO_IDELETE_SPOOLREQ'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            spoolreq = spdel&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others   = 2.&lt;/P&gt;&lt;P&gt;***Converting PDF table line size 134 into standard list size 255&lt;/P&gt;&lt;P&gt;  loop at pdf_table into pdf_line.&lt;/P&gt;&lt;P&gt;    if pos = 34170.&lt;/P&gt;&lt;P&gt;     perform attach.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    stuff+pos(134) = pdf_line.&lt;/P&gt;&lt;P&gt;    add 134 to pos.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;if not ( stuff is initial ).&lt;/P&gt;&lt;P&gt;  perform attach.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear pdf_line.&lt;/P&gt;&lt;P&gt;clear pdf_table[].&lt;/P&gt;&lt;P&gt;describe table i_att lines tab_lines.&lt;/P&gt;&lt;P&gt;i_pack_list-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;i_pack_list-head_start = '1'.&lt;/P&gt;&lt;P&gt;i_pack_list-head_num = '1'.&lt;/P&gt;&lt;P&gt;i_pack_list-body_start = '1'.&lt;/P&gt;&lt;P&gt;i_pack_list-body_num = tab_lines.&lt;/P&gt;&lt;P&gt;i_pack_list-doc_type = 'PDF'.&lt;/P&gt;&lt;P&gt;i_pack_list-obj_name = 'LedgerMail'.&lt;/P&gt;&lt;P&gt;concatenate fmon '-' gjah into i_pack_list-obj_descr.&lt;/P&gt;&lt;P&gt;*i_pack_list-obj_descr = '2092-Oct03'.&lt;/P&gt;&lt;P&gt;i_pack_list-obj_langu = 'E'.&lt;/P&gt;&lt;P&gt;i_pack_list-doc_size = tab_lines * 255.&lt;/P&gt;&lt;P&gt;append i_pack_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Data for receivers list&lt;/P&gt;&lt;P&gt;loop at it_inad where kunnr eq kunnr1.&lt;/P&gt;&lt;P&gt;i_receivers-receiver = it_inad-smtp.&lt;/P&gt;&lt;P&gt;i_receivers-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;i_receivers-rec_date = sy-datum.&lt;/P&gt;&lt;P&gt;i_receivers-express = 'X'.&lt;/P&gt;&lt;P&gt;i_receivers-com_type = 'INT'.&lt;/P&gt;&lt;P&gt;i_receivers-notif_del = 'X'.&lt;/P&gt;&lt;P&gt;append i_receivers.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    document_data                    = i_doc_data&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PUT_IN_OUTBOX                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SENT_TO_ALL                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEW_OBJECT_ID                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    packing_list                     = i_pack_list&lt;/P&gt;&lt;P&gt;    object_header                    = i_header&lt;/P&gt;&lt;P&gt;    contents_bin                     = i_att&lt;/P&gt;&lt;P&gt;    contents_txt                     = i_contents&lt;/P&gt;&lt;P&gt;    receivers                        = i_receivers&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;          .&lt;/P&gt;&lt;P&gt;refresh i_att. clear i_att.&lt;/P&gt;&lt;P&gt;refresh i_receivers. clear i_receivers.&lt;/P&gt;&lt;P&gt;delete i_pack_list where doc_type = 'PDF'.&lt;/P&gt;&lt;P&gt;*refresh i_header.&lt;/P&gt;&lt;P&gt;*refresh i_contents.&lt;/P&gt;&lt;P&gt;*clear i_doc_data.&lt;/P&gt;&lt;P&gt;endform.                    " end_write&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  doc_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form doc_data using fmondest v_gjahrt.&lt;/P&gt;&lt;P&gt;gjah = v_gjahrt.&lt;/P&gt;&lt;P&gt;fmon = fmondest.&lt;/P&gt;&lt;P&gt;***Data for Document Data&lt;/P&gt;&lt;P&gt;i_doc_data-obj_name = 'LedgerMail'.&lt;/P&gt;&lt;P&gt;concatenate 'Customer Ledger for : ' fmondest gjah&lt;/P&gt;&lt;P&gt;into i_doc_data-obj_descr separated by space.&lt;/P&gt;&lt;P&gt;i_doc_data-obj_langu = 'E'.&lt;/P&gt;&lt;P&gt;i_doc_data-obj_prio = '1'.&lt;/P&gt;&lt;P&gt;i_doc_data-no_change = 'X'.&lt;/P&gt;&lt;P&gt;i_doc_data-doc_size = '5101'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Data for Packing list&lt;/P&gt;&lt;P&gt;i_pack_list-head_start = '1'.&lt;/P&gt;&lt;P&gt;i_pack_list-head_num = '1'.&lt;/P&gt;&lt;P&gt;i_pack_list-body_start = '1'.&lt;/P&gt;&lt;P&gt;i_pack_list-body_num = '20'.&lt;/P&gt;&lt;P&gt;i_pack_list-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;i_pack_list-obj_langu = 'E'.&lt;/P&gt;&lt;P&gt;append i_pack_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Data for Header&lt;/P&gt;&lt;P&gt;i_header-line = 'Header'. append i_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Data for contents&lt;/P&gt;&lt;P&gt;i_contents-line = 'Dear Customer,'. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;concatenate 'Please find your enclosed Ledger for the month of : '&lt;/P&gt;&lt;P&gt;fmondest gjah into i_contents-line separated by space.&lt;/P&gt;&lt;P&gt;append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = 'This is a computer generated document and does not&lt;/P&gt;&lt;P&gt;require a signature.'. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = 'Note : If you do not have Acrobat Reader please click&lt;/P&gt;&lt;P&gt; on the below link.'. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = 'http://www.adobe.com/products/acrobat/readstep2.html'&lt;/P&gt;&lt;P&gt;. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " doc_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  attach&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form attach.&lt;/P&gt;&lt;P&gt;  clear pos.&lt;/P&gt;&lt;P&gt;  len = strlen( stuff ).&lt;/P&gt;&lt;P&gt;  while len &amp;gt; 0.&lt;/P&gt;&lt;P&gt;    subtract 255 from len.&lt;/P&gt;&lt;P&gt;    i_att = stuff+pos(255).&lt;/P&gt;&lt;P&gt;    append i_att.&lt;/P&gt;&lt;P&gt;    add 255 to pos.&lt;/P&gt;&lt;P&gt;  endwhile.&lt;/P&gt;&lt;P&gt;  clear pos.&lt;/P&gt;&lt;P&gt;  clear stuff.&lt;/P&gt;&lt;P&gt;endform.                    " attach&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ANJI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 07:27:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054536#M423940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T07:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sending EMail from ABAP Program Configuration+Code(Step by Step)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054537#M423941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;thanks but i am not able to get anything of it&lt;/P&gt;&lt;P&gt;I need to do any external Configuration.&lt;/P&gt;&lt;P&gt;plz reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 08:37:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054537#M423941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T08:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sending EMail from ABAP Program Configuration+Code(Step by Step)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054538#M423942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to check for your SCOT configuration. Scot is a transaction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 08:42:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054538#M423942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T08:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sending EMail from ABAP Program Configuration+Code(Step by Step)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054539#M423943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya dear &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and how it wiil connect to my ZProgram.&lt;/P&gt;&lt;P&gt;pls explain the scenario in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;RP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 08:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054539#M423943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T08:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sending EMail from ABAP Program Configuration+Code(Step by Step)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054540#M423944</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;That is the basic configuration which is required to send mail outside SAP. Once that configuration is done you can send mail from your business inbox or using function module or through some other way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try it on yourself, Go to transaction SCOT. In  case node is there then you have to go to settings and maintain the default domain..it can be prd.wipro.com or somthing like that, you will have to search for it.then adress type will be *wipro.com (relevant to you system) and then you haveto schedules job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Choose View &amp;amp;#61614; Jobs. &lt;/P&gt;&lt;P&gt;2. If there is no job scheduled, choose Job &amp;amp;#61614; Create. &lt;/P&gt;&lt;P&gt;3. Enter a job name and confirm. &lt;/P&gt;&lt;P&gt;4. Select the variant SAP&amp;amp;CONNECTALL by placing the cursor on it. &lt;/P&gt;&lt;P&gt;5. Choose Schedule Job. &lt;/P&gt;&lt;P&gt;6. Choose Schedule Periodically. &lt;/P&gt;&lt;P&gt;7. Enter an appropriate time period, such as 5 minutes. &lt;/P&gt;&lt;P&gt;8. Choose Create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that you can run the function module and test it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 08:59:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054540#M423944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T08:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sending EMail from ABAP Program Configuration+Code(Step by Step)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054541#M423945</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;/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these link..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cofiguration:&lt;/P&gt;&lt;P&gt;/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/sending-email-with-attachment.htm" target="test_blank"&gt;http://www.sap-img.com/abap/sending-email-with-attachment.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZSENDEXTERNAL. &lt;/P&gt;&lt;P&gt;DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE. &lt;/P&gt;&lt;P&gt;DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE. &lt;/P&gt;&lt;P&gt;DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE. &lt;/P&gt;&lt;P&gt;DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE. &lt;/P&gt;&lt;P&gt;DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE. &lt;/P&gt;&lt;P&gt;DATA: DOC_CHNG LIKE SODOCCHGI1. &lt;/P&gt;&lt;P&gt;DATA: TAB_LINES LIKE SY-TABIX. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creation of the document to be sent &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;File Name &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DOC_CHNG-OBJ_NAME = 'SENDFILE'. &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;DOC_CHNG-OBJ_DESCR = 'Send External Mail'. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Mail Contents &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;OBJTXT = 'Minimum bid : $250000'. &lt;/P&gt;&lt;P&gt;APPEND OBJTXT. &lt;/P&gt;&lt;P&gt;OBJTXT = 'A representation of the pictures up for auction'. &lt;/P&gt;&lt;P&gt;APPEND OBJTXT. &lt;/P&gt;&lt;P&gt;OBJTXT = 'was included as attachment.'. &lt;/P&gt;&lt;P&gt;APPEND OBJTXT. &lt;/P&gt;&lt;P&gt;DESCRIBE TABLE OBJTXT LINES TAB_LINES. &lt;/P&gt;&lt;P&gt;READ TABLE OBJTXT INDEX TAB_LINES. &lt;/P&gt;&lt;P&gt;DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ). &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creation of the entry for the compressed document &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR OBJPACK-TRANSF_BIN. &lt;/P&gt;&lt;P&gt;OBJPACK-HEAD_START = 1. &lt;/P&gt;&lt;P&gt;OBJPACK-HEAD_NUM = 0. &lt;/P&gt;&lt;P&gt;OBJPACK-BODY_START = 1. &lt;/P&gt;&lt;P&gt;OBJPACK-BODY_NUM = TAB_LINES. &lt;/P&gt;&lt;P&gt;OBJPACK-DOC_TYPE = 'RAW'. &lt;/P&gt;&lt;P&gt;APPEND OBJPACK. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creation of the document attachment &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(Assume that the data in OBJBIN is in BMP format) &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*OBJBIN = ' \O/ '. APPEND OBJBIN. &lt;/P&gt;&lt;P&gt;*OBJBIN = ' | '. APPEND OBJBIN. &lt;/P&gt;&lt;P&gt;*OBJBIN = ' / \ '. APPEND OBJBIN. &lt;/P&gt;&lt;P&gt;*DESCRIBE TABLE OBJBIN LINES TAB_LINES. &lt;/P&gt;&lt;P&gt;*OBJHEAD = 'PICTURE.BMP'. &lt;/P&gt;&lt;P&gt;*APPEND OBJHEAD. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Creation of the entry for the compressed attachment &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*OBJPACK-TRANSF_BIN = 'X'. &lt;/P&gt;&lt;P&gt;*OBJPACK-HEAD_START = 1. &lt;/P&gt;&lt;P&gt;*OBJPACK-HEAD_NUM = 1. &lt;/P&gt;&lt;P&gt;*OBJPACK-BODY_START = 1. &lt;/P&gt;&lt;P&gt;*OBJPACK-BODY_NUM = TAB_LINES. &lt;/P&gt;&lt;P&gt;*OBJPACK-DOC_TYPE = 'BMP'. &lt;/P&gt;&lt;P&gt;*OBJPACK-OBJ_NAME = 'PICTURE'. &lt;/P&gt;&lt;P&gt;*OBJPACK-OBJ_DESCR = 'Representation of object 138'. &lt;/P&gt;&lt;P&gt;*OBJPACK-DOC_SIZE = TAB_LINES * 255. &lt;/P&gt;&lt;P&gt;*APPEND OBJPACK. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Completing the recipient list &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;RECLIST-RECEIVER = 'youremail@sap.com'. &lt;/P&gt;&lt;P&gt;RECLIST-REC_TYPE = 'U'. &lt;/P&gt;&lt;P&gt;APPEND RECLIST. &lt;/P&gt;&lt;P&gt;*RECLIST-RECEIVER = 'SAPUSERNAME'. &lt;/P&gt;&lt;P&gt;*RECLIST-REC_TYPE = 'P'. &lt;/P&gt;&lt;P&gt;*APPEND RECLIST. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sending the document &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;DOCUMENT_DATA = DOC_CHNG &lt;/P&gt;&lt;P&gt;PUT_IN_OUTBOX = 'X' &lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;PACKING_LIST = OBJPACK &lt;/P&gt;&lt;P&gt;OBJECT_HEADER = OBJHEAD &lt;/P&gt;&lt;P&gt;CONTENTS_BIN = OBJBIN &lt;/P&gt;&lt;P&gt;CONTENTS_TXT = OBJTXT &lt;/P&gt;&lt;P&gt;RECEIVERS = RECLIST &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;OPERATION_NO_AUTHORIZATION = 4 &lt;/P&gt;&lt;P&gt;OTHERS = 99. &lt;/P&gt;&lt;P&gt;CASE SY-SUBRC. &lt;/P&gt;&lt;P&gt;WHEN 0. &lt;/P&gt;&lt;P&gt;WRITE: / 'Result of the send process:'. &lt;/P&gt;&lt;P&gt;LOOP AT RECLIST. &lt;/P&gt;&lt;P&gt;WRITE: / RECLIST-RECEIVER(48), ':'. &lt;/P&gt;&lt;P&gt;IF RECLIST-RETRN_CODE = 0. &lt;/P&gt;&lt;P&gt;WRITE 'The document was sent'. &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;WRITE 'The document could not be sent'. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;WHEN 1. &lt;/P&gt;&lt;P&gt;WRITE: / 'No authorization for sending to the specified number', &lt;/P&gt;&lt;P&gt;'of recipients'. &lt;/P&gt;&lt;P&gt;WHEN 2. &lt;/P&gt;&lt;P&gt;WRITE: / 'Document could not be sent to any recipient'. &lt;/P&gt;&lt;P&gt;WHEN 4. &lt;/P&gt;&lt;P&gt;WRITE: / 'No send authorization'. &lt;/P&gt;&lt;P&gt;WHEN OTHERS. &lt;/P&gt;&lt;P&gt;WRITE: / 'Error occurred while sending'. &lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 09:15:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054541#M423945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T09:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sending EMail from ABAP Program Configuration+Code(Step by Step)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054542#M423946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear still i am not getting please tell me in detail how my ZProgram connect with SCOT and all please give all details for configuring and Code&lt;/P&gt;&lt;P&gt;i will definitely reward full&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;RP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 09:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054542#M423946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T09:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sending EMail from ABAP Program Configuration+Code(Step by Step)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054543#M423947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;/P&gt;&lt;P&gt;can u help me to establish configuration for SMTP and RFC&lt;/P&gt;&lt;P&gt;how to define RFC and how to connect it with SMTP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;RP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 10:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054543#M423947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T10:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sending EMail from ABAP Program Configuration+Code(Step by Step)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054544#M423948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;all the steps are well explained (including config) in the blog link given by sunil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have problems following that weblog?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 11:43:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-abap-program-configuration-code-step-by-step/m-p/2054544#M423948</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-03-28T11:43:57Z</dc:date>
    </item>
  </channel>
</rss>

