<?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: send smartforms via email in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-smartforms-via-email/m-p/1936814#M387349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please chekc this thread.&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="83812"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2007 16:37:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-20T16:37:28Z</dc:date>
    <item>
      <title>send smartforms via email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-smartforms-via-email/m-p/1936813#M387348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can anyone tell me how to send an smartform to an external email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my DISPLAY report: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: MARA.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: SSFCTRLOP LIKE SSFCTRLOP.&lt;/P&gt;&lt;P&gt;DATA: SWOTOBJID like SWOTOBJID.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: IMARA TYPE TABLE OF MARA.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  SSFCTRLOP-NO_DIALOG = 'X'.&lt;/P&gt;&lt;P&gt;  SSFCTRLOP-PREVIEW   = 'X'.&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;*&lt;/P&gt;&lt;P&gt;  SELECT * FROM MARA INTO TABLE IMARA UP TO 10 ROWS.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION '/1BCDWB/SF00000003'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX_TAB          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_PARAMETERS         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CONTROL_PARAMETERS = SSFCTRLOP&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_APPL_OBJ              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_RECIPIENT             = SWOTOBJID&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_SENDER                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OUTPUT_OPTIONS             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_SETTINGS              = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ADRNR              = '0000012427'&lt;/P&gt;&lt;P&gt;      STR_POBOX          = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      TMARA              = IMARA.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will send the smartform for example direct to test@test.de.&lt;/P&gt;&lt;P&gt;Is that possible, and when yes, wich paramater must i fill?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 16:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-smartforms-via-email/m-p/1936813#M387348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T16:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: send smartforms via email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-smartforms-via-email/m-p/1936814#M387349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please chekc this thread.&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="83812"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 16:37:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-smartforms-via-email/m-p/1936814#M387349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T16:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: send smartforms via email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-smartforms-via-email/m-p/1936815#M387350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dieter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to convert your smart form OTF output to XSF and then send it.&lt;/P&gt;&lt;P&gt;Please check demo program SF_XSF_DEMO_MAIL.&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, 20 Feb 2007 16:39:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-smartforms-via-email/m-p/1936815#M387350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T16:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: send smartforms via email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-smartforms-via-email/m-p/1936816#M387351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dieter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following code. It sends the smartfrom output as Email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      formname = 'Z_SMTF&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      fm_name  = v_fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION v_fname&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      control_parameters = x_ctrl_p&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      job_output_info    = x_output_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CONVERT_OTF'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      format                = 'PDF'&lt;/P&gt;&lt;P&gt;      max_linewidth         = 134&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      bin_filesize          = v_size&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      otf                   = x_output_data-otfdata&lt;/P&gt;&lt;P&gt;      lines                 = it_lines&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      err_max_linewidth     = 1&lt;/P&gt;&lt;P&gt;      err_format            = 2&lt;/P&gt;&lt;P&gt;      err_conv_not_possible = 3&lt;/P&gt;&lt;P&gt;      OTHERS                = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      line_width_dst              = 255&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      content_in                  = it_lines&lt;/P&gt;&lt;P&gt;      content_out                 = it_soli&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      err_line_width_src_too_long = 1&lt;/P&gt;&lt;P&gt;      err_line_width_dst_too_long = 2&lt;/P&gt;&lt;P&gt;      err_conv_failed             = 3&lt;/P&gt;&lt;P&gt;      OTHERS                      = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ZFUNC_CONVERT_DATA_ODC01'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     iv_byte_mode       = 'X'&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     it_data            = it_lines&lt;/P&gt;&lt;P&gt;     et_data            = it_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-----To caluculate total number of lines of internal table&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE it_table LINES v_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-----Function module to download the output file.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      bin_filesize = v_size&lt;/P&gt;&lt;P&gt;      filename     = ' '&lt;/P&gt;&lt;P&gt;      filetype     = 'BIN'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      act_filename = v_filename&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab     = it_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-----Create Message Body and Title and Description&lt;/P&gt;&lt;P&gt;  it_mess =&lt;/P&gt;&lt;P&gt;'i have successfully converted smartform from otf format to pdf' .&lt;/P&gt;&lt;P&gt;  " and i have attached that in mail'.&lt;/P&gt;&lt;P&gt;  APPEND it_mess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_doc_data-obj_name   = 'smartform'.&lt;/P&gt;&lt;P&gt;  wa_doc_data-expiry_dat = sy-datum + 10.&lt;/P&gt;&lt;P&gt;  wa_doc_data-obj_descr  = 'smartform'.&lt;/P&gt;&lt;P&gt;  wa_doc_data-sensitivty = 'F'.&lt;/P&gt;&lt;P&gt;  wa_doc_data-doc_size   = v_lines * 255.&lt;/P&gt;&lt;P&gt;  APPEND it_pcklist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-----PDF Attachment&lt;/P&gt;&lt;P&gt;  it_pcklist-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;  it_pcklist-head_start = 1.&lt;/P&gt;&lt;P&gt;  it_pcklist-head_num = 0.&lt;/P&gt;&lt;P&gt;  it_pcklist-body_start = 1.&lt;/P&gt;&lt;P&gt;  it_pcklist-doc_size =  v_lines_bin * 255 .&lt;/P&gt;&lt;P&gt;  it_pcklist-body_num = v_lines.&lt;/P&gt;&lt;P&gt;  it_pcklist-doc_type = 'PDF'.&lt;/P&gt;&lt;P&gt;  it_pcklist-obj_name = 'smartform'.&lt;/P&gt;&lt;P&gt;  it_pcklist-obj_descr = 'smart_desc'.&lt;/P&gt;&lt;P&gt;  it_pcklist-obj_langu  = 'E'.&lt;/P&gt;&lt;P&gt;  it_pcklist-doc_size   = v_lines * 255.&lt;/P&gt;&lt;P&gt;  APPEND it_pcklist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-----Giving the receiver email-id&lt;/P&gt;&lt;P&gt;  CLEAR it_receivers.&lt;/P&gt;&lt;P&gt;  it_receivers-receiver = 'abcddfdf@yahoo.com'.&lt;/P&gt;&lt;P&gt;  it_receivers-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;  APPEND it_receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-----Calling the function module to sending email&lt;/P&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              = wa_doc_data&lt;/P&gt;&lt;P&gt;      put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;      commit_work                = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      packing_list               = it_pcklist&lt;/P&gt;&lt;P&gt;      contents_txt               = it_mess&lt;/P&gt;&lt;P&gt;      contents_hex               = it_table&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;P&gt;  IF sy-subrc = 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;                      WITH rfcgroup   = 'iwdf7ytc_YD3_94'&lt;/P&gt;&lt;P&gt;                      AND RETURN.&lt;/P&gt;&lt;P&gt;    REFRESH: it_receivers,&lt;/P&gt;&lt;P&gt;             it_mess,&lt;/P&gt;&lt;P&gt;             it_pcklist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashvender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 16:44:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-smartforms-via-email/m-p/1936816#M387351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T16:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: send smartforms via email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-smartforms-via-email/m-p/1936817#M387352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for your answers, but i'm searching for an possibility&lt;/P&gt;&lt;P&gt;to use direct the parameters  MAIL_APPL_OBJ  MAIL_RECIPIENT and&lt;/P&gt;&lt;P&gt;MAIL_SENDER to send it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is'nt it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 16:51:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-smartforms-via-email/m-p/1936817#M387352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T16:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: send smartforms via email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-smartforms-via-email/m-p/1936818#M387353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dieter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module names you have mentioned does not exists in ECC6.0,&lt;/P&gt;&lt;P&gt;So I am not sure weather you can use or not. But in ECC 6.0 following function module is available 'SO_NEW_DOCUMENT_ATT_SEND_API1' for sending emails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashvender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 17:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-smartforms-via-email/m-p/1936818#M387353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T17:04:58Z</dc:date>
    </item>
  </channel>
</rss>

