<?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: Custom Functionality for UNDO button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-functionality-for-undo-button/m-p/9290755#M1725147</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;go through these links for complete ALV reference and class CL_GUI_ALV_GRID,&lt;/P&gt;&lt;P&gt;Entire ALV functionality are explained briefly in this documents..&lt;/P&gt;&lt;P&gt;even your issues too..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907?overridelayout=true" title="http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907?overridelayout=true"&gt;http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907?overridelayout=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf" title="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Mathan R.,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2013 12:03:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-02-26T12:03:38Z</dc:date>
    <item>
      <title>Custom Functionality for UNDO button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-functionality-for-undo-button/m-p/9290753#M1725145</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 have created an ALV report with toolbar.For some buttons i have implemented custom functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue:i have undo button in tool bar which is working for buttons with standard functionality but for custom button it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide how we can implement functionality for&amp;nbsp; custom undo button.i know how to add custom button and implement functionality but for undo button what functionality need to written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest how to proceed with this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 11:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-functionality-for-undo-button/m-p/9290753#M1725145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-26T11:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Functionality for UNDO button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-functionality-for-undo-button/m-p/9290754#M1725146</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;Instead of creating a custom button and adding a code in it, I suggest to add your extra code in the standard. See below steps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 style="padding-top: 10px; padding-bottom: 5px; color: #707070; font-family: Arial, Helvetica, sans-serif;"&gt;Modifying the ALV Grid Control Standard Functions&lt;/H3&gt;&lt;P style="margin-bottom: 10px; color: #707070; font-family: Arial, Helvetica, sans-serif;"&gt;The standard functions are not designed for specific applications. So there may be times when you want to tailor a generic function — such as sorting by a specific column — for more efficient operation with a specific application. One way to do this is to hide the standard function you want to modify and then add your own implementation. While this approach will certainly work, but there is a more elegant way. Follow these 3 easy steps.&lt;/P&gt;&lt;P style="margin-bottom: 10px; color: #707070; font-family: Arial, Helvetica, sans-serif;"&gt;1. Define an event handler method for event BEFORE_USER_COMMAND. This event is triggered after the user has selected a function. This means that the ALV Grid Control passes control to the application before the function is executed. Using event parameter E_UCOMM, you can trap and restrict the function code to just the function you want to modify.&lt;/P&gt;&lt;P style="margin-bottom: 10px; color: #707070; font-family: Arial, Helvetica, sans-serif;"&gt;2. Implement your own code for the function within the event handler method. In this context, you can even call methods of the ALV Grid Control if you need too.&lt;/P&gt;&lt;P style="margin-bottom: 10px; color: #707070; font-family: Arial, Helvetica, sans-serif;"&gt;3. Reset the function code to ensure that the standard function is no longer executed. You can use code similar to the below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD &amp;lt;instance of the ALV control&amp;gt;-&amp;gt;set_user_command exporting I_UCOMM = SPACE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details,&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.itpsap.com/blog/2012/09/09/a-guide-to-the-new-alv-grid-control-part-3/" title="http://www.itpsap.com/blog/2012/09/09/a-guide-to-the-new-alv-grid-control-part-3/"&gt;http://www.itpsap.com/blog/2012/09/09/a-guide-to-the-new-alv-grid-control-part-3/&lt;/A&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;Sudhir Kothavale.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 11:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-functionality-for-undo-button/m-p/9290754#M1725146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-26T11:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Functionality for UNDO button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-functionality-for-undo-button/m-p/9290755#M1725147</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;go through these links for complete ALV reference and class CL_GUI_ALV_GRID,&lt;/P&gt;&lt;P&gt;Entire ALV functionality are explained briefly in this documents..&lt;/P&gt;&lt;P&gt;even your issues too..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907?overridelayout=true" title="http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907?overridelayout=true"&gt;http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907?overridelayout=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf" title="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Mathan R.,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 12:03:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-functionality-for-undo-button/m-p/9290755#M1725147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-26T12:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Functionality for UNDO button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-functionality-for-undo-button/m-p/9290756#M1725148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you find a solution for the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 07:57:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-functionality-for-undo-button/m-p/9290756#M1725148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-27T07:57:48Z</dc:date>
    </item>
  </channel>
</rss>

