<?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: Using Back Button after Display Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050601#M1501931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a classical report or an ALV ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jul 2010 04:03:44 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2010-07-05T04:03:44Z</dc:date>
    <item>
      <title>Using Back Button after Display Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050600#M1501930</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;Need an advice, i need to customize the standard BACK button after report had been displayed, trying to use AT USER-COMMAND, but still not avail..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyone can come with example will help me a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 03:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050600#M1501930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-05T03:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Back Button after Display Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050601#M1501931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a classical report or an ALV ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 04:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050601#M1501931</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-07-05T04:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using Back Button after Display Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050602#M1501932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suhas i try this in Classical Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: badz lee on Jul 5, 2010 10:24 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 08:24:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050602#M1501932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-05T08:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using Back Button after Display Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050603#M1501933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create your own GUI status to make it work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 09:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050603#M1501933</guid>
      <dc:creator>vattekrishna</dc:creator>
      <dc:date>2010-07-05T09:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Back Button after Display Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050604#M1501934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Krishna, I already create the GUI status. but its skip the back button code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my code snippet.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

end-of-selection.
*-----------------------------------------------------------------------
* User Command
*-----------------------------------------------------------------------
at user-command.
  perform user_command using sy-ucomm. 



--------------------------------------------
form user_command  using  in_ucomm.
  case in_ucomm. 
    when 'CETAK'.
      perform print_sapscript. 
    when 'BACK'.
      perform print_sapscript. 
  endcase.
endform. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 09:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050604#M1501934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-05T09:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using Back Button after Display Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050605#M1501935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi badz lee ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please read docu for event AT USER-COMMAND -  Function Code BACK doesnt trigger AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;REA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 10:14:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050605#M1501935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-05T10:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using Back Button after Display Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050606#M1501936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, i read the abap docu , yes i cant used At-User Command, any suggestion how can i use BACK button in the classic report program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 14:21:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050606#M1501936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-05T14:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using Back Button after Display Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050607#M1501937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi badz_lee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;event &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON EXIT-COMMAND.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; could meet your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;rea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 14:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050607#M1501937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-05T14:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Back Button after Display Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050608#M1501938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i had try the code, but seems not working, as the report already displayed, when i pressed back button ,  its not going to to the exit command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is my code snippet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN: BEGIN OF BLOCK upd WITH FRAME TITLE txt2.
SELECT-OPTIONS: s_carrid FOR SFLIGHT-carrid OBLIGATORY MODIF ID r2.
SELECTION-SCREEN: END OF BLOCK upd.

INITIALIZATION.

AT SELECTION-SCREEN.

AT SELECTION-SCREEN ON EXIT-COMMAND.
  LEAVE PROGRAM.

START-OF-SELECTION.

SELECT *
INTO CORRESPONDING
FIELDS OF TABLE itab1
FROM
sflight
  WHERE carrid IN s_carrid .

LOOP AT itab1.

WRITE: / itab1-carrid,
itab1-connid,
itab1-fldate,
itab1-price,
itab1-seatsmax,
itab1-seatsocc.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 15:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050608#M1501938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-05T15:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using Back Button after Display Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050609#M1501939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi badz_lee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i got your point, as the report already displayed = after report has been executed and list is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should define your own status for addtional functionality instead of using the back button, nobody expects that something happens by pressing back except going one screen backwards...&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;rea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramy El-Arnaouty on Jul 5, 2010 5:55 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;besides i think there is no way to react on the back button in a list&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 15:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050609#M1501939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-05T15:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Back Button after Display Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050610#M1501940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramy, we should wait others point of view to decide  if we can customized the BACK button using GUI Status at report list &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is purpose i would like to this , but i'll ask this in another thread, its about call transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 00:47:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050610#M1501940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-06T00:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using Back Button after Display Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050611#M1501941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi badz lee,&lt;/P&gt;&lt;P&gt;Just change the function code 'BACK' to 'ZBACK' in your custom GUI staus.&lt;/P&gt;&lt;P&gt;Then write your own logic for the custmer needs.&lt;/P&gt;&lt;P&gt;Hope this code helps.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZVK_TEST
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
REPORT  zvk_test.
TABLES:ekko."for select option only
SELECT-OPTIONS:s_ebeln FOR ekko-ebeln.
DATA:lt_ekko TYPE TABLE OF ekko,
     lw_ekko TYPE ekko.
START-OF-SELECTION.
  SET PF-STATUS 'STLI'."copy status STLI of program SAPMSSY0.
  SET TITLEBAR 'TITLE'.
*
  SELECT * INTO TABLE lt_ekko
    FROM ekko
    WHERE ebeln IN s_ebeln.

  LOOP AT lt_ekko INTO lw_ekko.
    WRITE:/ lw_ekko-ebeln,
            lw_ekko-bukrs,
            lw_ekko-bstyp,
            lw_ekko-bsart.
  ENDLOOP.

END-OF-SELECTION.
*
AT USER-COMMAND.
  CASE sy-ucomm.
    WHEN 'ZBACK'.
      PERFORM back_function."Your logic
    WHEN OTHERS.
  ENDCASE.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  BACK_FUNCTION
*&amp;amp;---------------------------------------------------------------------*
FORM back_function .
  LEAVE PROGRAM.
ENDFORM.                    " BACK_FUNCTION
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 02:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050611#M1501941</guid>
      <dc:creator>vattekrishna</dc:creator>
      <dc:date>2010-07-06T02:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Back Button after Display Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050612#M1501942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it solved my current problem thanks Krishna Vatte, when creating GUI Status we need to ensure to activate the Function Code, by clicking Function Code button or F7 at the specific icon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for helping me on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 03:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-back-button-after-display-report/m-p/7050612#M1501942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-06T03:14:26Z</dc:date>
    </item>
  </channel>
</rss>

