<?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 Smartform output as a e-mail in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-output-as-a-e-mail/m-p/7329554#M1537977</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; I want to send the smart form output as a pdf attachment in a mail.&lt;/P&gt;&lt;P&gt;For that, I am getting OTF text from the smartform function module and converting the OTF to pdf attachment &lt;/P&gt;&lt;P&gt;and sending the mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when I am going to send the e-mail, I want to hide the 'Print/Preview' dialog box.&lt;/P&gt;&lt;P&gt;By using some paramater no_dialog, no_open &amp;amp; no_close, I am able to hide the 'Print/Preview' dialog box.&lt;/P&gt;&lt;P&gt;But, in this case I am not getting OTF text from the smartform function module and I am not able to &lt;/P&gt;&lt;P&gt;create pdf attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know, how to handle this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Sreenivas Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Sep 2010 06:43:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-24T06:43:01Z</dc:date>
    <item>
      <title>Smartform output as a e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-output-as-a-e-mail/m-p/7329554#M1537977</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; I want to send the smart form output as a pdf attachment in a mail.&lt;/P&gt;&lt;P&gt;For that, I am getting OTF text from the smartform function module and converting the OTF to pdf attachment &lt;/P&gt;&lt;P&gt;and sending the mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when I am going to send the e-mail, I want to hide the 'Print/Preview' dialog box.&lt;/P&gt;&lt;P&gt;By using some paramater no_dialog, no_open &amp;amp; no_close, I am able to hide the 'Print/Preview' dialog box.&lt;/P&gt;&lt;P&gt;But, in this case I am not getting OTF text from the smartform function module and I am not able to &lt;/P&gt;&lt;P&gt;create pdf attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know, how to handle this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Sreenivas Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 06:43:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-output-as-a-e-mail/m-p/7329554#M1537977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-24T06:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform output as a e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-output-as-a-e-mail/m-p/7329555#M1537978</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;For mail PDF attachment follow the link &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/Snippets/Smartform" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/Snippets/Smartform&lt;/A&gt;&lt;EM&gt;to&lt;/EM&gt;Mail&lt;EM&gt;as&lt;/EM&gt;PDF+attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For supressing the popup follow use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

T_control-preview = 'X'.
T_control-no_open = 'X'.
T_control-no_close = 'X'.
T_control-no_dialog = 'X'.
T_control-device = 'PRINTER'.
T_control_parameters-no_dialog = 'X'.
T_control_parameters-no_open = 'X'.
T_control_parameters-no_close = 'X'.
T_SSFCOMPOP-TDDEST = 'PRINTER NAME'.
T_SSFCOMPOP-TDNOPRINT = 'X'.
 
CALL FUNCTION 'SSF_OPEN'
EXPORTING
output_options = T_SSFCOMPOP
control_parameters = t_control
user_settings = ' '
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
 
IF sy-subrc  0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amitava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 12:07:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-output-as-a-e-mail/m-p/7329555#M1537978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-24T12:07:54Z</dc:date>
    </item>
  </channel>
</rss>

