<?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 for sending email in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sending-email/m-p/4048535#M967803</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 these fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_DOCUMENT_SEND_API1          SAPoffice: Send new document with attachments using RFC&lt;/P&gt;&lt;P&gt;SO_NEW_DOCUMENT_ATT_SEND_API1  SAPoffice: Send new document with attachments using RFC&lt;/P&gt;&lt;P&gt;SO_NEW_DOCUMENT_ATT_SEND_MAPI&lt;/P&gt;&lt;P&gt;SO_NEW_DOCUMENT_SEND_API1      SAPoffice: Send new document&lt;/P&gt;&lt;P&gt;SO_OLD_DOCUMENT_SEND_API1      SAPoffice: Send existing document using RFC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2008 07:39:40 GMT</pubDate>
    <dc:creator>GauthamV</dc:creator>
    <dc:date>2008-06-27T07:39:40Z</dc:date>
    <item>
      <title>Function module for sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sending-email/m-p/4048533#M967801</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; Can I know list of function modules for sending emails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than "SO_DOCUMENT_SEND_API1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 07:35:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sending-email/m-p/4048533#M967801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T07:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sending-email/m-p/4048534#M967802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SO_DOCUMENT_SEND_ATT_API1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 07:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sending-email/m-p/4048534#M967802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T07:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sending-email/m-p/4048535#M967803</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 these fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_DOCUMENT_SEND_API1          SAPoffice: Send new document with attachments using RFC&lt;/P&gt;&lt;P&gt;SO_NEW_DOCUMENT_ATT_SEND_API1  SAPoffice: Send new document with attachments using RFC&lt;/P&gt;&lt;P&gt;SO_NEW_DOCUMENT_ATT_SEND_MAPI&lt;/P&gt;&lt;P&gt;SO_NEW_DOCUMENT_SEND_API1      SAPoffice: Send new document&lt;/P&gt;&lt;P&gt;SO_OLD_DOCUMENT_SEND_API1      SAPoffice: Send existing document using RFC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 07:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sending-email/m-p/4048535#M967803</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-06-27T07:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sending-email/m-p/4048536#M967804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;Below is the sample code to send the external mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;**********&lt;STRONG&gt;Reward Points if helpful&lt;/STRONG&gt;**********&amp;amp;&lt;/P&gt;&lt;P&gt;DATA: ld_mtitle LIKE sodocchgi1-obj_descr,&lt;/P&gt;&lt;P&gt;        ld_format TYPE  so_obj_tp ,&lt;/P&gt;&lt;P&gt;        ld_attdescription TYPE  so_obj_nam ,&lt;/P&gt;&lt;P&gt;        ld_attfilename TYPE  so_obj_des .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       ld_receiver LIKE  sy-subrc.&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;  DATA:   it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;          it_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;          it_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;          w_cnt TYPE i,&lt;/P&gt;&lt;P&gt;          w_sent_all(1) TYPE c,                             "#EC NEEDED&lt;/P&gt;&lt;P&gt;          w_doc_data LIKE sodocchgi1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH it_receivers . CLEAR it_receivers .&lt;/P&gt;&lt;P&gt;  IF v_trip_send = 'X'.&lt;/P&gt;&lt;P&gt;    it_receivers-receiver = it_trip_dload-approver_email .&lt;/P&gt;&lt;P&gt;  ELSE .&lt;/P&gt;&lt;P&gt;    it_receivers-receiver = it_adv_dload-approver_email .&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  it_receivers-rec_type = c_u .&lt;/P&gt;&lt;P&gt;  APPEND it_receivers. CLEAR it_receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it_receivers-receiver = " ------&amp;gt; pass your reciever email id.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF v_trip_send = 'X' .&lt;/P&gt;&lt;P&gt;    it_receivers-receiver = it_trip_dload-requester_email .&lt;/P&gt;&lt;P&gt;  ELSE .&lt;/P&gt;&lt;P&gt;    it_receivers-receiver = it_adv_dload-requester_email .&lt;/P&gt;&lt;P&gt;  ENDIF .&lt;/P&gt;&lt;P&gt;  it_receivers-rec_type = c_u .&lt;/P&gt;&lt;P&gt;  it_receivers-copy     = 'X' .&lt;/P&gt;&lt;P&gt;  APPEND it_receivers. CLEAR it_receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ld_mtitle = p_mtitle.&lt;/P&gt;&lt;P&gt;  ld_format              = p_format.&lt;/P&gt;&lt;P&gt;  ld_attdescription      = p_attdescription.&lt;/P&gt;&lt;P&gt;  ld_attfilename         = p_filename.&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;  w_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;  w_doc_data-obj_langu = sy-langu.&lt;/P&gt;&lt;P&gt;  w_doc_data-obj_name  = c_saprpt.&lt;/P&gt;&lt;P&gt;  w_doc_data-obj_descr = ld_mtitle .&lt;/P&gt;&lt;P&gt;  w_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;Fill the document data and get size of attachment&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR w_doc_data.&lt;/P&gt;&lt;P&gt;  READ TABLE it_attach INDEX w_cnt.&lt;/P&gt;&lt;P&gt;  w_doc_data-doc_size =&lt;/P&gt;&lt;P&gt;     ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).&lt;/P&gt;&lt;P&gt;  w_doc_data-obj_langu  = sy-langu.&lt;/P&gt;&lt;P&gt;  w_doc_data-obj_name   = c_saprpt.&lt;/P&gt;&lt;P&gt;  w_doc_data-obj_descr  = ld_mtitle.&lt;/P&gt;&lt;P&gt;  w_doc_data-sensitivty = c_f.&lt;/P&gt;&lt;P&gt;  CLEAR it_attachment.&lt;/P&gt;&lt;P&gt;  REFRESH it_attachment.&lt;/P&gt;&lt;P&gt;  it_attachment[] = it_attach[].&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;/UL&gt;&lt;P&gt;  CLEAR it_packing_list.&lt;/P&gt;&lt;P&gt;  REFRESH it_packing_list.&lt;/P&gt;&lt;P&gt;  it_packing_list-transf_bin = space.&lt;/P&gt;&lt;P&gt;  it_packing_list-head_start = 1.&lt;/P&gt;&lt;P&gt;  it_packing_list-head_num = 0.&lt;/P&gt;&lt;P&gt;  it_packing_list-body_start = 1.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE it_message LINES it_packing_list-body_num.&lt;/P&gt;&lt;P&gt;  it_packing_list-doc_type = c_raw.&lt;/P&gt;&lt;P&gt;  APPEND it_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create attachment notification&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  it_packing_list-transf_bin = c_x.&lt;/P&gt;&lt;P&gt;  it_packing_list-head_start = 1.&lt;/P&gt;&lt;P&gt;  it_packing_list-head_num   = 1.&lt;/P&gt;&lt;P&gt;  it_packing_list-body_start = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE it_attachment LINES it_packing_list-body_num.&lt;/P&gt;&lt;P&gt;  it_packing_list-doc_type   =  ld_format.&lt;/P&gt;&lt;P&gt;  it_packing_list-obj_descr  =  ld_attdescription.&lt;/P&gt;&lt;P&gt;  it_packing_list-obj_name   =  ld_attfilename.&lt;/P&gt;&lt;P&gt;  it_packing_list-doc_size   =  it_packing_list-body_num * 255.&lt;/P&gt;&lt;P&gt;  APPEND it_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SO_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      document_data = w_doc_data&lt;/P&gt;&lt;P&gt;      put_in_outbox = c_x&lt;/P&gt;&lt;P&gt;      commit_work   = c_x&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      sent_to_all   = w_sent_all&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      packing_list  = it_packing_list&lt;/P&gt;&lt;P&gt;      contents_bin  = it_attachment&lt;/P&gt;&lt;P&gt;      contents_txt  = it_message&lt;/P&gt;&lt;P&gt;      receivers     = it_receivers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 07:40:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sending-email/m-p/4048536#M967804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T07:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sending-email/m-p/4048537#M967805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Function Modules related to sending emails&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_NEW_DOCUMENT_ATT_SEND_API1 - Sends emails with texts and attachments&lt;/P&gt;&lt;P&gt;SO_NEW_DOCUMENT_SEND_API1 - Sends emails with texts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiva Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 07:41:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sending-email/m-p/4048537#M967805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T07:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sending-email/m-p/4048538#M967806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SO_OBJECT_SEND&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SO_OBJECT_SEND'
             EXPORTING
