<?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: Smartform print window in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-print-window/m-p/3253078#M776891</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 see that you have commented the parameters 'CONTROL_PARAMETERS' and 'OUTPUT_OPTIONS' of the functiom module to print the smartform. Use the parameter&lt;/P&gt;&lt;P&gt;control_parameters-print_preview and control_parameters-no_dialog to supress the dialog box that appears after you select the print option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify output_option parameters to control the number of pages and printer name etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2008 14:04:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-04T14:04:43Z</dc:date>
    <item>
      <title>Smartform print window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-print-window/m-p/3253077#M776890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the following code for printing the form automatically without any process after execute the transaction, but its not working.pls help me on this.&lt;/P&gt;&lt;P&gt;My requirements are dont want to display dialog window, simply execute the transaction it needs to be printed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : w_formname TYPE tdsfname.    "form name&lt;/P&gt;&lt;P&gt;w_formname = 'Z_POLY_ORGINAL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;EXPORTING DESTINATION = 'LP01'&lt;/P&gt;&lt;P&gt;COPIES = COUNT&lt;/P&gt;&lt;P&gt;LIST_NAME = 'TEST'&lt;/P&gt;&lt;P&gt;LIST_TEXT = 'SUBMIT ... TO SAP-SPOOL'&lt;/P&gt;&lt;P&gt;IMMEDIATELY = 'X'&lt;/P&gt;&lt;P&gt;RELEASE = 'X'&lt;/P&gt;&lt;P&gt;NEW_LIST_ID = 'X'&lt;/P&gt;&lt;P&gt;EXPIRATION = DAYS&lt;/P&gt;&lt;P&gt;LINE_SIZE = 79&lt;/P&gt;&lt;P&gt;LINE_COUNT = 23&lt;/P&gt;&lt;P&gt;LAYOUT = 'X_PAPER'&lt;/P&gt;&lt;P&gt;SAP_COVER_PAGE = 'X'&lt;/P&gt;&lt;P&gt;COVER_PAGE = 'X'&lt;/P&gt;&lt;P&gt;RECEIVER = 'SAPSRINIVAS'&lt;/P&gt;&lt;P&gt;DEPARTMENT = 'System'&lt;/P&gt;&lt;P&gt;NO_DIALOG = 'X'&lt;/P&gt;&lt;P&gt;IMPORTING OUT_PARAMETERS = PARAMS&lt;/P&gt;&lt;P&gt;VALID = VALID.&lt;/P&gt;&lt;P&gt;&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                 = w_formname&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VARIANT                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DIRECT_CALL              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   FM_NAME                  = fm_name&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   NO_FORM                  = 1&lt;/P&gt;&lt;P&gt;   NO_FUNCTION_MODULE       = 2&lt;/P&gt;&lt;P&gt;   OTHERS                   = 3&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CALL FUNCTION fm_name&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    rtim = rtim&lt;/P&gt;&lt;P&gt;    mode = mode&lt;/P&gt;&lt;P&gt;&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;LI level="1" type="ul"&gt;&lt;P&gt;  CONTROL_PARAMETERS         =&lt;/P&gt;&lt;/LI&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             =&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;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DOCUMENT_OUTPUT_INFO       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_INFO            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_OPTIONS         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    it_final                  = it_final&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FORMATTING_ERROR           = 1&lt;/P&gt;&lt;P&gt;   INTERNAL_ERROR             = 2&lt;/P&gt;&lt;P&gt;   SEND_ERROR                 = 3&lt;/P&gt;&lt;P&gt;   USER_CANCELED              = 4&lt;/P&gt;&lt;P&gt;   OTHERS                     = 5&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 09:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-print-window/m-p/3253077#M776890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T09:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform print window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-print-window/m-p/3253078#M776891</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 see that you have commented the parameters 'CONTROL_PARAMETERS' and 'OUTPUT_OPTIONS' of the functiom module to print the smartform. Use the parameter&lt;/P&gt;&lt;P&gt;control_parameters-print_preview and control_parameters-no_dialog to supress the dialog box that appears after you select the print option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify output_option parameters to control the number of pages and printer name etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 14:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-print-window/m-p/3253078#M776891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T14:04:43Z</dc:date>
    </item>
  </channel>
</rss>

