<?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: function module to sent a email in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-sent-a-email/m-p/1633474#M282569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as you asked to send mail only in BACKGROUND MODE,so you have to use system variable BATCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-BATCH = 'X'.&lt;/P&gt;&lt;P&gt;*--Program is running in background mode.&lt;/P&gt;&lt;P&gt;  PERFORM F_SEND_MAIL.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM F_SEND_MAIL.&lt;/P&gt;&lt;P&gt;*-Check this link,to know how to send mail.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1998533"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2006 14:24:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-12T14:24:42Z</dc:date>
    <item>
      <title>function module to sent a email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-sent-a-email/m-p/1633468#M282563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there any function module to send report output to an email , this is alv report.&lt;/P&gt;&lt;P&gt;when i am ru in batch mode then this should happen&lt;/P&gt;&lt;P&gt;pls send me the parameters to pass for that function module.&lt;/P&gt;&lt;P&gt;its urgent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 13:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-sent-a-email/m-p/1633468#M282563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T13:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: function module to sent a email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-sent-a-email/m-p/1633469#M282564</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;pls use the FM - &amp;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;rgds &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 13:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-sent-a-email/m-p/1633469#M282564</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-09-12T13:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: function module to sent a email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-sent-a-email/m-p/1633470#M282565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey venu,&lt;/P&gt;&lt;P&gt;check the below code may be helpful for u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finding the user-exits of a SAP transaction code &lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Finding the user-exits of a SAP transaction code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Enter the transaction code in which you are looking for the user-exit&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and it will list you the list of user-exits in the transaction code.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Also a drill down is possible which will help you to branch to SMOD.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Written by : SAP Basis, ABAP Programming and Other IMG Stuff&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             &lt;A href="http://www.sap-img.com/*" target="test_blank"&gt;http://www.sap-img.com/*&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zuserexit no standard page heading.&lt;/P&gt;&lt;P&gt;tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.&lt;/P&gt;&lt;P&gt;         tables : tstct.&lt;/P&gt;&lt;P&gt;data : jtab like tadir occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data : field1(30).&lt;/P&gt;&lt;P&gt;data : v_devclass like tadir-devclass.&lt;/P&gt;&lt;P&gt;parameters : p_tcode like tstc-tcode obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from tstc where tcode eq p_tcode.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;   select single * from tadir where pgmid = 'R3TR'&lt;/P&gt;&lt;P&gt;                    and object = 'PROG'&lt;/P&gt;&lt;P&gt;                    and obj_name = tstc-pgmna.&lt;/P&gt;&lt;P&gt;   move : tadir-devclass to v_devclass.&lt;/P&gt;&lt;P&gt;      if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;         select single * from trdir where name = tstc-pgmna.&lt;/P&gt;&lt;P&gt;         if trdir-subc eq 'F'.&lt;/P&gt;&lt;P&gt;            select single * from tfdir where pname = tstc-pgmna.&lt;/P&gt;&lt;P&gt;            select single * from enlfdir where funcname =&lt;/P&gt;&lt;P&gt;            tfdir-funcname.&lt;/P&gt;&lt;P&gt;            select single * from tadir where pgmid = 'R3TR'&lt;/P&gt;&lt;P&gt;                               and object = 'FUGR'&lt;/P&gt;&lt;P&gt;                               and obj_name eq enlfdir-area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            move : tadir-devclass to v_devclass.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;P&gt;       select * from tadir into table jtab&lt;/P&gt;&lt;P&gt;                     where pgmid = 'R3TR'&lt;/P&gt;&lt;P&gt;                       and object = 'SMOD'&lt;/P&gt;&lt;P&gt;                       and devclass = v_devclass.&lt;/P&gt;&lt;P&gt;        select single * from tstct where sprsl eq sy-langu and&lt;/P&gt;&lt;P&gt;                                         tcode eq p_tcode.&lt;/P&gt;&lt;P&gt;        format color col_positive intensified off.&lt;/P&gt;&lt;P&gt;        write:/(19) 'Transaction Code - ',&lt;/P&gt;&lt;P&gt;             20(20) p_tcode,&lt;/P&gt;&lt;P&gt;             45(50) tstct-ttext.&lt;/P&gt;&lt;P&gt;                    skip.&lt;/P&gt;&lt;P&gt;        if not jtab[] is initial.&lt;/P&gt;&lt;P&gt;           write:/(95) sy-uline.&lt;/P&gt;&lt;P&gt;           format color col_heading intensified on.&lt;/P&gt;&lt;P&gt;           write:/1 sy-vline,&lt;/P&gt;&lt;P&gt;                  2 'Exit Name',&lt;/P&gt;&lt;P&gt;                 21 sy-vline ,&lt;/P&gt;&lt;P&gt;                 22 'Description',&lt;/P&gt;&lt;P&gt;                 95 sy-vline.&lt;/P&gt;&lt;P&gt;           write:/(95) sy-uline.&lt;/P&gt;&lt;P&gt;           loop at jtab.&lt;/P&gt;&lt;P&gt;              select single * from modsapt&lt;/P&gt;&lt;P&gt;                     where sprsl = sy-langu and&lt;/P&gt;&lt;P&gt;                            name = jtab-obj_name.&lt;/P&gt;&lt;P&gt;                   format color col_normal intensified off.&lt;/P&gt;&lt;P&gt;                   write:/1 sy-vline,&lt;/P&gt;&lt;P&gt;                          2 jtab-obj_name hotspot on,&lt;/P&gt;&lt;P&gt;                         21 sy-vline ,&lt;/P&gt;&lt;P&gt;                         22 modsapt-modtext,&lt;/P&gt;&lt;P&gt;                         95 sy-vline.&lt;/P&gt;&lt;P&gt;           endloop.&lt;/P&gt;&lt;P&gt;           write:/(95) sy-uline.&lt;/P&gt;&lt;P&gt;           describe table jtab.&lt;/P&gt;&lt;P&gt;           skip.&lt;/P&gt;&lt;P&gt;           format color col_total intensified on.&lt;/P&gt;&lt;P&gt;           write:/ 'No of Exits:' , sy-tfill.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;           format color col_negative intensified on.&lt;/P&gt;&lt;P&gt;           write:/(95) 'No User Exit exists'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;          format color col_negative intensified on.&lt;/P&gt;&lt;P&gt;          write:/(95) 'Transaction Code Does Not Exist'.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at line-selection.&lt;/P&gt;&lt;P&gt;   get cursor field field1.&lt;/P&gt;&lt;P&gt;   check field1(4) eq 'JTAB'.&lt;/P&gt;&lt;P&gt;   set parameter id 'MON' field sy-lisel+1(10).&lt;/P&gt;&lt;P&gt;   call transaction 'SMOD' and skip first   screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---End of Program&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;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 13:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-sent-a-email/m-p/1633470#M282565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T13:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: function module to sent a email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-sent-a-email/m-p/1633471#M282566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The FM in comments is to just send it as email while the one is use is to send it as attachement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form SEND_EMAIL tables IT_MESSAGE type T_MESSAGE.&lt;/P&gt;&lt;P&gt;  data: IS_DOCDATA   type SODOCCHGI1,&lt;/P&gt;&lt;P&gt;        IS_RECEIVERS type SOMLRECI1,&lt;/P&gt;&lt;P&gt;        IS_RECEIVERS_COPY type SOMLRECI1,&lt;/P&gt;&lt;P&gt;        IT_RECEIVERS type table of SOMLRECI1,&lt;/P&gt;&lt;P&gt;        IS_CONTENT   type SOLISTI1,&lt;/P&gt;&lt;P&gt;        IT_CONTENT   type table of SOLISTI1,&lt;/P&gt;&lt;P&gt;*500369789+&lt;/P&gt;&lt;P&gt;        l_txt(255)    type c,&lt;/P&gt;&lt;P&gt;        lt_objpack    TYPE TABLE OF sopcklsti1 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        lt_objhead    TYPE TABLE OF solisti1   WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        lt_objtxt     TYPE TABLE OF solisti1   WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        l_tab_lines TYPE i,&lt;/P&gt;&lt;P&gt;        l_att_type  LIKE soodk-objtp.&lt;/P&gt;&lt;P&gt;*500369789+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IS_DOCDATA-OBJ_NAME = 'MAIL'.&lt;/P&gt;&lt;P&gt;  IS_DOCDATA-PRIORITY = 5.&lt;/P&gt;&lt;P&gt;  IS_DOCDATA-OBJ_LANGU = SY-LANGU.&lt;/P&gt;&lt;P&gt;  IS_DOCDATA-NO_CHANGE = 'X'.&lt;/P&gt;&lt;P&gt;  IS_DOCDATA-OBJ_DESCR = SY-CPROG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at IT_MESSAGE into IS_MESSAGE.&lt;/P&gt;&lt;P&gt;    clear : IS_CONTENT, l_txt.  "500369789+&lt;/P&gt;&lt;P&gt;    move is_message-line to l_txt. "500369789+&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   move IS_MESSAGE-LINE to IS_CONTENT-LINE. "500369789-&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    move l_txt to IS_CONTENT-LINE. "500369789+&lt;/P&gt;&lt;P&gt;    append IS_CONTENT to IT_CONTENT.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--&lt;DEL&gt;-select_email_address&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;  select single&lt;/P&gt;&lt;P&gt;         EMAILADDR&lt;/P&gt;&lt;P&gt;         CCEMAILADDR&lt;/P&gt;&lt;P&gt;    into (IS_RECEIVERS-RECEIVER, IS_RECEIVERS_COPY-RECEIVER)&lt;/P&gt;&lt;P&gt;    from ZGL_EMAILCTRL&lt;/P&gt;&lt;P&gt;   where IDENT = ''&lt;/P&gt;&lt;P&gt;     and ZPROGRAM = 'Z_L_SO_CREA'&lt;/P&gt;&lt;P&gt;     and ACTIVE = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if IS_RECEIVERS-RECEIVER is not initial.&lt;/P&gt;&lt;P&gt;    IS_RECEIVERS-REC_TYPE = 'U'.&lt;/P&gt;&lt;P&gt;    IS_RECEIVERS_COPY-REC_TYPE = 'U'.&lt;/P&gt;&lt;P&gt;    IS_RECEIVERS_COPY-COPY = 'X'.&lt;/P&gt;&lt;P&gt;    append IS_RECEIVERS to IT_RECEIVERS.&lt;/P&gt;&lt;P&gt;    append IS_RECEIVERS_COPY to IT_RECEIVERS.&lt;/P&gt;&lt;P&gt;*500369789+&lt;/P&gt;&lt;P&gt;   lt_objhead-line = 'USA Order Report'.&lt;/P&gt;&lt;P&gt;   append lt_objhead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   DESCRIBE TABLE lt_objhead LINES l_tab_lines.&lt;/P&gt;&lt;P&gt;   CLEAR lt_objpack-transf_bin.&lt;/P&gt;&lt;P&gt;   lt_objpack-doc_size = STRLEN( lt_objhead ).&lt;/P&gt;&lt;P&gt;   lt_objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;   lt_objpack-head_num = 1.&lt;/P&gt;&lt;P&gt;   lt_objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;   lt_objpack-body_num = 1.&lt;/P&gt;&lt;P&gt;   lt_objpack-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;   APPEND lt_objpack.&lt;/P&gt;&lt;P&gt;   l_att_type = 'RAW'.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE it_content LINES l_tab_lines.&lt;/P&gt;&lt;P&gt;  READ TABLE it_content into is_content INDEX l_tab_lines.&lt;/P&gt;&lt;P&gt;  lt_objpack-doc_size = ( l_tab_lines - 1 ) * 255.&lt;/P&gt;&lt;P&gt;  lt_objpack-doc_size = lt_objpack-doc_size + STRLEN( is_content ).&lt;/P&gt;&lt;P&gt;  lt_objpack-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;  lt_objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;  lt_objpack-head_num = 2.&lt;/P&gt;&lt;P&gt;  lt_objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;  lt_objpack-body_num = l_tab_lines.&lt;/P&gt;&lt;P&gt;  lt_objpack-doc_type = l_att_type.&lt;/P&gt;&lt;P&gt;  lt_objpack-obj_name = 'ATTACHMENT'.&lt;/P&gt;&lt;P&gt;  concatenate 'Usa' SY-DATUM+6(2) SY-DATUM+4(2) into&lt;/P&gt;&lt;P&gt;  lt_objpack-obj_descr.                   "#EC *&lt;/P&gt;&lt;P&gt;  APPEND lt_objpack.&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              = IS_DOCDATA&lt;/P&gt;&lt;P&gt;      commit_work                = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      packing_list               = lt_objpack&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    object_header              = lt_objhead&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      contents_txt               = lt_objhead&lt;/P&gt;&lt;P&gt;      contents_bin               = it_content&lt;/P&gt;&lt;P&gt;      receivers                  = it_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;*500369789+&lt;/P&gt;&lt;P&gt;*500369789-&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SEND EMAIL FOR PLANTS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   call function 'SO_NEW_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       DOCUMENT_TYPE              = 'RAW'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       DOCUMENT_DATA              = IS_DOCDATA&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       COMMIT_WORK                = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     tables&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       OBJECT_CONTENT             = IT_CONTENT&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       RECEIVERS                  = IT_RECEIVERS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     exceptions&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       TOO_MANY_RECEIVERS         = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       DOCUMENT_NOT_SENT          = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       OPERATION_NO_AUTHORIZATION = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       others                     = 99.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*500369789-&lt;/P&gt;&lt;P&gt;    if SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    "send_email&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 14:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-sent-a-email/m-p/1633471#M282566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T14:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: function module to sent a email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-sent-a-email/m-p/1633472#M282567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Venu,&lt;/P&gt;&lt;P&gt; Check this out&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 14:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-sent-a-email/m-p/1633472#M282567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T14:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: function module to sent a email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-sent-a-email/m-p/1633473#M282568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Visit the following thread,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1196549"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat Ramanan N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 14:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-sent-a-email/m-p/1633473#M282568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T14:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: function module to sent a email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-sent-a-email/m-p/1633474#M282569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as you asked to send mail only in BACKGROUND MODE,so you have to use system variable BATCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-BATCH = 'X'.&lt;/P&gt;&lt;P&gt;*--Program is running in background mode.&lt;/P&gt;&lt;P&gt;  PERFORM F_SEND_MAIL.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM F_SEND_MAIL.&lt;/P&gt;&lt;P&gt;*-Check this link,to know how to send mail.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1998533"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 14:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-sent-a-email/m-p/1633474#M282569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T14:24:42Z</dc:date>
    </item>
  </channel>
</rss>

