<?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 Event on Print Button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-on-print-button/m-p/2544269#M578557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use an ALV in a screen, and use a copy of the standard status (from the function group SALV) STANDARD_FULLSCREEN, which contains the menu and ALV toolbars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user chooses Print (fcode = $RNT) and executes the printing, I must execute some code (e. g. change some ALV data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Is it possible to catch the event of clicking the Print menu button? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) How could I implement my own user_command to handle the function codes (right now it goes to the standard user_command provided by the standard status)&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;Ivson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2007 10:33:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-11T10:33:31Z</dc:date>
    <item>
      <title>Event on Print Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-on-print-button/m-p/2544269#M578557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use an ALV in a screen, and use a copy of the standard status (from the function group SALV) STANDARD_FULLSCREEN, which contains the menu and ALV toolbars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user chooses Print (fcode = $RNT) and executes the printing, I must execute some code (e. g. change some ALV data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Is it possible to catch the event of clicking the Print menu button? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) How could I implement my own user_command to handle the function codes (right now it goes to the standard user_command provided by the standard status)&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;Ivson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 10:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-on-print-button/m-p/2544269#M578557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T10:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Event on Print Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-on-print-button/m-p/2544270#M578558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivson,&lt;/P&gt;&lt;P&gt;Write a class which implements the method handle_user_command for the event user_command of class cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;In this method you have to handle the print.&lt;/P&gt;&lt;P&gt;Set handler for the alv.&lt;/P&gt;&lt;P&gt;Then the control goes to the method when the print button is selected on the alv toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the program : BCALV_TEST_GRID_EVENTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can handle the event : user_command or before_user_command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps you.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;reward all helpful points&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 04:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-on-print-button/m-p/2544270#M578558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T04:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Event on Print Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-on-print-button/m-p/2544271#M578559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response, but for this particular case I cannot use ALV objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my first question, I already solved the problem by filling the parameter I_CALLBACK_USER_COMMAND with the name of a form where commands are handled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the second point, I changed the name of the Print fcode in the pf status (originally "&amp;amp;RNT"); otherwise it would send me to the standard user_command. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 09:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-on-print-button/m-p/2544271#M578559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T09:17:16Z</dc:date>
    </item>
  </channel>
</rss>

