<?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 creating a hard copy in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-hard-copy/m-p/1340735#M172442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I created a custom screen for my users, and I would like to give them the option of printing a hard copy of the information on the screen.  I basically want to create a button that, when pushed, will perform the exact same function as when you go to the layout menu and select "hard copy".  My users don't use the layout menu, so I'd like to make this easier by giving them a button right on the screen.  What code do I need to use when my button's function is called to get the hard copy to print?  I know how to set up the button, just not how to code for the print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;  April King&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 May 2006 14:38:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-23T14:38:52Z</dc:date>
    <item>
      <title>creating a hard copy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-hard-copy/m-p/1340735#M172442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I created a custom screen for my users, and I would like to give them the option of printing a hard copy of the information on the screen.  I basically want to create a button that, when pushed, will perform the exact same function as when you go to the layout menu and select "hard copy".  My users don't use the layout menu, so I'd like to make this easier by giving them a button right on the screen.  What code do I need to use when my button's function is called to get the hard copy to print?  I know how to set up the button, just not how to code for the print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;  April King&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 14:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-hard-copy/m-p/1340735#M172442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T14:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: creating a hard copy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-hard-copy/m-p/1340736#M172443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a PF status for your screen and define your buttons in your pf status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the syntax:&lt;/P&gt;&lt;P&gt;set pf-status 'XYZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double click on the XYZ to create a pf status.&lt;/P&gt;&lt;P&gt;YOu can define your buttons on the application tool bar and attach a function code to the button.&lt;/P&gt;&lt;P&gt;In the pai section, you should handle your f-code to do what has to be done on the button click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 14:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-hard-copy/m-p/1340736#M172443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T14:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: creating a hard copy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-hard-copy/m-p/1340737#M172444</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;when you click that Button you need to do some thing like this...&lt;/P&gt;&lt;P&gt;write this code when you handle the Button,&lt;/P&gt;&lt;P&gt;this opens popup to give print prameters like printer name etc. if you don't want that then pass  no_dialog = ' '.&lt;/P&gt;&lt;P&gt;Just check it. it depends on how you want to show the content, here i am just showing the values.&lt;/P&gt;&lt;P&gt;you can design it using write statements....&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      call function 'GET_PRINT_PARAMETERS'
       exporting
         immediately                  = 'X'
         line_size                    = 220
         release                      = 'X'
         mode                         = 'CURRENT'
       &amp;lt;b&amp;gt;  no_dialog                    = 'X' &amp;lt;/b&amp;gt; 
       importing
*     OUT_ARCHIVE_PARAMETERS       =
         out_parameters               = l_params
         valid                        = l_valid
       exceptions
         archive_info_not_found       = 1
         invalid_print_params         = 2
         invalid_archive_params       = 3
         others                       = 4.
        IF SY-SUBRC &amp;lt;&amp;gt; 0.
*           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.

      new-page print on   parameters l_params no dialog.
       write :/ field1,
                field2,
                field3.
      new-page print off.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 15:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-hard-copy/m-p/1340737#M172444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T15:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: creating a hard copy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-hard-copy/m-p/1340738#M172445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what you mean is the hardcopy of sapgui options menu. This is a pure SAPGUI frontend function. I have no idea if this can be triggered from SAP program running on server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But a solution is welcome!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 16:09:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-hard-copy/m-p/1340738#M172445</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-05-23T16:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: creating a hard copy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-hard-copy/m-p/1340739#M172446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clemens,&lt;/P&gt;&lt;P&gt;  Yes, this is what I meant.  I already know how to set up the button on my screen, just not how to trigger the hardcopy print.  For now I've decided to just pass my parameters to a basic program that will print a one-page report with all of the same information.  The report will have the fields set up in the same positions on the page as they are on the screen. When the user clicks on the button on my screen, the report is submitted.  I'll just stick with that for now, until someone can tell me how to trigger the hardcopy print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;  April&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 18:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-hard-copy/m-p/1340739#M172446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T18:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: creating a hard copy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-hard-copy/m-p/1340740#M172447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think you can execute the HARD copy functionality from program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 18:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-hard-copy/m-p/1340740#M172447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T18:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: creating a hard copy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-hard-copy/m-p/1340741#M172448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your responses.  We decided to just develop a simple report to print off the information in a user-friendly format (very similar to the screen itself).  This report program is submitted when a button is pushed on the screen.&lt;/P&gt;&lt;P&gt; - April&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 19:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-hard-copy/m-p/1340741#M172448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T19:00:39Z</dc:date>
    </item>
  </channel>
</rss>

