<?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: RSCONN01 program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsconn01-program/m-p/2253923#M487714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Whenever you call the function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' the mail will go and sit in the SCOT transaction, from there you need to dispath the mail, for this one we call the program RSCONN01, so the mail will go directly, if you want to schedule this program then you need schedule this program after every run of the 'SO_NEW_DOCUMENT_ATT_SEND_API1' function module&lt;/P&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, 15 May 2007 07:32:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-15T07:32:26Z</dc:date>
    <item>
      <title>RSCONN01 program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsconn01-program/m-p/2253921#M487712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i am using this RSCONN01 program for sending mails with the help of  the functional Module 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;  Is there any other way to do this without calling this program ?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Scheduling this RSCONN01 in background will work ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Kindly guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Lakshmiraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 06:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsconn01-program/m-p/2253921#M487712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T06:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: RSCONN01 program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsconn01-program/m-p/2253922#M487713</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;  There is no need to use the program RSCONN01 for sending the mails. Only by using the function module 'SO_NEW_DOCUMENT_ATT_SEND_API1'. you can send mails to the destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; By creating the distribution list in so23 and maintaining the same in su01( by help of basis guy). you can send the mails.&lt;/P&gt;&lt;P&gt;Sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM send_mail USING c_business.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM send_mail USING   receiver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: w_lines,tbl_packing_list,tbl_object_header,&lt;/P&gt;&lt;P&gt;             tbl_contents_txt, tbl_receivers.&lt;/P&gt;&lt;P&gt;  REFRESH:tbl_packing_list, tbl_object_header,&lt;/P&gt;&lt;P&gt;           tbl_contents_txt,tbl_receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT tbl_err.&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM tbl_err COMPARING ALL FIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT tbl_err[] IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Preparing the email.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM prepare_email.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   If sy-subrc NE 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      MOVE sy-subrc TO w_code.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get  the content of header e-mail document data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM document_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get details of the error file attached (like type of file and format)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get receiver mail id's&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tbl_receivers-receiver = receiver.&lt;/P&gt;&lt;P&gt;  tbl_receivers-rec_type = 'C'.&lt;/P&gt;&lt;P&gt;  tbl_receivers-express  = c_flag.&lt;/P&gt;&lt;P&gt;  tbl_receivers-sap_body = c_flag.&lt;/P&gt;&lt;P&gt;  APPEND tbl_receivers.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call FM to send E-mails to receivers&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              = st_document_data&lt;/P&gt;&lt;P&gt;            put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            packing_list               = tbl_packing_list&lt;/P&gt;&lt;P&gt;            object_header              = tbl_object_header&lt;/P&gt;&lt;P&gt;            contents_txt               = tbl_contents_txt&lt;/P&gt;&lt;P&gt;            receivers                  = tbl_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;P&gt;ENDFORM.                    " send_mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM prepare_email.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E-Mail body content&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF NOT w_lifnr IS INITIAL.&lt;/P&gt;&lt;P&gt;    CONCATENATE text-015 w_docnum text-016&lt;/P&gt;&lt;P&gt;           INTO tbl_contents_txt-line&lt;/P&gt;&lt;P&gt;      SEPARATED BY space.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND tbl_contents_txt.&lt;/P&gt;&lt;P&gt;  CLEAR tbl_contents_txt.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E-mail error file attachment header&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONCATENATE text-063 text-064&lt;/P&gt;&lt;P&gt;               text-065 text-066 c_comma&lt;/P&gt;&lt;P&gt;         INTO tbl_contents_txt-line&lt;/P&gt;&lt;P&gt;    SEPARATED BY c_comma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND tbl_contents_txt.&lt;/P&gt;&lt;P&gt;  CLEAR tbl_contents_txt.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E-mail error file attachment content&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT tbl_err.&lt;/P&gt;&lt;P&gt;    CONCATENATE w_docnum tbl_err-v_segnum&lt;/P&gt;&lt;P&gt;                tbl_err-msg tbl_err-type&lt;/P&gt;&lt;P&gt;      INTO tbl_contents_txt-line&lt;/P&gt;&lt;P&gt;      SEPARATED BY c_comma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE c_linefeed tbl_contents_txt-line c_comma&lt;/P&gt;&lt;P&gt;           INTO tbl_contents_txt-line.&lt;/P&gt;&lt;P&gt;    APPEND tbl_contents_txt.&lt;/P&gt;&lt;P&gt;    CLEAR tbl_contents_txt.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " prepare_email&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM document_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR w_line.&lt;/P&gt;&lt;P&gt;  IF NOT w_lifnr IS INITIAL.&lt;/P&gt;&lt;P&gt;    CONCATENATE text-075 text-027 sy-datum sy-uzeit INTO w_line&lt;/P&gt;&lt;P&gt;    SEPARATED BY c_uscore.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  st_document_data-obj_name  = w_line.&lt;/P&gt;&lt;P&gt;  st_document_data-obj_descr = w_line.&lt;/P&gt;&lt;P&gt;  st_document_data-priority  = 1.&lt;/P&gt;&lt;P&gt;  st_document_data-obj_prio  = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " document_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;manju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 07:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsconn01-program/m-p/2253922#M487713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T07:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: RSCONN01 program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsconn01-program/m-p/2253923#M487714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Whenever you call the function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' the mail will go and sit in the SCOT transaction, from there you need to dispath the mail, for this one we call the program RSCONN01, so the mail will go directly, if you want to schedule this program then you need schedule this program after every run of the 'SO_NEW_DOCUMENT_ATT_SEND_API1' function module&lt;/P&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, 15 May 2007 07:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsconn01-program/m-p/2253923#M487714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T07:32:26Z</dc:date>
    </item>
  </channel>
</rss>