*                   EXTERN_ADDRESS             = ' '
*                   FOLDER_ID                  = ' '
*                   FORWARDER                  = ' '
*                   OBJECT_FL_CHANGE           = ' '
                  object_hd_change           = x_object_hd_change
*                   OBJECT_ID                  = ' '
                  object_type                = document_type
*                   OUTBOX_FLAG                = ' '
*               OWNER                      = FSABE-USRNAM
*                   STORE_FLAG                 = ' '
*                   DELETE_FLAG                = ' '
*               SENDER                     = FSABE-USRNAM
*                   CHECK_ALREADY_SENT         = ' '
                  originator                 = horiginator
                  originator_type            = 'B'
             IMPORTING
*                   OBJECT_ID_NEW              =
                  sent_to_all                = x_sent_to_all
             TABLES
                  objcont                    = x_objcont
                  objhead                    = x_objhead
*                   OBJPARA                    =
*                   OBJPARB                    =
                  receivers                  = x_receivers
*                   PACKING_LIST               =
*                   ATT_CONT                   =
*                   ATT_HEAD                   =
*                   NOTE_TEXT                  =
             EXCEPTIONS
                  active_user_not_exist      = 1
                  communication_failure      = 2
                  component_not_available    = 3
                  folder_not_exist           = 4
                  folder_no_authorization    = 5
                  forwarder_not_exist        = 6
                  note_not_exist             = 7
                  object_not_exist           = 8
                  object_not_sent            = 9
                  object_no_authorization    = 10
                  object_type_not_exist      = 11
                  operation_no_authorization = 12
                  owner_not_exist            = 13
                  parameter_error            = 14
                  substitute_not_active      = 15
                  substitute_not_defined     = 16
                  system_failure             = 17
                  too_much_receivers         = 18
                  user_not_exist             = 19
                  x_error                    = 20
                  OTHERS                     = 21.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 07:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sending-email/m-p/4048538#M967806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T07:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sending-email/m-p/4048539#M967807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I am using SO_DOCUMENT_SEND_API1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the program, If email is mainatined in SCOT tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mail will be sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If email is not maintained in SCOT, it will give one POP dialog box of SAPOffice with user details and error in sending mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once if i click on continue button that POP disappears,&lt;/P&gt;&lt;P&gt;how to avoid this POP Up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 07:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sending-email/m-p/4048539#M967807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T07:45:40Z</dc:date>
    </item>
  </channel>
</rss>

