<?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: Setting Mail sender name manually in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-mail-sender-name-manually/m-p/1128828#M111147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try SO_DOCUMENT_SEND_API1 . use the sender_address and sender_address_type.&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                    = doc_chng&lt;/P&gt;&lt;P&gt;     put_in_outbox                    = 'X'&lt;/P&gt;&lt;P&gt;     sender_address                   = 'SAPSCHED'&lt;/P&gt;&lt;P&gt;     sender_address_type              = 'B'&lt;/P&gt;&lt;UL&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                     = objpack&lt;/P&gt;&lt;P&gt;     object_header                    = objhead&lt;/P&gt;&lt;P&gt;     contents_bin                     = html_tab&lt;/P&gt;&lt;P&gt;     contents_txt                     = objtxt&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CONTENTS_HEX                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    OBJECT_PARA                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    OBJECT_PARB                      =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;    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;&lt;/P&gt;&lt;P&gt;Reward points if ur problem is solved and close the thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: chandrasekhar jagarlamudi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Dec 2005 10:51:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-29T10:51:12Z</dc:date>
    <item>
      <title>Setting Mail sender name manually</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-mail-sender-name-manually/m-p/1128826#M111145</link>
      <description>&lt;P&gt;hi&lt;/P&gt;
  &lt;P&gt;I am using 'SO_NEW_DOCUMENT_SEND_API1' function module to send mails. This function module takes the current user name as the mail sender name and sender mail ID.&lt;/P&gt;
  &lt;P&gt;Is there any way to set the mail sender name or sender mail id manually.&lt;/P&gt;
  &lt;P&gt;Thanks in advance, &lt;/P&gt;
  &lt;P&gt;Padmini&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2005 10:38:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-mail-sender-name-manually/m-p/1128826#M111145</guid>
      <dc:creator>former_member663066</dc:creator>
      <dc:date>2005-12-29T10:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Mail sender name manually</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-mail-sender-name-manually/m-p/1128827#M111146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the program, U can pass the values and resend the values to the function module...Automatically, the new values are set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else, on selection-screen use parameters and internally pass these parameters to the FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 10:46:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-mail-sender-name-manually/m-p/1128827#M111146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T10:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Mail sender name manually</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-mail-sender-name-manually/m-p/1128828#M111147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try SO_DOCUMENT_SEND_API1 . use the sender_address and sender_address_type.&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                    = doc_chng&lt;/P&gt;&lt;P&gt;     put_in_outbox                    = 'X'&lt;/P&gt;&lt;P&gt;     sender_address                   = 'SAPSCHED'&lt;/P&gt;&lt;P&gt;     sender_address_type              = 'B'&lt;/P&gt;&lt;UL&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                     = objpack&lt;/P&gt;&lt;P&gt;     object_header                    = objhead&lt;/P&gt;&lt;P&gt;     contents_bin                     = html_tab&lt;/P&gt;&lt;P&gt;     contents_txt                     = objtxt&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CONTENTS_HEX                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    OBJECT_PARA                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    OBJECT_PARB                      =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;    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;&lt;/P&gt;&lt;P&gt;Reward points if ur problem is solved and close the thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: chandrasekhar jagarlamudi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 10:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-mail-sender-name-manually/m-p/1128828#M111147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T10:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Mail sender name manually</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-mail-sender-name-manually/m-p/1128829#M111148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Padmini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the parameters are not provided in the function module 'SO_NEW_DOCUMENT_SEND_API1' . You will have to change your program and replace the function call with 'SO_DOCUMENT_SEND_API1' and use the SENDER_ADDRESS &amp;amp; SENDER_ADDRESS_TYPE parameters as suggested above. Both the function modules were released by SAP at the same time and don't know the reason for dropping those parameters in one of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 11:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-mail-sender-name-manually/m-p/1128829#M111148</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2005-12-29T11:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Mail sender name manually</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-mail-sender-name-manually/m-p/1128830#M111149</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;First populate the Receiver ID's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;eMail Id of the Selected Employee&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF not P_RECV is initial.    &lt;/P&gt;&lt;P&gt;    reclist-receiver = p_recv.&lt;/P&gt;&lt;P&gt;    reclist-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;    APPEND reclist.&lt;/P&gt;&lt;P&gt;    CLEAR  reclist.&lt;/P&gt;&lt;P&gt;  endif.                       &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Individual Email ID's&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT s_mail.&lt;/P&gt;&lt;P&gt;    reclist-receiver = s_mail-low .&lt;/P&gt;&lt;P&gt;    reclist-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;    APPEND reclist.&lt;/P&gt;&lt;P&gt;    CLEAR  reclist.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sort reclist by receiver.&lt;/P&gt;&lt;P&gt;  delete adjacent duplicates from reclist comparing receiver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the FM you have used.&lt;/P&gt;&lt;P&gt; data: lv_pernr type pa0105-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: v_send_address LIKE soextreci1-receiver. "Sender add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lv_reclist like reclist occurs 0 with header line.&lt;/P&gt;&lt;P&gt;        lv_reclist[] = reclist[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get Email of Current User {&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  select pernr from pa0105&lt;/P&gt;&lt;P&gt;   into lv_pernr&lt;/P&gt;&lt;P&gt;   where subty = '0001'&lt;/P&gt;&lt;P&gt;     and usrid = sy-uname&lt;/P&gt;&lt;P&gt;     and endda ge sy-datum&lt;/P&gt;&lt;P&gt;     and begda le sy-datum.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    select usrid_long from pa0105&lt;/P&gt;&lt;P&gt;     into v_send_address&lt;/P&gt;&lt;P&gt;     where pernr = lv_pernr&lt;/P&gt;&lt;P&gt;       and subty = '0010'&lt;/P&gt;&lt;P&gt;       and endda ge sy-datum&lt;/P&gt;&lt;P&gt;       and begda le sy-datum.&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;} Get Email of Current User&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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                   = doc_chng&lt;/P&gt;&lt;P&gt;      put_in_outbox                   = 'X'&lt;/P&gt;&lt;P&gt;      sender_address                  = v_send_address&lt;/P&gt;&lt;P&gt;      sender_address_type             = 'SMTP'&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  = obj_head&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CONTENTS_HEX                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    OBJECT_PARA                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    OBJECT_PARB                      =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      receivers                        = reclist&lt;/P&gt;&lt;P&gt;&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;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE i000(zz) WITH 'Error while sending the e-Mail'(023).&lt;/P&gt;&lt;P&gt;    Leave to screen 1000.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE s000(zz) WITH 'e-Mail sent successfully'(024).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  reclist[] = lv_reclist[].&lt;/P&gt;&lt;P&gt;  refresh: lv_Reclist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guess this should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maheshwari.V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 11:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-mail-sender-name-manually/m-p/1128830#M111149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T11:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Mail sender name manually</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-mail-sender-name-manually/m-p/1128831#M111150</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;use FM &lt;/P&gt;&lt;P&gt;SO_DOCUMENT_SEND_API1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For code refer to Function Module documentation.&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;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 12:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-mail-sender-name-manually/m-p/1128831#M111150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T12:22:45Z</dc:date>
    </item>
  </channel>
</rss>

