<?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: Submit Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/944354#M63843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello patrick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yur answer was osom...it was great help..thanks very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2005 06:40:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-13T06:40:32Z</dc:date>
    <item>
      <title>Submit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/944351#M63840</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;&lt;/P&gt;&lt;P&gt;i have to use submit statement and have to mail the user. We have own Z program to email.It have select option for s_email. i have to upload an excel file and mail the users about the details of report.i am able to send the output to one recipient but not to multiple users.the code looks like:&lt;/P&gt;&lt;P&gt;LOOP AT t_itab.&lt;/P&gt;&lt;P&gt;  move: t_itab-s_email  to s_mails.&lt;/P&gt;&lt;P&gt;    SUBMIT zzemailreport VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;                   WITH p_send  = 'X'&lt;/P&gt;&lt;P&gt;                   WITH p_prog  = t_itab-p_prog&lt;/P&gt;&lt;P&gt;                   WITH p_var   = t_itab-p_var&lt;/P&gt;&lt;P&gt;                   WITH p_subj  = t_itab-p_subj&lt;/P&gt;&lt;P&gt;                   WITH s_email = s_mails&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                    AND RETURN.&lt;/P&gt;&lt;P&gt;where s_mails is range(ranges:s_mails for SADRUD-ADDRESS.&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;An this is internal table:&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF t_itab OCCURS 0,&lt;/P&gt;&lt;P&gt;      p_prog(10)   TYPE c, "Program Name&lt;/P&gt;&lt;P&gt;      p_var(15)    TYPE c, "Variant Name&lt;/P&gt;&lt;P&gt;      p_subj(35)   TYPE c, "Subject&lt;/P&gt;&lt;P&gt;      s_email(65)  TYPE c, "Email&lt;/P&gt;&lt;P&gt;      s_email1(65) TYPE c, "Emailoptional&lt;/P&gt;&lt;P&gt;      s_email2(65) TYPE c, "Emailoptional&lt;/P&gt;&lt;P&gt;      s_email3(65) TYPE c, "Emailoptional&lt;/P&gt;&lt;P&gt;      s_email4(65) TYPE c, "Emailoptional&lt;/P&gt;&lt;P&gt;      END OF t_itab.&lt;/P&gt;&lt;P&gt; so can anyone pls suggest how can i send mail to multiple recipient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2005 05:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/944351#M63840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-13T05:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/944352#M63841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: tbl_selections type table of rsparams with header line.

loop at t_itab.
clear tbl_selections.
tbl_selections-selname = 'S_EMAIL'.
tbl_selections-kind = 'S'.  "Selection Option
tbl-selections-sign = 'I'.
tbl_selections-option = 'EQ'.
tbl_selections-low = t_itab-email.
append tbl_selections.
endloop.

SUBMIT zzemailreport VIA SELECTION-SCREEN
WITH p_send = 'X'
WITH p_prog = t_itab-p_prog
WITH p_var = t_itab-p_var
WITH p_subj = t_itab-p_subj
WITH selection-table tbl_selections
and return.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the blurb from SAP Help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modification 3 &lt;/P&gt;&lt;P&gt;SUBMIT rep WITH SELECTION-TABLE seltab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The addition WITH SELECTION-TABLE seltab allows you to specify values passed via the WITH clause to report parameters or selection criteria in an internal table. Here, the table seltab has the structure of RSPARAMS. You can use the function module RS_REFRESH_FROM_SELECT_OPTIONS to fill the table with the contents of the current parameters or selection criteria (it replaces the key word REFRESH seltab FROM SELECT-OPTIONS). For further information, see the documentation on SUBMIT."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. Kindly assign Reward Points tot he posts you find helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Patrick Yee&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2005 06:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/944352#M63841</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-09-13T06:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/944353#M63842</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;&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT zzemailreport VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;WITH s_email &amp;lt;b&amp;gt;in&amp;lt;/b&amp;gt; s_mails&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2005 06:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/944353#M63842</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-09-13T06:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/944354#M63843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello patrick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yur answer was osom...it was great help..thanks very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2005 06:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/944354#M63843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-13T06:40:32Z</dc:date>
    </item>
  </channel>
</rss>

