<?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 Help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/1631913#M281985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;u can use any of the below fms..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SO_NEW_DOCUMENT_ATT_SEND_API1&lt;/P&gt;&lt;P&gt;SO_NEW_DOCUMENT_SEND_API1&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Oct 2006 18:42:29 GMT</pubDate>
    <dc:creator>abdul_hakim</dc:creator>
    <dc:date>2006-10-03T18:42:29Z</dc:date>
    <item>
      <title>Function Module Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/1631911#M281983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any FM that sends messgaes to distribution List of the Users(not to Individual Receipients) ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2006 18:23:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/1631911#M281983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T18:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/1631912#M281984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its the same function module that sends the mail, you have to specify the dist. list name and change the user type. That should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2006 18:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/1631912#M281984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T18:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/1631913#M281985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;u can use any of the below fms..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SO_NEW_DOCUMENT_ATT_SEND_API1&lt;/P&gt;&lt;P&gt;SO_NEW_DOCUMENT_SEND_API1&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2006 18:42:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/1631913#M281985</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-10-03T18:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/1631914#M281986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use function module &amp;lt;b&amp;gt;SO_DLI_READ&amp;lt;/b&amp;gt; to get the list of members in the distribution list. There is  internal table MEMBER returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you loop at internal table MEMBER, populate body for each member-memnam and call the function module SO_NEW_DOCUMENT_ATT_SEND_API1 to send messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2006 19:00:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/1631914#M281986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T19:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/1631915#M281987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the Function module &amp;lt;b&amp;gt;TH_POPUP&amp;lt;/b&amp;gt; to send the messages to the user, if you want to send the message to all users, use the below code ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT Z_MESSAGE_TO_ALL.

PARAMETERS: MESSAGE(128) default ' Error ! Please logoff now ! '.
DATA: OPCODE TYPE X VALUE 2.
DATA: BEGIN OF USR_TABL OCCURS 5.
INCLUDE STRUCTURE UINFO.
DATA: END OF USR_TABL.


CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE
ID 'TAB' FIELD USR_TABL-*SYS*.

LOOP AT USR_TABL.

CALL FUNCTION 'TH_POPUP'
EXPORTING
CLIENT = SY-MANDT
USER = USR_TABL-BNAME
MESSAGE = MESSAGE
* MESSAGE_LEN = 0
* CUT_BLANKS = ' '
EXCEPTIONS
USER_NOT_FOUND = 1
OTHERS = 2.
ENDLOOP&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2006 19:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/1631915#M281987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T19:00:10Z</dc:date>
    </item>
  </channel>
</rss>

