<?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: regarding SO_NEW_DOCUMENT_ATT_SEND_API1 function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1-function-module/m-p/4485692#M1061915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Search forum with the keyword 'SO_NEW_DOCUMENT_ATT_SEND_API1 ' you will find many example's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2008 17:40:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-15T17:40:11Z</dc:date>
    <item>
      <title>regarding SO_NEW_DOCUMENT_ATT_SEND_API1 function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1-function-module/m-p/4485689#M1061912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me. I want to send data through email with a .txt format by using SO_NEW_DOCUMENT_ATT_SEND_API1 function module. Anybody plz help me by sending an example program with function module.Plz help me.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 13:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1-function-module/m-p/4485689#M1061912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T13:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SO_NEW_DOCUMENT_ATT_SEND_API1 function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1-function-module/m-p/4485690#M1061913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read the Function module documentation , you get one example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 14:23:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1-function-module/m-p/4485690#M1061913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T14:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SO_NEW_DOCUMENT_ATT_SEND_API1 function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1-function-module/m-p/4485691#M1061914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you have a pretty detailed example by TJ including all the previous configuration needed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_blogpost" href="https://community.sap.com/" __jive_macro_name="blogpost" modifiedtitle="true" __default_attr="39678"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 17:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1-function-module/m-p/4485691#M1061914</guid>
      <dc:creator>alejandro_bindi</dc:creator>
      <dc:date>2008-09-15T17:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SO_NEW_DOCUMENT_ATT_SEND_API1 function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1-function-module/m-p/4485692#M1061915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Search forum with the keyword 'SO_NEW_DOCUMENT_ATT_SEND_API1 ' you will find many example's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 17:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1-function-module/m-p/4485692#M1061915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T17:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SO_NEW_DOCUMENT_ATT_SEND_API1 function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1-function-module/m-p/4485693#M1061916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT ZMAIL1 .
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZSENDEMAIL                                                  *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Example of sending external email via SAPCONNECT                    *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*
*REPORT  zsendemail                    .

PARAMETERS: psubject(40) type c default  'Hello',
            p_email(40)   type c . 

data:   it_packing_list like sopcklsti1 occurs 0 with header line,
        it_contents like solisti1 occurs 0 with header line,
        it_receivers like somlreci1 occurs 0 with header line,
        it_attachment like solisti1 occurs 0 with header line,
        gd_cnt type i,
        gd_sent_all(1) type c,
        gd_doc_data like sodocchgi1,
        gd_error type sy-subrc.

data:   it_message type standard table of SOLISTI1 initial size 0
                with header line.

***********************************************************************
*START-OF-SELECTION.
START-OF-SELECTION.

Perform populate_message_table.

*Send email message, although is not sent from SAP until mail send
*program has been executed(rsconn01)
PERFORM send_email_message.

*Instructs mail send program for SAPCONNECT to send email(rsconn01)
perform initiate_mail_execute_program.


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  POPULATE_MESSAGE_TABLE
*&amp;amp;---------------------------------------------------------------------*
*       Adds text to email text table
*----------------------------------------------------------------------*
form populate_message_table.
  Append 'Email line 1' to it_message.
  Append 'Email line 2' to it_message.
  Append 'Email line 3' to it_message.
  Append 'Email line 4' to it_message.
endform.                    " POPULATE_MESSAGE_TABLE


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  SEND_EMAIL_MESSAGE
*&amp;amp;---------------------------------------------------------------------*
*       Send email message
*----------------------------------------------------------------------*
form send_email_message.
* Fill the document data.
  gd_doc_data-doc_size = 1.

* Populate the subject/generic message attributes
  gd_doc_data-obj_langu = sy-langu.
  gd_doc_data-obj_name  = 'SAPRPT'.
  gd_doc_data-obj_descr = psubject.
  gd_doc_data-sensitivty = 'F'.

* Describe the body of the message
  clear it_packing_list.
  refresh it_packing_list.
  it_packing_list-transf_bin = space.
  it_packing_list-head_start = 1.
  it_packing_list-head_num = 0.
  it_packing_list-body_start = 1.
  describe table it_message lines it_packing_list-body_num.
  it_packing_list-doc_type = 'RAW'.
  append it_packing_list.

