<?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: Restricting Multiple Printing in Smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-multiple-printing-in-smartforms/m-p/10539756#M1856026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally we either suppress the pop up and control these things via logic. In your case what you can do is make a small pop up screen to take input of printer name and other paramters and then in background pass it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Aug 2014 07:42:08 GMT</pubDate>
    <dc:creator>nabheetscn</dc:creator>
    <dc:date>2014-08-23T07:42:08Z</dc:date>
    <item>
      <title>Restricting Multiple Printing in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-multiple-printing-in-smartforms/m-p/10539753#M1856023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a smartform to print barcode Labels. For a Sales Order - Line Item we need to allow printing of only one label. The duplicates can be printed with only due approval. So accordingly I have maintained a Z-Table of the Sales Order/ Line Item where we restrict or allow the printing as per the scenario and the logic is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However there still remains two bugs which I am unable to fix. In the Pop Up Window for print option there are two options. One is "Number of copies". User can still change the number and take out duplicate copies of the same line item. And the second is the check box with "Delete After Output". Though by default I have made it checked, he can uncheck this checkbox and generate a spool request and then from the spool he can take as many duplicate print outs as he wants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there a way to grey out both these fields?&lt;/STRONG&gt; And if greying out is not possible then is there a way that I get the spool request and delete it in the code itself. And also for the "Number of Copies", irrespective of what the user enters there only one print is allowed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please note that disabling the pop up box is not an option for us coz each plant has multiple thermal printers of different makes installed. The user needs this pop up for choosing the right printer.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 07:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-multiple-printing-in-smartforms/m-p/10539753#M1856023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-23T07:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Multiple Printing in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-multiple-printing-in-smartforms/m-p/10539754#M1856024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the&amp;nbsp; FM ' &lt;STRONG&gt;POPUP_TO_CONFIRM&lt;/STRONG&gt;'&amp;nbsp; to display your customized button ( print preview, Print).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hide the smart forms standard Dialog box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 07:13:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-multiple-printing-in-smartforms/m-p/10539754#M1856024</guid>
      <dc:creator>VenkatRamesh_V</dc:creator>
      <dc:date>2014-08-23T07:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Multiple Printing in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-multiple-printing-in-smartforms/m-p/10539755#M1856025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can suppress print Dialog Box&amp;nbsp; by passing control parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;DATA:&amp;nbsp;&amp;nbsp; ssfctrlop&lt;/TD&gt;&lt;TD&gt;TYPE ssfctrlop.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;ssfctrlop-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION fm_name&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;EXPORTING&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;control_parameters = ssfctrlop&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;TABLES&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;it_final&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 07:33:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-multiple-printing-in-smartforms/m-p/10539755#M1856025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-23T07:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Multiple Printing in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-multiple-printing-in-smartforms/m-p/10539756#M1856026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally we either suppress the pop up and control these things via logic. In your case what you can do is make a small pop up screen to take input of printer name and other paramters and then in background pass it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 07:42:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-multiple-printing-in-smartforms/m-p/10539756#M1856026</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-08-23T07:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Multiple Printing in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-multiple-printing-in-smartforms/m-p/10539757#M1856027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ankur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Nabheet said in the previous post, suppress the standard dialog box and create a custom popup screen to get the printer details and pass it to the program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 09:26:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-multiple-printing-in-smartforms/m-p/10539757#M1856027</guid>
      <dc:creator>davis_raja</dc:creator>
      <dc:date>2014-08-23T09:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Multiple Printing in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-multiple-printing-in-smartforms/m-p/10539758#M1856028</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;No, greying out is not possible without a modification to SAP standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not as perfect solution as disabling input, but before messing with standard dialog or modifying the spool attributes, do consider disabling "classical" print options dialog and obtaining print options in application - using EFG_GET_PRINT_PARAMETERS, for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a SAP's standard Print Workbench (PWB) wrapper of print options dialog, which presents user with a reduced options popup (it's possible to reduce a PWB popup to only a printer and "More" button, which permits user to navigate to full "classical" print options dialog).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then there is a BADI EFG_PRINT_PARAMS to EFG_GET_PRINT_PARAMETERS, which has a method CHANGE_IN_DIALOG_AFTER, where you could reset the copy counter and set the flag, informing user the application had done so. On the other hand, since the control would be in application anyway, you could bypass the badi and do all of it in application...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could, of course, get the output of SF as OTF and write it to spool yourself (using FM SSFCOMP_OTF_OUTPUT) setting the necessary attributes, but since you'd still need to control options in application - what's the point..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Janis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 09:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-multiple-printing-in-smartforms/m-p/10539758#M1856028</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-08-23T09:53:03Z</dc:date>
    </item>
  </channel>
</rss>

