<?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: hide next button - screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-next-button-screen/m-p/5987300#M1341815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If these buttons are located on application toolbar of the screen then simple [SET PF-STATUS EXLCUDING|http://help.sap.com/abapdocu_70/en/ABAPSET_PF-STATUS_SHORTREF.htm] in PBO of screen will trun your button on or off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2009 08:28:08 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2009-08-13T08:28:08Z</dc:date>
    <item>
      <title>hide next button - screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-next-button-screen/m-p/5987299#M1341814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an alv grid some records, and also i add an extra button to display selected records. When i display the selected records, it goes to another screen.(200) at 200 screen i have two buttons at toolbar( not screen) , next and back. i wanna hide back at first record. and next at last record. but i cannot handle it with loop at screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for answers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ozgur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2009 09:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-next-button-screen/m-p/5987299#M1341814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-12T09:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: hide next button - screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-next-button-screen/m-p/5987300#M1341815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If these buttons are located on application toolbar of the screen then simple [SET PF-STATUS EXLCUDING|http://help.sap.com/abapdocu_70/en/ABAPSET_PF-STATUS_SHORTREF.htm] in PBO of screen will trun your button on or off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 08:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-next-button-screen/m-p/5987300#M1341815</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-13T08:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: hide next button - screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-next-button-screen/m-p/5987301#M1341816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When you will go to screen 200 you need to set the pf-status accordingly.&lt;/P&gt;&lt;P&gt;Means in the PBO of the screen 200 you need to give a if condition and accordingly you need to set the PF Status,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the module of  PBO write the code like below -&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF w_index = 1.
  SET PF-STATUS  'STATUS_NAME' EXCLUDING 'BACK' IMMEDIATELY..
ELSEIF  w_index = total_index.
  SET PF-STATUS  'STATUS_NAME' EXCLUDING 'NEXT' IMMEDIATELY.
ELSE.
  SET PF-STATUS  'STATUS_NAME'  IMMEDIATELY.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here w_index variable will hold the current index value .&lt;/P&gt;&lt;P&gt;        total_index variable will contain the total no entries of the grid, that you can get from the internal by the -&lt;/P&gt;&lt;P&gt;                                 &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : w_index TYPE i,
             total_index TYPE i.
DESCRIBE TABLE itab LINES total_index.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 08:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-next-button-screen/m-p/5987301#M1341816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-13T08:34:37Z</dc:date>
    </item>
  </channel>
</rss>