* Add the recipients email address
  clear it_receivers.
  refresh it_receivers.
  it_receivers-receiver = p_email.
  it_receivers-rec_type = 'U'.
  it_receivers-com_type = 'INT'.
  it_receivers-notif_del = 'X'.
  it_receivers-notif_ndel = 'X'.
  append it_receivers.

* Call the FM to post the message to SAPMAIL
  call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
       exporting
            document_data              = gd_doc_data
            put_in_outbox              = 'X'
       importing
            sent_to_all                = gd_sent_all
       tables
            packing_list               = it_packing_list
            contents_txt               = it_message
            receivers                  = it_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.

* Store function module return code
  gd_error = sy-subrc.

* Get it_receivers return code
  loop at it_receivers.
  endloop.
endform.                    " SEND_EMAIL_MESSAGE


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  INITIATE_MAIL_EXECUTE_PROGRAM
*&amp;amp;---------------------------------------------------------------------*
*       Instructs mail send program for SAPCONNECT to send email.
*----------------------------------------------------------------------*
form initiate_mail_execute_program.
  wait up to 2 seconds.
  if gd_error eq 0.
      submit rsconn01 with mode = 'INT'
                    with output = 'X'
                    and return.
  endif.
endform.                    " INITIATE_MAIL_EXECUTE_PROGRAM

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 08:15:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1-function-module/m-p/4485693#M1061916</guid>
      <dc:creator>former_member761936</dc:creator>
      <dc:date>2008-09-16T08:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SO_NEW_DOCUMENT_ATT_SEND_API1 function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1-function-module/m-p/4485694#M1061917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have copied a report 'ZMULTIEXCEL' from &lt;A href="https://community.sap.com/www.sapdev.co.uk" target="test_blank"&gt;www.sapdev.co.uk&lt;/A&gt; site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create an excel file with multiple sheets through an abap report and attach to an email and I have to send that excel file. But when I am going to run the report, excel has been created successfully and also dynamically excel file is opening. But I don't want to open excel file dynamically. &lt;/P&gt;&lt;P&gt;I want to attach that excel file to an email id. Could you please help me?.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 12:36:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1-function-module/m-p/4485694#M1061917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T12:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SO_NEW_DOCUMENT_ATT_SEND_API1 function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1-function-module/m-p/4485695#M1061918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ABAP code to send a sap mail is built around the FM SO_OBJECT_SEND which has the following pattern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SO_OBJECT_SEND' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exporting &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXTERN_ADDRESS = ' ' &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;FOLDER_ID = ' ' &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;FORWARDER = ' ' &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;OBJECT_FL_CHANGE = ' ' &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;OBJECT_HD_CHANGE = ' ' &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;OBJECT_ID = ' ' &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;OBJECT_TYPE = ' ' &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;OUTBOX_FLAG = ' ' &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;OWNER = ' ' &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;STORE_FLAG = ' ' &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;DELETE_FLAG = ' ' &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;SENDER = ' ' &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;CHECK_ALREADY_SENT = ' ' &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;importing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object_id_new = &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sent_to_all = &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OBJCONT = &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;OBJHEAD = &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;OBJPARA = &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;OBJPARB = &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;receivers = &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PACKING_LIST = &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;ATT_CONT = &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;ATT_HEAD = &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;NOTE_TEXT = &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exceptions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;active_user_not_exist = 1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;communication_failure = 2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;component_not_available = 3 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;folder_not_exist = 4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;folder_no_authorization = 5 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;forwarder_not_exist = 6 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note_not_exist = 7 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object_not_exist = 8 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object_not_sent = 9 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object_no_authorization = 10 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object_type_not_exist = 11 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;operation_no_authorization = 12 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;owner_not_exist = 13 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter_error = 14 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;substitute_not_active = 15 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;substitute_not_defined = 16 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;system_failure = 17 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;too_much_receivers = 18 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user_not_exist = 19 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_error = 20 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;others = 21. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the next article we will understand the main parameters and table interfaces of the FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the parameter description is as follows::[http://www.thespot4sap.com/Articles/SAP_Mail_Understanding_SO_Object_Send.asp]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2009 09:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1-function-module/m-p/4485695#M1061918</guid>
      <dc:creator>dhirendra_pandit</dc:creator>
      <dc:date>2009-03-20T09:52:29Z</dc:date>
    </item>
  </channel>
</rss>

