<?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: how to enable the back button and write the code for the same in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-the-back-button-and-write-the-code-for-the-same/m-p/2254644#M487962</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;Define the BACK button in the PF status and in the USER-COMMAND&lt;/P&gt;&lt;P&gt;code as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ok_code eq 'BACK'.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;leave screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2007 11:48:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-22T11:48:27Z</dc:date>
    <item>
      <title>how to enable the back button and write the code for the same</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-the-back-button-and-write-the-code-for-the-same/m-p/2254642#M487960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am displaying the alv grid report and on that iam putting a button say 'XYZ' on the application tool bar .&lt;/P&gt;&lt;P&gt; When 'XYZ' .&lt;/P&gt;&lt;P&gt;  leave to list-processing . &lt;/P&gt;&lt;P&gt;   loop at itab &lt;/P&gt;&lt;P&gt;   endloop . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way Iam displaying the classical report in the second list .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I want is : I want to go back by clicking the back button &lt;/P&gt;&lt;P&gt;                                      so as to go back to alv list &lt;/P&gt;&lt;P&gt;                            or I want to exit by clicking on the exit button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls do the needful .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;santosh .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 11:45:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-the-back-button-and-write-the-code-for-the-same/m-p/2254642#M487960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T11:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable the back button and write the code for the same</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-the-back-button-and-write-the-code-for-the-same/m-p/2254643#M487961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to add user command functioality to the ALV grid you need to perform the following steps:&lt;/P&gt;&lt;P&gt;    	           1. Update 'REUSE_ALV_GRID_DISPLAY' FM call to include 'USER_COMMAND' FORM&lt;/P&gt;&lt;P&gt;	           2. Create 'USER_COMMAND' FORM&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            i_callback_program      = gd_repid&lt;/P&gt;&lt;P&gt;            i_callback_top_of_page   = 'TOP-OF-PAGE'  &lt;/P&gt;&lt;P&gt;            I_callback_user_command = 'USER_COMMAND'   "see FORM &lt;/P&gt;&lt;P&gt;            is_layout               = gd_layout&lt;/P&gt;&lt;P&gt;            it_fieldcat             = fieldcatalog[]&lt;/P&gt;&lt;P&gt;            i_save                  = 'X'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            t_outtab                = it_ekko&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            program_error           = 1&lt;/P&gt;&lt;P&gt;            others                  = 2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM USER_COMMAND                                          *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      --&amp;gt; R_UCOMM                                                *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      --&amp;gt; RS_SELFIELD                                            *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command USING r_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                  rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check function code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CASE r_ucomm.&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Check field clicked on within ALVgrid report&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF rs_selfield-fieldname = 'EBELN'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Read data table, using index of row user clicked on&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Set parameter ID for transaction screen field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Sxecute transaction ME23N, and skip initial data entry screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvgrid.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Gaurang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 11:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-the-back-button-and-write-the-code-for-the-same/m-p/2254643#M487961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T11:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable the back button and write the code for the same</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-the-back-button-and-write-the-code-for-the-same/m-p/2254644#M487962</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;Define the BACK button in the PF status and in the USER-COMMAND&lt;/P&gt;&lt;P&gt;code as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ok_code eq 'BACK'.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;leave screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 11:48:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-the-back-button-and-write-the-code-for-the-same/m-p/2254644#M487962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T11:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable the back button and write the code for the same</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-the-back-button-and-write-the-code-for-the-same/m-p/2254645#M487963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare PF-STATUS for second list and specify a field button within the PF-STATUS and write code at user-command.... when 'BACK'... leave to list processing. if u want to display the first ALV then u have to call the list processing once again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 11:51:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-the-back-button-and-write-the-code-for-the-same/m-p/2254645#M487963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T11:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable the back button and write the code for the same</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-the-back-button-and-write-the-code-for-the-same/m-p/2254646#M487964</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;Define the BACK button in the PF status and in the USER-COMMAND&lt;/P&gt;&lt;P&gt;code as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ok_code eq 'BACK'.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;leave  to screen 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh babu aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 11:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-the-back-button-and-write-the-code-for-the-same/m-p/2254646#M487964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T11:53:57Z</dc:date>
    </item>
  </channel>
</rss>

