<?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: Back button in classical ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-button-in-classical-alv/m-p/2930246#M690486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;        Clear the ok code once you call the popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Niyaz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2007 06:01:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-23T06:01:58Z</dc:date>
    <item>
      <title>Back button in classical ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-button-in-classical-alv/m-p/2930245#M690485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am replcing the standard action of BACK button of  an ALV report with number of editable field.I want , whenever users press BACK button , it will ask wheteher want to save the changes of the record of the editable field of the ALV report or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following code for this purpose.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
gs_event_exit-ucomm = '&amp;amp;F03'.
gs_event_exit-before = 'X'.
append gs_event_exit to gt_event_exit.

  data answer(3).


  CASE r_ucomm.

    WHEN '&amp;amp;F03'.                " BACK BUTTON
 CALL FUNCTION 'POPUP_TO_CONFIRM_DATA_LOSS'
         EXPORTING
*          DEFAULTOPTION       = 'J'
           titel               = ' '
*          START_COLUMN        = 25
*          START_ROW           = 6
        IMPORTING
          ANSWER              = answer.


        if answer ne 'J'.
            leave program.
         else.
         r_ucomm = '&amp;amp;DATA_SAVE'.
         endif.




&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;But the problem is that -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;  the popup is coming twice .&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me to make it single time.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;Regards&lt;/P&gt;&lt;P&gt;Debjani&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 05:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-button-in-classical-alv/m-p/2930245#M690485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T05:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Back button in classical ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-button-in-classical-alv/m-p/2930246#M690486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;        Clear the ok code once you call the popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Niyaz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 06:01:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-button-in-classical-alv/m-p/2930246#M690486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T06:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Back button in classical ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-button-in-classical-alv/m-p/2930247#M690487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

CASE r_ucomm.
 
    WHEN '&amp;amp;F03'.                " BACK BUTTON

sy-lsind = 1. "Please add this code

 CALL FUNCTION 'POPUP_TO_CONFIRM_DATA_LOSS'
         EXPORTING
*          DEFAULTOPTION       = 'J'
           titel               = ' '
*          START_COLUMN        = 25
*          START_ROW           = 6
        IMPORTING
          ANSWER              = answer.
 
 
        if answer ne 'J'.
            leave program.
         else.
         r_ucomm = '&amp;amp;DATA_SAVE'.
         endif.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 06:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-button-in-classical-alv/m-p/2930247#M690487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T06:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Back button in classical ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-button-in-classical-alv/m-p/2930248#M690488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niyaz and Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still it is coming twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Debjani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 07:03:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-button-in-classical-alv/m-p/2930248#M690488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T07:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Back button in classical ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-button-in-classical-alv/m-p/2930249#M690489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's because you are keep on appending the data in gt_event_exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to append this entry only once. Bexcause with user interaction this event is getting appended multiple times and that's why the pop-up is coming again and again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check it in debug mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 07:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-button-in-classical-alv/m-p/2930249#M690489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T07:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Back button in classical ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-button-in-classical-alv/m-p/2930250#M690490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have debug the code. but the problem is not that u are saying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is when r_ucomm is not going to chage from &amp;amp;F03 to &amp;amp;DATASAVE in first run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;debjani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 07:22:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-button-in-classical-alv/m-p/2930250#M690490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T07:22:17Z</dc:date>
    </item>
  </channel>
</rss>

