<?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: error in code in email notification sending in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047860#M721515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass doc type and commit_work values also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below code for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
      document_data              = lwa_document_data
      document_type              = c_doc_type
      commit_work                = 'X'
    TABLES
      object_content             = lit_contents
      receivers                  = lit_receivers
    EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      document_type_not_exist    = 3
      operation_no_authorization = 4
      parameter_error            = 5
      x_error                    = 6
      enqueue_error              = 7
      OTHERS                     = 8.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward Points if it helps&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2007 12:23:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-14T12:23:05Z</dc:date>
    <item>
      <title>error in code in email notification sending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047859#M721514</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 am using below code but not email is being send by this?&lt;/P&gt;&lt;P&gt;Please Suggest the email id not being send and sy-subrc is retruned as 8?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check on the below code it can be tested also as it is synt correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables : zcustemail.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declarations.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*PARAMETERS: p_email(50) LOWER CASE.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: document_data LIKE sodocchgi1.&lt;/P&gt;&lt;P&gt;DATA: t_content     LIKE STANDARD TABLE OF solisti1.&lt;/P&gt;&lt;P&gt;DATA: s_content     LIKE solisti1.&lt;/P&gt;&lt;P&gt;DATA: t_receivers   LIKE STANDARD TABLE OF somlreci1.&lt;/P&gt;&lt;P&gt;DATA: s_receivers   LIKE somlreci1. "occurs 0 with header line.&lt;/P&gt;&lt;P&gt;DATA : begin of it_email,&lt;/P&gt;&lt;P&gt;       email_id like zcustemail-email_id,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       end of it_email.&lt;/P&gt;&lt;P&gt;DAta: wa_itreceivers like it_email.&lt;/P&gt;&lt;P&gt;data : it_receivers  like it_email occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;select email_id from zcustemail into table it_receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_receivers into wa_itreceivers.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Receivers.    " add your receivers here..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  s_receivers-receiver = wa_itreceivers-email_id.&lt;/P&gt;&lt;P&gt;  s_receivers-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;  s_receivers-express  = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND s_receivers TO t_receivers.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LOOP AT et_mailid.&lt;/P&gt;&lt;P&gt;*CLEAR i_receivers.&lt;/P&gt;&lt;P&gt;*i_receivers-receiver = et_mailid-email_id.&lt;/P&gt;&lt;P&gt;*i_receivers-rec_type = 'U'.&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;*i_receivers-notif_ndel = 'X'.&lt;/P&gt;&lt;P&gt;*APPEND i_receivers.&lt;/P&gt;&lt;P&gt;*ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Subject&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  document_data-obj_descr = 'New mail from Sap'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Body&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  s_content  = 'Hi,'.&lt;/P&gt;&lt;P&gt;  APPEND s_content TO t_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: s_content.&lt;/P&gt;&lt;P&gt;  APPEND s_content TO t_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  s_content = 'Test email from sap, please don''t reply to this email'.&lt;/P&gt;&lt;P&gt;  APPEND s_content TO t_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: s_content.&lt;/P&gt;&lt;P&gt;  APPEND s_content TO t_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  s_content = 'Thanks,'.&lt;/P&gt;&lt;P&gt;  APPEND s_content TO t_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  s_content = 'Naren.'.&lt;/P&gt;&lt;P&gt;  APPEND s_content TO t_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Send the email.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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              = document_data&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            object_content             = t_content&lt;/P&gt;&lt;P&gt;            receivers                  = t_receivers&lt;/P&gt;&lt;P&gt;            EXCEPTIONS&lt;/P&gt;&lt;P&gt;            too_many_receivers         = 1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           document_not_sent          = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;P&gt;    MESSAGE e208(00) WITH 'Error in sending email :-(('.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE s208(00) WITH 'Email sent &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;)'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 07:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047859#M721514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T07:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: error in code in email notification sending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047860#M721515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass doc type and commit_work values also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below code for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
      document_data              = lwa_document_data
      document_type              = c_doc_type
      commit_work                = 'X'
    TABLES
      object_content             = lit_contents
      receivers                  = lit_receivers
    EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      document_type_not_exist    = 3
      operation_no_authorization = 4
      parameter_error            = 5
      x_error                    = 6
      enqueue_error              = 7
      OTHERS                     = 8.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward Points if it helps&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 12:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047860#M721515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T12:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: error in code in email notification sending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047861#M721516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the code written below and it is working absolutely fine for me. Why don't you try the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'. it is working correctly woth no error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: g_sent_all(1) TYPE c,&lt;/P&gt;&lt;P&gt;          g_doc_data LIKE sodocchgi1,&lt;/P&gt;&lt;P&gt;          g_error TYPE sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  t_content      LIKE solisti1   OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       s_content    LIKE solisti1,&lt;/P&gt;&lt;P&gt;       i_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       i_receivers    LIKE somlreci1  OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_receivers OCCURS 0,&lt;/P&gt;&lt;P&gt;          email_id TYPE so_recname,&lt;/P&gt;&lt;P&gt;       END OF it_receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: c_tab     TYPE c VALUE cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;SELECT email_id FROM zcustemail INTO TABLE it_receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add the recipients email address&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT it_receivers.&lt;/P&gt;&lt;P&gt;  CLEAR i_receivers.&lt;/P&gt;&lt;P&gt;  i_receivers-receiver = it_receivers-email_id.&lt;/P&gt;&lt;P&gt;  i_receivers-rec_type = 'U'.&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;  i_receivers-notif_ndel = '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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the document data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;g_doc_data-doc_size = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the subject/generic message attributes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;g_doc_data-obj_langu = sy-langu.&lt;/P&gt;&lt;P&gt;g_doc_data-obj_name  = 'SAPRPT'.&lt;/P&gt;&lt;P&gt;g_doc_data-obj_descr = 'New mail from SAP' .&lt;/P&gt;&lt;P&gt;g_doc_data-sensitivty = 'F'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Describe the body of the message&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Information about structure of data tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR i_packing_list.&lt;/P&gt;&lt;P&gt;REFRESH i_packing_list.&lt;/P&gt;&lt;P&gt;i_packing_list-transf_bin = space.&lt;/P&gt;&lt;P&gt;i_packing_list-head_start = 1.&lt;/P&gt;&lt;P&gt;i_packing_list-head_num = 0.&lt;/P&gt;&lt;P&gt;i_packing_list-body_start = 1.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE t_content LINES i_packing_list-body_num.&lt;/P&gt;&lt;P&gt;i_packing_list-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;APPEND i_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Body&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;s_content = 'Hi,'.&lt;/P&gt;&lt;P&gt;APPEND s_content TO t_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: s_content.&lt;/P&gt;&lt;P&gt;APPEND s_content TO t_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_content = 'Test email from sap, please don''t reply to this email'.&lt;/P&gt;&lt;P&gt;APPEND s_content TO t_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: s_content.&lt;/P&gt;&lt;P&gt;APPEND s_content TO t_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_content = 'Thanks,'.&lt;/P&gt;&lt;P&gt;APPEND s_content TO t_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_content = 'Naren.'.&lt;/P&gt;&lt;P&gt;APPEND s_content TO t_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call the FM to post the message to SAPMAIL&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              = g_doc_data&lt;/P&gt;&lt;P&gt;    put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;    commit_work                = 'X'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    sent_to_all                = g_sent_all&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    packing_list               = i_packing_list&lt;/P&gt;&lt;P&gt;    contents_txt               = t_content&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Store function module return code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;g_error = sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get i_receivers return code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT i_receivers.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Instructs mail send program for SAPCONNECT to send email(rsconn01)&lt;/P&gt;&lt;P&gt;IF g_error EQ 0.&lt;/P&gt;&lt;P&gt;  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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&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;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 14:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047861#M721516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T14:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: error in code in email notification sending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047862#M721517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the below statement in ur code is giving error ?&lt;/P&gt;&lt;P&gt;CONSTANTS: c_tab TYPE c VALUE cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with msg class cl_abap_char_utilities unknown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and can u pls eloborate more on ur code &lt;/P&gt;&lt;P&gt;specially last part it  not  clear why it is being done so and loo at i_receivers done?&lt;/P&gt;&lt;P&gt;Please eloborate and sugesst me on the above error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Store function module return code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;g_error = sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get i_receivers return code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT i_receivers.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Instructs mail send program for SAPCONNECT to send email(rsconn01)&lt;/P&gt;&lt;P&gt;IF g_error EQ 0.&lt;/P&gt;&lt;P&gt;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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 02:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047862#M721517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T02:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: error in code in email notification sending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047863#M721518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also i tried to comment that class part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the function module call &lt;/P&gt;&lt;P&gt;the return code is being sy-subrc is = 2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and no email is being send as exception 2 is being raised?&lt;/P&gt;&lt;P&gt;Please suggest how its working fine for u?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please eloborate and suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ARora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 02:30:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047863#M721518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T02:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: error in code in email notification sending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047864#M721519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi satish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u pls eloborate on c_doc_type&lt;/P&gt;&lt;P&gt; what this variable or constant holds?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 02:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047864#M721519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T02:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: error in code in email notification sending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047865#M721520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u u pls reply on my query u say it is working fine at ur end ?&lt;/P&gt;&lt;P&gt;i got this error related to the class as i have explained in above mails&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi alll&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one reply on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 06:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047865#M721520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T06:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: error in code in email notification sending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047866#M721521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I told you earlier, it is working fine in my system. You can remove that Class usage from program as it is not required.I think you should check your Email setting or contact a Basis guy.&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;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 08:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047866#M721521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T08:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: error in code in email notification sending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047867#M721522</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 used c_doc_type as 'HTM', you can use as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward Points for helpful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 09:33:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047867#M721522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T09:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: error in code in email notification sending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047868#M721523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u pls eloborate more&lt;/P&gt;&lt;P&gt;as what needs to be checked in email settings its normal outlook inbox where i am trying to send email&lt;/P&gt;&lt;P&gt;but the fm is not working properly as SY-SUBRC &amp;lt;&amp;gt; 0 IN MY CASE ITS RETURNING 2 AS NO DOCUMENT&lt;/P&gt;&lt;P&gt;i dont want to send any document jsut a email with msg&lt;/P&gt;&lt;P&gt;can it be done with this FM &lt;/P&gt;&lt;P&gt;and if yes please let me know how to do it the code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 03:53:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code-in-email-notification-sending/m-p/3047868#M721523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T03:53:41Z</dc:date>
    </item>
  </channel>
</rss>

