<?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>Question Re: Default Printer name in Smartforms in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121501#M2249141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pass the smartform name to LF_FORMNAME and then call the Fm SSF_FUNCTION_MODULE_NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LF_FORMNAME = 'Z_SMARTFORM'.  "==&amp;gt;pass form name here
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      FORMNAME           = LF_FORMNAME
    IMPORTING
      FM_NAME            = LF_FM_NAME.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Sep 2009 06:59:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-12T06:59:19Z</dc:date>
    <item>
      <title>Default Printer name in Smartforms</title>
      <link>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaq-p/6121496</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;When I am displaying Smart forms, an automatic popus is getting displayed which asks for current Printer.I am using LP01 as default printer.Can I hide this popup so while the user executes the program,he can directly view the Report screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2009 05:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaq-p/6121496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-12T05:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Default Printer name in Smartforms</title>
      <link>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121497#M2249137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the export parameter control_parameters pass the value 'X' for the field control_parameters-NO_DIALOG  thus your pop -up for printer options will not come and pass control_parameters-preview = 'X' hence the o/p will be shown directly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2009 05:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121497#M2249137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-12T05:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Default Printer name in Smartforms</title>
      <link>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121498#M2249138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA :  LF_FORMNAME           TYPE TDSFNAME ,  " Smart Forms: Form Name
                        LF_FM_NAME            TYPE RS38L_FNAM. " Name of Function Module
          data :     WA_CPARAM TYPE SSFCTRLOP,
                        WA_OUTPUT TYPE SSFCOMPOP.
 
 
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      FORMNAME           = LF_FORMNAME
    IMPORTING
      FM_NAME            = LF_FM_NAME.
 
  WA_CPARAM-PREVIEW = 'X'.
  WA_CPARAM-NO_DIALOG = 'X'.
  WA_CPARAM-DEVICE = 'PRINTER'.
 
 
  WA_OUTPUT-TDNOPRINT = 'X'.       "No printing from print preview
  WA_OUTPUT-TDDEST = 'LOCA'. "or 'LP01'.  "Spool: Output device
 
 
  CALL FUNCTION LF_FM_NAME
    EXPORTING
      CONTROL_PARAMETERS = WA_CPARAM
      OUTPUT_OPTIONS     = WA_OUTPUT
      USER_SETTINGS      = SPACE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2009 05:48:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121498#M2249138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-12T05:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Default Printer name in Smartforms</title>
      <link>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121499#M2249139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you can disable the popup of printer selection. In the print program you use function module &lt;/P&gt;&lt;P&gt;SSF_FUNCTION_MODULE_NAME where you pass smartforms name and get its corresponding function module name.&lt;/P&gt;&lt;P&gt;Then when you call this function module,  to print the smartform.&lt;/P&gt;&lt;P&gt;In this function module there is an exporting parameter control_parameters available. You need to pass a structure for ex. ls_control_param of type ssfctrlop to this paratemer. Before calling the function module set the value of fields &lt;/P&gt;&lt;P&gt;no_dialog  and preview as below.&lt;/P&gt;&lt;P&gt;  ls_control_param-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;  ls_control_param-preview = 'X'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2009 06:03:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121499#M2249139</guid>
      <dc:creator>rvinod1982</dc:creator>
      <dc:date>2009-09-12T06:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Default Printer name in Smartforms</title>
      <link>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121500#M2249140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;I tried ur logic,but i am getting the following error.&lt;/P&gt;&lt;P&gt;Form  does not exist&lt;/P&gt;&lt;P&gt;Message no. SSFCOMPOSER004&lt;/P&gt;&lt;P&gt;Pls help me to solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2009 06:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121500#M2249140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-12T06:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Default Printer name in Smartforms</title>
      <link>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121501#M2249141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pass the smartform name to LF_FORMNAME and then call the Fm SSF_FUNCTION_MODULE_NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LF_FORMNAME = 'Z_SMARTFORM'.  "==&amp;gt;pass form name here
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      FORMNAME           = LF_FORMNAME
    IMPORTING
      FM_NAME            = LF_FM_NAME.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2009 06:59:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121501#M2249141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-12T06:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Default Printer name in Smartforms</title>
      <link>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121502#M2249142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to pass the NO_DIALOG field of the param CONTROL_PARAMETERS as 'X' &amp;amp; TDDEST of OUTPUT_OPTIONS as LP01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please donot copy paste the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2009 07:01:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121502#M2249142</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-12T07:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Default Printer name in Smartforms</title>
      <link>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121503#M2249143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pl search in SCN for supressing smarform print dialog&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2009 07:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121503#M2249143</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-09-12T07:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Default Printer name in Smartforms</title>
      <link>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121504#M2249144</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;&lt;STRONG&gt;In your Print Program of the Smartform,Change the Print Settings as&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pass the NO_DIALOG field of the param CONTROL_PARAMETERS as 'X' &amp;amp; TDDEST of OUTPUT_OPTIONS as LP01.&lt;/STRONG&gt;&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;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2009 07:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121504#M2249144</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2009-09-12T07:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Default Printer name in Smartforms</title>
      <link>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121505#M2249145</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;Thanx for ur replies.Now I am able to disable the popup for printer name.But Print option is not enabled to give print for the report.If I press back button the same printer popup is coming and if i press preview then only print button is getting enabled.&lt;/P&gt;&lt;P&gt;How to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2009 09:22:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121505#M2249145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-12T09:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Default Printer name in Smartforms</title>
      <link>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121506#M2249146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try removing&lt;/P&gt;&lt;P&gt;WA_OUTPUT-TDNOPRINT = 'X'.       "No printing from print preview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2009 09:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121506#M2249146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-12T09:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Default Printer name in Smartforms</title>
      <link>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121507#M2249147</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;Thanx a lot for ur replies.&lt;/P&gt;&lt;P&gt;My problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2009 12:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-printer-name-in-smartforms/qaa-p/6121507#M2249147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-12T12:35:42Z</dc:date>
    </item>
  </channel>
</rss>

