<?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 Default sender with E-mail in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-default-sender-with-e-mail/m-p/4151985#M992811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="248241"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jul 2008 14:46:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-15T14:46:29Z</dc:date>
    <item>
      <title>Regarding Default sender with E-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-default-sender-with-e-mail/m-p/4151983#M992809</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 the FM u201CSO_NEW_DOCUMENT_SEND_APIu201D to send an email to receivers. I would like change the default sender.  So is there a way of changing who the sender is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know, if you have any idea on above mentiones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points will be there.&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 Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 14:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-default-sender-with-e-mail/m-p/4151983#M992809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T14:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Default sender with E-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-default-sender-with-e-mail/m-p/4151984#M992810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the example: BCS_EXAMPLE_3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    -------- create persistent send request ------------------------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      send_request = cl_bcs=&amp;gt;create_persistent( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    -------- create and set document -------------------------------&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    create document from internal table with text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      APPEND 'Hello world!' TO text.&lt;/P&gt;&lt;P&gt;      document = cl_document_bcs=&amp;gt;create_document(&lt;/P&gt;&lt;P&gt;                      i_type    = 'RAW'&lt;/P&gt;&lt;P&gt;                      i_text    = text&lt;/P&gt;&lt;P&gt;                      i_length  = '12'&lt;/P&gt;&lt;P&gt;                      i_subject = 'test created by BCS_EXAMPLE_3' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    add document to send request&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL METHOD send_request-&amp;gt;set_document( document ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    --------- create and set note ----------------------------------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      APPEND 'This is my little note' TO note.&lt;/P&gt;&lt;P&gt;      CALL METHOD send_request-&amp;gt;set_note( note ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*     --------- set sender -------------------------------------------
*     note: this is necessary only if you want to set the sender
*           different from actual user (SY-UNAME). Otherwise sender is
*           set automatically with actual user.

      sender = cl_sapuser_bcs=&amp;gt;create( sy-uname ).
      CALL METHOD send_request-&amp;gt;set_sender
        EXPORTING i_sender = sender.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 14:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-default-sender-with-e-mail/m-p/4151984#M992810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T14:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Default sender with E-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-default-sender-with-e-mail/m-p/4151985#M992811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="248241"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 14:46:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-default-sender-with-e-mail/m-p/4151985#M992811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T14:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Default sender with E-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-default-sender-with-e-mail/m-p/4151986#M992812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FM SO_NEW_DOCUMENT_SEND_API calls SO_DOCUMENT_SEND_API1 - with this FM you can change the name of the user sending the message. Change your program to use this one instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 14:48:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-default-sender-with-e-mail/m-p/4151986#M992812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T14:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Default sender with E-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-default-sender-with-e-mail/m-p/4151987#M992813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls do not breed about points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the best solution is that you can you sender email address by selection screen just like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_addr type AD_SMTPADR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INITIALIZATION.
CALL FUNCTION 'FTR_CORR_CHECK_EMAIL_SAP_USER'
 EXPORTING
   I_USER                    = SY-UNAME
 IMPORTING
   E_EMAIL_ADDRESS           = p_addr
 EXCEPTIONS
   MAIL_ADDRESS              = 1
   DETERMINATION_ERROR       = 2
   OTHERS                    = 3
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally pass p_addr into your FM as sender id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 14:51:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-default-sender-with-e-mail/m-p/4151987#M992813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T14:51:07Z</dc:date>
    </item>
  </channel>
</rss>

