<?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: report program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-program/m-p/1298924#M157741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satheesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess would be is to try in the below way, as rsconn01 program is writing output with object delivery status. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit rsconn01 with mode = 'INT'&lt;/P&gt;&lt;P&gt;and return.&lt;/P&gt;&lt;P&gt;Without  output = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Jun 2006 15:14:17 GMT</pubDate>
    <dc:creator>Manohar2u</dc:creator>
    <dc:date>2006-06-03T15:14:17Z</dc:date>
    <item>
      <title>report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-program/m-p/1298923#M157740</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;   The folowing program i got from the forum..&lt;/P&gt;&lt;P&gt;here i want this program alone to be executed without waiting for the other programs to run..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also after executing the program its asking the name of the printer..why..please modify the below code and correct the errors..plz..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZSENDEMAIL                                                  *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Example of sending external email via SAPCONNECT                    *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zsendemail                    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: psubject(40) type c default  'Hello',&lt;/P&gt;&lt;P&gt;            p_email(40)   type c default 'test@sapdev.co.uk' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:   it_packing_list like sopcklsti1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;        it_contents like solisti1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;        it_receivers like somlreci1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;        it_attachment like solisti1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;        gd_cnt type i,&lt;/P&gt;&lt;P&gt;        gd_sent_all(1) type c,&lt;/P&gt;&lt;P&gt;        gd_doc_data like sodocchgi1,&lt;/P&gt;&lt;P&gt;        gd_error type sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:   it_message type standard table of SOLISTI1 initial size 0&lt;/P&gt;&lt;P&gt;                with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;*START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform populate_message_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Send email message, although is not sent from SAP until mail send&lt;/P&gt;&lt;P&gt;*program has been executed(rsconn01)&lt;/P&gt;&lt;P&gt;PERFORM send_email_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Instructs mail send program for SAPCONNECT to send email(rsconn01)&lt;/P&gt;&lt;P&gt;perform initiate_mail_execute_program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  POPULATE_MESSAGE_TABLE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Adds text to email text table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form populate_message_table.&lt;/P&gt;&lt;P&gt;  Append 'Email line 1' to it_message.&lt;/P&gt;&lt;P&gt;  Append 'Email line 2' to it_message.&lt;/P&gt;&lt;P&gt;  Append 'Email line 3' to it_message.&lt;/P&gt;&lt;P&gt;  Append 'Email line 4' to it_message.&lt;/P&gt;&lt;P&gt;endform.                    " POPULATE_MESSAGE_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  SEND_EMAIL_MESSAGE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Send email message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form send_email_message.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the document data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  gd_doc_data-doc_size = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the subject/generic message attributes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  gd_doc_data-obj_langu = sy-langu.&lt;/P&gt;&lt;P&gt;  gd_doc_data-obj_name  = 'SAPRPT'.&lt;/P&gt;&lt;P&gt;  gd_doc_data-obj_descr = psubject.&lt;/P&gt;&lt;P&gt;  gd_doc_data-sensitivty = 'F'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Describe the body of the message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear it_packing_list.&lt;/P&gt;&lt;P&gt;  refresh it_packing_list.&lt;/P&gt;&lt;P&gt;  it_packing_list-transf_bin = space.&lt;/P&gt;&lt;P&gt;  it_packing_list-head_start = 1.&lt;/P&gt;&lt;P&gt;  it_packing_list-head_num = 0.&lt;/P&gt;&lt;P&gt;  it_packing_list-body_start = 1.&lt;/P&gt;&lt;P&gt;  describe table it_message lines it_packing_list-body_num.&lt;/P&gt;&lt;P&gt;  it_packing_list-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;  append it_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add the recipients email address&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear it_receivers.&lt;/P&gt;&lt;P&gt;  refresh it_receivers.&lt;/P&gt;&lt;P&gt;  it_receivers-receiver = p_email.&lt;/P&gt;&lt;P&gt;  it_receivers-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;  it_receivers-com_type = 'INT'.&lt;/P&gt;&lt;P&gt;  it_receivers-notif_del = 'X'.&lt;/P&gt;&lt;P&gt;  it_receivers-notif_ndel = 'X'.&lt;/P&gt;&lt;P&gt;  append it_receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call the FM to post the message to SAPMAIL&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            document_data              = gd_doc_data&lt;/P&gt;&lt;P&gt;            put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            sent_to_all                = gd_sent_all&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            packing_list               = it_packing_list&lt;/P&gt;&lt;P&gt;            contents_txt               = it_message&lt;/P&gt;&lt;P&gt;            receivers                  = it_receivers&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Store function module return code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  gd_error = sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get it_receivers return code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at it_receivers.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;endform.                    " SEND_EMAIL_MESSAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  INITIATE_MAIL_EXECUTE_PROGRAM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Instructs mail send program for SAPCONNECT to send email.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form initiate_mail_execute_program.&lt;/P&gt;&lt;P&gt;  wait up to 2 seconds.&lt;/P&gt;&lt;P&gt;  if gd_error eq 0.&lt;/P&gt;&lt;P&gt;      submit rsconn01 with mode = 'INT'&lt;/P&gt;&lt;P&gt;                    with output = 'X'&lt;/P&gt;&lt;P&gt;                    and return.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.                    " INITIATE_MAIL_EXECUTE_PROGRAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2006 10:11:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-program/m-p/1298923#M157740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-03T10:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-program/m-p/1298924#M157741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satheesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess would be is to try in the below way, as rsconn01 program is writing output with object delivery status. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit rsconn01 with mode = 'INT'&lt;/P&gt;&lt;P&gt;and return.&lt;/P&gt;&lt;P&gt;Without  output = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2006 15:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-program/m-p/1298924#M157741</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-06-03T15:14:17Z</dc:date>
    </item>
  </channel>
</rss>

